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):
return StreamingResponse(
self.ollama_stream_wrapper(response.body_iterator, data_items),
)
return response
else:
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