mirror of
https://github.com/open-webui/pipelines
synced 2025-05-12 16:40:45 +00:00
fix
This commit is contained in:
parent
69d5c25e9d
commit
a7238b96b7
@ -47,7 +47,7 @@ class Pipeline:
|
||||
|
||||
r.raise_for_status()
|
||||
|
||||
if data["stream"]:
|
||||
if body["stream"]:
|
||||
return r.iter_lines()
|
||||
else:
|
||||
return r.json()
|
||||
|
@ -44,7 +44,7 @@ class Pipeline:
|
||||
|
||||
r.raise_for_status()
|
||||
|
||||
if data["stream"]:
|
||||
if body["stream"]:
|
||||
return r.iter_lines()
|
||||
else:
|
||||
return r.json()
|
||||
|
Loading…
Reference in New Issue
Block a user