mirror of
https://github.com/open-webui/open-webui
synced 2025-04-16 21:42:50 +00:00
fix: pipelines outlet
This commit is contained in:
parent
247d7896fc
commit
e25b082162
@ -124,18 +124,14 @@ def process_pipeline_outlet_filter(request, payload, user, models):
|
|||||||
f"{url}/{filter['id']}/filter/outlet",
|
f"{url}/{filter['id']}/filter/outlet",
|
||||||
headers={"Authorization": f"Bearer {key}"},
|
headers={"Authorization": f"Bearer {key}"},
|
||||||
json={
|
json={
|
||||||
"user": {
|
"user": user,
|
||||||
"id": user.id,
|
"body": payload,
|
||||||
"name": user.name,
|
|
||||||
"email": user.email,
|
|
||||||
"role": user.role,
|
|
||||||
},
|
|
||||||
"body": data,
|
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
r.raise_for_status()
|
r.raise_for_status()
|
||||||
data = r.json()
|
data = r.json()
|
||||||
|
payload = data
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
# Handle connection error here
|
# Handle connection error here
|
||||||
print(f"Connection error: {e}")
|
print(f"Connection error: {e}")
|
||||||
|
Loading…
Reference in New Issue
Block a user