Skip to content

Commit 2c81921

Browse files
committed
refactor: sync thinking-policy doc comments with gpt-5.5 regex
After #3190 added gpt-5.5 to the xhigh-ladder branch, the JSDoc rules list and the inline comment above the regex block were left describing only gpt-5.2/5.4. This commit updates both comments to reflect gpt-5.5 matching (and clarifies that mini/nano are only matched for 5.4/5.5, not 5.2). Comment-only change, no behavior impact.
1 parent 2b7b5fe commit 2c81921

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/common/utils/thinking/policy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export type ThinkingPolicy = readonly ThinkingLevel[];
3333
* - openai:gpt-5.2-codex → ["off", "low", "medium", "high", "xhigh"] (5 levels including xhigh)
3434
* - openai:gpt-5.3-codex / Spark variants →
3535
* ["off", "low", "medium", "high", "xhigh"] (5 levels including xhigh)
36-
* - openai:gpt-5.2 / openai:gpt-5.4 → ["off", "low", "medium", "high", "xhigh"]
36+
* - openai:gpt-5.2 / openai:gpt-5.4 / openai:gpt-5.5 → ["off", "low", "medium", "high", "xhigh"]
3737
* - openai:gpt-5.2-pro / openai:gpt-5.4-pro → ["medium", "high", "xhigh"] (3 levels)
3838
* - openai:gpt-5-pro → ["high"] (only supported level, legacy)
3939
* - gemini-3 → ["low", "high"] (thinking level only)
@@ -82,7 +82,7 @@ export function getThinkingPolicyForModel(modelString: string): ThinkingPolicy {
8282
return ["medium", "high", "xhigh"];
8383
}
8484

85-
// gpt-5.2, gpt-5.4, gpt-5.5 and their mini/nano variants support 5 reasoning levels including xhigh.
85+
// gpt-5.2, gpt-5.4, gpt-5.5, and gpt-5.4/5.5 mini/nano variants support 5 reasoning levels including xhigh.
8686
if (
8787
/^gpt-5\.2(?!-[a-z])/.test(withoutProviderNamespace) ||
8888
/^gpt-5\.(?:4|5)(?:-(?:mini|nano))?(?!-[a-z])/.test(withoutProviderNamespace)

0 commit comments

Comments
 (0)