Replies: 2 comments
-
Thanks for sharing this — really appreciate the detailed breakdown. From what you’ve described, it looks like the agent is falling back to a default behavior when To resolve this, you can either: os.environ["AZURE_OPENAI_API_KEY"] = os.getenv("APPRES_AZURE_KEY")
os.environ["AZURE_OPENAI_ENDPOINT"] = os.getenv("APPRES_AZURE_ENDPOINT") Let me know if that helped 🙌 |
Beta Was this translation helpful? Give feedback.
-
Hey! Thanks for the response. Here's some added information: azure_url: str = f"{app_config.APPRES_AZURE_ENDPOINT}/deployments/{app_config.APPRES_AZURE_DEPLOYMENT_NAME}"
self.model: Model = AzureOpenAI(
name = app_config.APPRES_COMPLETIONS_MODEL_ID,
api_key = app_config.APPRES_AZURE_API_KEY.get_secret_value(),
api_version = app_config.APPRES_AZURE_API_VERSION,
azure_endpoint= azure_url,
temperature=app_config.APPRES_TEMPERATURE
)
os.environ["AZURE_OPENAI_API_KEY"] = app_config.APPRES_AZURE_API_KEY.get_secret_value()
os.environ["AZURE_OPENAI_ENDPOINT"] = azure_url
Executing, this code, the error changes to:
The agent is now Unable to complete the task interrupting it completely. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey there!
Agno v1.3.1
AzureOpenAI (gpt-4o)
Agent initialization:
Whenever I run an agent with Reasoning=True, I get this block of errors with or without DEBUG turned on:
My environment variables with the tokens and keys, all start with
APPRES_*
.The agent is able to complete its task to the finish but I fear I may be cripple it somehow.
Can anyone help?
Beta Was this translation helpful? Give feedback.
All reactions