fix(ai): relax xhigh model check

fixes #1209
This commit is contained in:
Mario Zechner 2026-02-03 13:03:46 +01:00
parent 2f5235b966
commit 2e1c5ebdee

View file

@ -45,15 +45,12 @@ export function calculateCost<TApi extends Api>(model: Model<TApi>, usage: Usage
return usage.cost;
}
/** Models that support xhigh thinking level */
const XHIGH_MODELS = new Set(["gpt-5.1-codex-max", "gpt-5.2", "gpt-5.2-codex"]);
/**
* Check if a model supports xhigh thinking level.
* Currently only certain OpenAI Codex models support this.
*/
export function supportsXhigh<TApi extends Api>(model: Model<TApi>): boolean {
return XHIGH_MODELS.has(model.id);
return model.id.includes("gpt-5.2");
}
/**