Fix error handling pattern match error

This commit is contained in:
Claudio Ortolina
2025-08-11 12:00:59 +03:00
parent 1ca1dcf0f3
commit da464a52e0
+1 -1
View File
@@ -27,7 +27,7 @@ defmodule OpenAI.API do
case Finch.stream(finch_request, finch_name, Req.Response.new(), fun, finch_options) do
{:ok, response} -> {request, response}
{:error, exception} -> {request, exception}
{:error, exception, _response} -> {request, exception}
end
end