Commit ae2ec36
fix: pass both "openai" and "azure" providerOptions keys for @ai-sdk/azure
`@ai-sdk/azure` delegates to `OpenAIChatLanguageModel` from
`@ai-sdk/openai`, which hardcodes `provider: 'openai'` when calling
`parseProviderOptions` — so it only reads model options from
`providerOptions["openai"]`. Meanwhile, `OpenAIResponsesLanguageModel`
checks `providerOptions["azure"]` first, falling back to `"openai"`.
Previously, `providerOptions()` only passed options under the `"azure"`
key (via `sdkKey`), which meant model options like `reasoningEffort`
were silently ignored on the chat completions path.
Fix: for `@ai-sdk/azure`, pass options under both `"openai"` and
`"azure"` keys so they are picked up by both the Chat and Responses
model implementations. This avoids changing `sdkKey()`, which is also
used for message-level providerOptions remapping where `"azure"` is
the correct key.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 506dd75 commit ae2ec36
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
936 | 936 | | |
937 | 937 | | |
938 | 938 | | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
939 | 945 | | |
940 | 946 | | |
941 | 947 | | |
| |||
0 commit comments