Skip to content

Conversation

@jamesrochabrun
Copy link
Owner

Summary

  • Fixed incorrect Azure OpenAI endpoint URL construction
  • Changed separator from forward slash (/) to dot (.) in base URL

Problem

The base URL was using:

https://{resourceName}/openai.azure.com

This resulted in DNS resolution failures because it creates a malformed URL where {resourceName} is treated as the entire hostname, and /openai.azure.com is treated as a path.

Solution

Changed to the correct Azure OpenAI format:

https://{resourceName}.openai.azure.com

This properly forms a subdomain structure that resolves correctly.

Reference

Test plan

  • Verify Azure OpenAI chat completion requests now resolve correctly
  • Test with actual Azure OpenAI resource to confirm endpoint connectivity
  • Validate that the full URL construction follows the pattern: https://{resourceName}.openai.azure.com/openai/deployments/{deployment-id}/...

Fixes #139

🤖 Generated with Claude Code

The base URL was incorrectly using a forward slash (/) instead of a dot (.) to construct the Azure OpenAI endpoint, resulting in malformed URLs like `https://{resourceName}/openai.azure.com` instead of the correct `https://{resourceName}.openai.azure.com`.

This caused DNS resolution failures when attempting to connect to Azure OpenAI services.

Reference: https://learn.microsoft.com/en-us/azure/ai-services/openai/reference

Fixes #139

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@jamesrochabrun jamesrochabrun merged commit b56cb26 into main Nov 14, 2025
3 checks passed
@jamesrochabrun jamesrochabrun deleted the fix/azure-url-construction branch November 14, 2025 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AzureOpenAIConfiguration url construction

2 participants