Fix error handling pattern match error
This commit is contained in:
+1
-1
@@ -27,7 +27,7 @@ defmodule OpenAI.API do
|
|||||||
|
|
||||||
case Finch.stream(finch_request, finch_name, Req.Response.new(), fun, finch_options) do
|
case Finch.stream(finch_request, finch_name, Req.Response.new(), fun, finch_options) do
|
||||||
{:ok, response} -> {request, response}
|
{:ok, response} -> {request, response}
|
||||||
{:error, exception} -> {request, exception}
|
{:error, exception, _response} -> {request, exception}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user