From da464a52e0245a7258a4f9c45dd1b5947f03819e Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Mon, 11 Aug 2025 12:00:59 +0300 Subject: [PATCH] Fix error handling pattern match error --- lib/open_ai/api.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/open_ai/api.ex b/lib/open_ai/api.ex index aea3455b..8322f9cf 100644 --- a/lib/open_ai/api.ex +++ b/lib/open_ai/api.ex @@ -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