Update github_manifold_pipeline.py

This commit is contained in:
HomeDev68 2024-11-18 17:44:35 +01:00 committed by GitHub
parent f940165f30
commit 1568fa23f5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
# 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: {str(e)}"
return f"Error: {e}"
# return f"Error: {str(e)}"