mirror of
https://github.com/open-webui/pipelines
synced 2025-05-10 15:40:55 +00:00
Fix non-streaming response
This commit is contained in:
parent
b82d902185
commit
e9cedbfca8
@ -121,9 +121,7 @@ class Pipeline:
|
||||
|
||||
if body["stream"]:
|
||||
print("Streaming response")
|
||||
for chunk in response:
|
||||
yield chunk.text
|
||||
return ""
|
||||
return (chunk.text for chunk in response)
|
||||
else:
|
||||
print("Non-streaming response")
|
||||
result = response.text
|
||||
|
Loading…
Reference in New Issue
Block a user