mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 20:35:19 +00:00
fix: isInstance of streamingResponse but content-type is application/json
This commit is contained in:
parent
cd9170ed24
commit
269db0748a
1 changed files with 2 additions and 0 deletions
|
|
@ -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 a new issue