mirror of
https://github.com/open-webui/open-webui
synced 2025-01-18 00:30:51 +00:00
fix: isInstance of streamingResponse but content-type is application/json
This commit is contained in:
parent
cd9170ed24
commit
269db0748a
@ -617,6 +617,8 @@ class ChatCompletionMiddleware(BaseHTTPMiddleware):
|
||||
return StreamingResponse(
|
||||
self.ollama_stream_wrapper(response.body_iterator, data_items),
|
||||
)
|
||||
|
||||
return response
|
||||
else:
|
||||
return response
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user