mirror of
https://github.com/open-webui/open-webui.git
synced 2025-04-22 22:47:28 +02:00
Fix error message propagate from pipelines
Error message returned from pipelines was not being shown on UI. It showed "Connection closed". With this fix it will show the error message on the UI from the pipeline properly.
This commit is contained in:
parent
b03fc97e28
commit
2bdf77a726
@ -90,8 +90,8 @@ async def process_pipeline_inlet_filter(request, payload, user, models):
|
||||
headers=headers,
|
||||
json=request_data,
|
||||
) as response:
|
||||
response.raise_for_status()
|
||||
payload = await response.json()
|
||||
response.raise_for_status()
|
||||
except aiohttp.ClientResponseError as e:
|
||||
res = (
|
||||
await response.json()
|
||||
@ -139,8 +139,8 @@ async def process_pipeline_outlet_filter(request, payload, user, models):
|
||||
headers=headers,
|
||||
json=request_data,
|
||||
) as response:
|
||||
response.raise_for_status()
|
||||
payload = await response.json()
|
||||
response.raise_for_status()
|
||||
except aiohttp.ClientResponseError as e:
|
||||
try:
|
||||
res = (
|
||||
|
Loading…
x
Reference in New Issue
Block a user