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