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