|
|
@@ -936,6 +936,12 @@ export namespace ProviderTransform {
|
|
|
}
|
|
|
|
|
|
const key = sdkKey(model.api.npm) ?? model.providerID
|
|
|
+ // @ai-sdk/azure delegates to OpenAIChatLanguageModel which reads from
|
|
|
+ // providerOptions["openai"], but OpenAIResponsesLanguageModel checks
|
|
|
+ // "azure" first. Pass both so model options work on either code path.
|
|
|
+ if (model.api.npm === "@ai-sdk/azure") {
|
|
|
+ return { openai: options, azure: options }
|
|
|
+ }
|
|
|
return { [key]: options }
|
|
|
}
|
|
|
|