From 1568fa23f55d39a7f869aa3d839f221c649f6e17 Mon Sep 17 00:00:00 2001 From: HomeDev68 <180551684+HomeDev68@users.noreply.github.com> Date: Mon, 18 Nov 2024 17:44:35 +0100 Subject: [PATCH] Update github_manifold_pipeline.py --- .../pipelines/providers/github_manifold_pipeline.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/examples/pipelines/providers/github_manifold_pipeline.py b/examples/pipelines/providers/github_manifold_pipeline.py index d273a3b..76d7e1f 100644 --- a/examples/pipelines/providers/github_manifold_pipeline.py +++ b/examples/pipelines/providers/github_manifold_pipeline.py @@ -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)}"