feat(models): add minimal reasoning level to Codex client models

- Introduced a new reasoning level, `minimal`, to the `codexClientAllowedReasoningLevels` map.
- Updated response-building logic to include descriptive messaging for the `minimal` level.

Closes: #4542
This commit is contained in:
Luis Pater
2026-07-28 01:54:16 +08:00
parent 3073dab0b6
commit 3d5ec8628e

View File

@@ -27,13 +27,14 @@ var (
)
var codexClientAllowedReasoningLevels = map[string]struct{}{
"none": {},
"low": {},
"medium": {},
"high": {},
"xhigh": {},
"max": {},
"ultra": {},
"none": {},
"minimal": {},
"low": {},
"medium": {},
"high": {},
"xhigh": {},
"max": {},
"ultra": {},
}
// BuildResponse builds a Codex client model response from available models.
@@ -392,6 +393,8 @@ func codexClientReasoningDescription(level string) string {
switch level {
case "none":
return "No reasoning"
case "minimal":
return "Fastest responses with minimal reasoning"
case "low":
return "Fast responses with lighter reasoning"
case "medium":