Browse Source

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

Peter De-Ath 10 tháng trước cách đây
mục cha
commit
269db0748a
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      backend/main.py

+ 2 - 0
backend/main.py

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