fix: exclude 'none' variant for gpt-5.2-codex (#7682)
This commit is contained in:
committed by
GitHub
parent
d5738f542c
commit
794c5981a5
@@ -318,7 +318,10 @@ export namespace ProviderTransform {
|
|||||||
// https://v5.ai-sdk.dev/providers/ai-sdk-providers/openai
|
// https://v5.ai-sdk.dev/providers/ai-sdk-providers/openai
|
||||||
if (id === "gpt-5-pro") return {}
|
if (id === "gpt-5-pro") return {}
|
||||||
const openaiEfforts = iife(() => {
|
const openaiEfforts = iife(() => {
|
||||||
if (id.includes("codex") && !id.includes("5.2")) return WIDELY_SUPPORTED_EFFORTS
|
if (id.includes("codex")) {
|
||||||
|
if (id.includes("5.2")) return [...WIDELY_SUPPORTED_EFFORTS, "xhigh"]
|
||||||
|
return WIDELY_SUPPORTED_EFFORTS
|
||||||
|
}
|
||||||
const arr = [...WIDELY_SUPPORTED_EFFORTS]
|
const arr = [...WIDELY_SUPPORTED_EFFORTS]
|
||||||
if (id.includes("gpt-5-") || id === "gpt-5") {
|
if (id.includes("gpt-5-") || id === "gpt-5") {
|
||||||
arr.unshift("minimal")
|
arr.unshift("minimal")
|
||||||
|
|||||||
Reference in New Issue
Block a user