"docs/vscode:/vscode.git/clone" did not exist on "769f0be8fb41daca9f3cbcffcfd0dbf01cc194b8"
Unverified Commit 73135b6e authored by Timothy Jaeryang Baek's avatar Timothy Jaeryang Baek Committed by GitHub
Browse files

Merge pull request #3511 from Peter-De-Ath/ollama-chat-no-stream

fix: isInstance of streamingResponse but content-type is application/json
parents 27709c83 269db074
...@@ -617,6 +617,8 @@ class ChatCompletionMiddleware(BaseHTTPMiddleware): ...@@ -617,6 +617,8 @@ class ChatCompletionMiddleware(BaseHTTPMiddleware):
return StreamingResponse( return StreamingResponse(
self.ollama_stream_wrapper(response.body_iterator, data_items), self.ollama_stream_wrapper(response.body_iterator, data_items),
) )
return response
else: else:
return response return response
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment