fix(azure-cognitive-services): correct env var in kimi model API URLs#2654
Merged
rekram1-node merged 2 commits intoJun 18, 2026
Merged
Conversation
The kimi-k2.5.toml and kimi-k2.6.toml files in azure-cognitive-services used AZURE_RESOURCE_NAME in their API URLs, but the provider declares AZURE_COGNITIVE_SERVICES_RESOURCE_NAME as the expected environment variable. Changes: - kimi-k2.5.toml: converted from symlink (pointing to azure/models/) to standalone real file with the corrected env var - kimi-k2.6.toml: replaced AZURE_RESOURCE_NAME with AZURE_COGNITIVE_SERVICES_RESOURCE_NAME in the API URL This matches the pattern used by other models with provider overrides in azure-cognitive-services (e.g. claude-haiku-4-5, claude-opus-4-1, etc.).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The
kimi-k2.5.tomlandkimi-k2.6.tomlmodel files in Azure Cognitive Services use${AZURE_RESOURCE_NAME}in their API URLs, but the provider declaresAZURE_COGNITIVE_SERVICES_RESOURCE_NAMEas the expected environment variable inproviders/azure-cognitive-services/provider.toml.At runtime, the provider would fail because
AZURE_RESOURCE_NAMEis not one of its declared environment variables.Changes
providers/azure-cognitive-services/models/kimi-k2.6.tomlAZURE_RESOURCE_NAMEwithAZURE_COGNITIVE_SERVICES_RESOURCE_NAMEin the API URLproviders/azure-cognitive-services/models/kimi-k2.5.toml../../azure/models/kimi-k2.5.tomlinto a standalone real fileAZURE_COGNITIVE_SERVICES_RESOURCE_NAMEWhy not keep the symlink?
Models that override the default
@ai-sdk/azureprovider with a different npm module (Claude models with@ai-sdk/anthropic, kimi models with@ai-sdk/openai-compatible) must be real files in each provider directory because their API URLs reference different environment variables per provider. This matches the existing pattern used by all Claude models inazure-cognitive-services/models/.Verification
providers/azure/models/) are untouched and continue usingAZURE_RESOURCE_NAMEAZURE_COGNITIVE_SERVICES_RESOURCE_NAME[provider]block pointing to the Azure directory