Skip to content

Commit

Permalink
Remove tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
dvcrn committed Jan 31, 2025
1 parent 1905dc5 commit 69ddbb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ex_openai/streaming_client.ex
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ defmodule ExOpenAI.StreamingClient do
case Jason.decode(attempt) do
{:ok, decoded} ->
# Once successfully decoded, forward, and reset partial buffer
message = st.convert_response_fx.({:ok, decoded})
message = st.convert_response_fx.(decoded)
forward_response(st.stream_to, {:data, message})
{"", st}

Expand Down

0 comments on commit 69ddbb3

Please sign in to comment.