fix(ai): support xhigh for Codex GPT-5.5

This commit is contained in:
Mario Zechner
2026-04-23 22:49:09 +02:00
parent 8700ac1f0e
commit bf4aa3a601
7 changed files with 80 additions and 12 deletions

View File

@@ -225,7 +225,8 @@ export interface AgentLoopConfig extends SimpleStreamOptions {
/**
* Thinking/reasoning level for models that support it.
* Note: "xhigh" is only supported by OpenAI gpt-5.1-codex-max, gpt-5.2, gpt-5.2-codex, gpt-5.3, and gpt-5.3-codex models.
* Note: "xhigh" is only supported by selected model families. Use supportsXhigh() from @mariozechner/pi-ai
* to detect support for a concrete model.
*/
export type ThinkingLevel = "off" | "minimal" | "low" | "medium" | "high" | "xhigh";