Skip to content

Commit c0d8505

Browse files
committed
Add chunk handling for stamp
1 parent 73a8679 commit c0d8505

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/ex_openai/streaming_client.ex

+8
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,14 @@ defmodule ExOpenAI.StreamingClient do
148148
{:noreply, state}
149149
end
150150

151+
def handle_info(
152+
%HTTPoison.AsyncChunk{chunk: ": OPENROUTER PROCESSING\n\n"},
153+
state
154+
) do
155+
Logger.debug("received : OPENROUTER PROCESSING stamp")
156+
{:noreply, state}
157+
end
158+
151159
# def handle_info(%HTTPoison.AsyncChunk{chunk: "data: " <> chunk_data}, state) do
152160
# Logger.debug("Received AsyncChunk DATA: #{inspect(chunk_data)}")
153161
# end

0 commit comments

Comments
 (0)