Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
269db074
Commit
269db074
authored
Jun 28, 2024
by
Peter De-Ath
Browse files
fix: isInstance of streamingResponse but content-type is application/json
parent
cd9170ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
backend/main.py
backend/main.py
+2
-0
No files found.
backend/main.py
View file @
269db074
...
@@ -617,6 +617,8 @@ class ChatCompletionMiddleware(BaseHTTPMiddleware):
...
@@ -617,6 +617,8 @@ class ChatCompletionMiddleware(BaseHTTPMiddleware):
return
StreamingResponse
(
return
StreamingResponse
(
self
.
ollama_stream_wrapper
(
response
.
body_iterator
,
data_items
),
self
.
ollama_stream_wrapper
(
response
.
body_iterator
,
data_items
),
)
)
return
response
else
:
else
:
return
response
return
response
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment