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

fix: isInstance of streamingResponse but content-type is application/json
This commit is contained in:
Timothy Jaeryang Baek 2024-06-29 13:16:32 -07:00 committed by GitHub
commit 73135b6e51
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -617,6 +617,8 @@ class ChatCompletionMiddleware(BaseHTTPMiddleware):
return StreamingResponse(
self.ollama_stream_wrapper(response.body_iterator, data_items),
)
return response
else:
return response