Remove unreachable catch clause in do_chat_stream

This commit is contained in:
Claudio Ortolina
2026-04-13 13:12:58 +01:00
parent 9b44b7050f
commit 6fa640f0f6
-2
View File
@@ -86,8 +86,6 @@ defmodule OpenAI.API do
{:error, exception} ->
{:error, "Connection error: #{Exception.message(exception)}"}
end
catch
{:stream_error, message} -> {:error, message}
end
@spec get_embeddings(String.t(), OpenAI.Config.t()) :: {:ok, [float()]} | {:error, term()}