"vscode:/vscode.git/clone" did not exist on "5e6f50003857860d900612adf44266b9e2e726c8"
Commit 269db074 authored by Peter De-Ath's avatar Peter De-Ath
Browse files

fix: isInstance of streamingResponse but content-type is application/json

parent cd9170ed
......@@ -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