fix: bug encountered when using azure gpt-5.5 w/ completions api (#26222)
This commit is contained in:
parent
4d8368970a
commit
9675579796
1 changed files with 74 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue