Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
restlessronin committed May 17, 2024
1 parent c325977 commit a0e0d6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/openai_ex/http_sse.ex
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ defmodule OpenaiEx.HttpSse do
%{data: Jason.decode!(data)}

%{eventType: value} ->
[event_id, data] = String.split(value, "\ndata: ", parts: 2)
[event_id, data] = String.split(value, "\ndata: ", parts: 2)
%{event: event_id, data: Jason.decode!(data)}
end)
end
Expand Down

0 comments on commit a0e0d6c

Please sign in to comment.