Skip to content

fix(provider): restore Azure Cognitive Services endpoints#37340

Merged
rekram1-node merged 2 commits into
devfrom
azure-acs-url
Jul 16, 2026
Merged

fix(provider): restore Azure Cognitive Services endpoints#37340
rekram1-node merged 2 commits into
devfrom
azure-acs-url

Conversation

@rekram1-node

@rekram1-node rekram1-node commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • include /v1 in generated Azure Cognitive Services OpenAI endpoints
  • preserve legacy deployment-based endpoint construction when useDeploymentBasedUrls is enabled

@ai-sdk/azure 3.0.84+ treats non-.openai.azure.com base URLs as custom gateways and no longer appends /v1. OpenCode previously supplied the ACS base URL without /v1, causing SDK 3.0.88 to request /openai/responses and return Resource not found.

Fixes #37333.

Testing

  • bun test test/provider/provider.test.ts
  • bun typecheck
  • git diff --check

@rekram1-node rekram1-node merged commit 95ebf50 into dev Jul 16, 2026
11 checks passed
@rekram1-node rekram1-node deleted the azure-acs-url branch July 16, 2026 17:58
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.

Azure Cognitive Services regression

1 participant