fix: bug encountered when using azure gpt-5.5 w/ completions api (#26222)

This commit is contained in:
Frederik
2026-05-14 06:24:16 +02:00
committed by GitHub
parent 4d8368970a
commit 9675579796
2 changed files with 74 additions and 0 deletions

View File

@@ -1126,6 +1126,11 @@ export function options(input: {
result["enable_thinking"] = true
}
if (input.model.api.npm === "@ai-sdk/azure" && input.model.api.id.includes("gpt-5.5")) {
result["reasoningSummary"] = "auto"
return result;
}
if (input.model.api.id.includes("gpt-5") && !input.model.api.id.includes("gpt-5-chat")) {
if (!input.model.api.id.includes("gpt-5-pro")) {
result["reasoningEffort"] = "medium"