From 76551b026ce05bc2eb3352df175bd8e43a2059cf Mon Sep 17 00:00:00 2001 From: Aryan Motgi Date: Thu, 21 May 2026 19:18:08 -0700 Subject: [PATCH] Fix swapped Azure endpoint hostname in examples/azure.py The second AzureOpenAI client example used the hostname example-resource.azure.openai.com, but Azure OpenAI resources live at {resource}.openai.azure.com. The sibling example above (line 11) already uses the correct openai.azure.com form, as do the Microsoft docs linked in the comment. --- examples/azure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/azure.py b/examples/azure.py index 6936c4cb0e..4b6a9dc925 100755 --- a/examples/azure.py +++ b/examples/azure.py @@ -26,7 +26,7 @@ deployment_client = AzureOpenAI( api_version=api_version, # https://learn.microsoft.com/en-us/azure/cognitive-services/openai/how-to/create-resource?pivots=web-portal#create-a-resource - azure_endpoint="https://example-resource.azure.openai.com/", + azure_endpoint="https://example-resource.openai.azure.com/", # Navigate to the Azure OpenAI Studio to deploy a model. azure_deployment="deployment-name", # e.g. gpt-35-instant )