From 269db0748a30ffd984bada3d0266af8f8ff1fbc0 Mon Sep 17 00:00:00 2001 From: Peter De-Ath Date: Fri, 28 Jun 2024 20:32:07 +0100 Subject: [PATCH] fix: isInstance of streamingResponse but content-type is application/json --- backend/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/main.py b/backend/main.py index aae305c5e..2b2a8d15b 100644 --- a/backend/main.py +++ b/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