mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-09-03 06:35:00 +08:00
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:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user