Skip to content

Your lightweight open-source personal agent.

Adding some more insights for failure in Azure OpenAI calls

Kunal Karmakara8ce0a3084be
diff --git a/nanobot/providers/azure_openai_provider.py b/nanobot/providers/azure_openai_provider.py
index 52efde657..fc8e9502e 100644
--- a/nanobot/providers/azure_openai_provider.py
+++ b/nanobot/providers/azure_openai_provider.py
@@ -133,7 +133,7 @@ class AzureOpenAIProvider(LLMProvider):
except Exception as e:
return LLMResponse(
- content=f"Error calling Azure OpenAI: {str(e)}",
+ content=f"Error calling Azure OpenAI: {repr(e)}",
finish_reason="error",
)