@@ -45,15 +45,12 @@ export function calculateCost<TApi extends Api>(model: Model<TApi>, usage: Usage
|
|||||||
return usage.cost;
|
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.
|
* Check if a model supports xhigh thinking level.
|
||||||
* Currently only certain OpenAI Codex models support this.
|
* Currently only certain OpenAI Codex models support this.
|
||||||
*/
|
*/
|
||||||
export function supportsXhigh<TApi extends Api>(model: Model<TApi>): boolean {
|
export function supportsXhigh<TApi extends Api>(model: Model<TApi>): boolean {
|
||||||
return XHIGH_MODELS.has(model.id);
|
return model.id.includes("gpt-5.2");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user