mirror of
https://github.com/open-webui/pipelines
synced 2025-06-26 18:15:58 +00:00
Update github_manifold_pipeline.py
This commit is contained in:
parent
f940165f30
commit
1568fa23f5
@ -135,6 +135,11 @@ class Pipeline:
|
||||
else:
|
||||
return r.json()
|
||||
except Exception as e:
|
||||
# TODO: Render Errors Normally in Open-WebUI, not in the message body
|
||||
print(f"Error generating content: {e}")
|
||||
return f"Error: {str(e)}"
|
||||
# TODO: Render Errors Normally in Open-WebUI, not in the chat message body
|
||||
if r:
|
||||
text = r.text
|
||||
return f"Error: {e} ({text})"
|
||||
else:
|
||||
print(f"Error generating content: {e}")
|
||||
return f"Error: {e}"
|
||||
# return f"Error: {str(e)}"
|
||||
|
Loading…
Reference in New Issue
Block a user