Update github_manifold_pipeline.py

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

View File

@ -37,7 +37,7 @@ class Pipeline:
self.valves = self.Valves(
**{
"GITHUB_MODELS_BASE_URL": os.getenv("https://models.inference.ai.azure.com","https://models.inference.ai.azure.com"),
"GITHUB_MODELS_BASE_URL": os.getenv("GITHUB_MODELS_BASE_URL","https://models.inference.ai.azure.com"),
"GITHUB_PAT": os.getenv("GITHUB_PAT", "")
}
)
@ -135,6 +135,6 @@ class Pipeline:
else:
return r.json()
except Exception as e:
# TODO: Render Errors Normally in Open-WebUI
# TODO: Render Errors Normally in Open-WebUI, not in the message body
print(f"Error generating content: {e}")
return f"Error: {str(e)}"