azure_model_listingTier 1 · 70% confidence

ai-agents-azure-model-listing-azure-api-key-and-base-url-env-variables-are-set-b-3025d141

agent: ai_agents

When does this happen?

IF Azure API key and base URL env variables are set, but Azure models are not shown in the model dropdown in Letta.

How others solved it

THEN Ensure that the application's model discovery logic correctly queries Azure OpenAI's model list endpoint and populates the dropdown. Alternatively, require users to explicitly specify the deployment name via a separate configuration field. Consider adding a fallback to allow manual model ID entry.

if not AZURE_BASE_URL:
    model_list = openai.Model.list()
else:
    # Azure requires deployment name, not model name
    model_list = [{'id': deployment_name} for deployment_name in known_deployments]

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics