Skip to content

Commit 1ede134

Browse files
authored
Merge pull request #249 from ben-vargas/fix-gpt5-1-reasoning
fix(runtime): remove gpt-5.1 minimal effort variant
2 parents cf9b9be + cfbaed0 commit 1ede134

File tree

2 files changed

+4
-21
lines changed

2 files changed

+4
-21
lines changed

internal/registry/model_definitions.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -430,19 +430,6 @@ func GetOpenAIModels() []*ModelInfo {
430430
MaxCompletionTokens: 128000,
431431
SupportedParameters: []string{"tools"},
432432
},
433-
{
434-
ID: "gpt-5.1-minimal",
435-
Object: "model",
436-
Created: time.Now().Unix(),
437-
OwnedBy: "openai",
438-
Type: "openai",
439-
Version: "gpt-5.1-2025-11-12",
440-
DisplayName: "GPT 5 Minimal",
441-
Description: "Stable version of GPT 5, The best model for coding and agentic tasks across domains.",
442-
ContextLength: 400000,
443-
MaxCompletionTokens: 128000,
444-
SupportedParameters: []string{"tools"},
445-
},
446433
{
447434
ID: "gpt-5.1-low",
448435
Object: "model",

internal/runtime/executor/codex_executor.go

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,12 @@ func (e *CodexExecutor) Execute(ctx context.Context, auth *cliproxyauth.Auth, re
8585
default:
8686
body, _ = sjson.SetBytes(body, "reasoning.effort", "medium")
8787
}
88-
} else if util.InArray([]string{"gpt-5.1", "gpt-5.1-minimal", "gpt-5.1-low", "gpt-5.1-medium", "gpt-5.1-high"}, req.Model) {
88+
} else if util.InArray([]string{"gpt-5.1", "gpt-5.1-low", "gpt-5.1-medium", "gpt-5.1-high"}, req.Model) {
8989
body, _ = sjson.SetBytes(body, "model", "gpt-5.1")
9090
switch req.Model {
91-
case "gpt-5.1-minimal":
92-
body, _ = sjson.SetBytes(body, "reasoning.effort", "minimal")
9391
case "gpt-5.1-low":
9492
body, _ = sjson.SetBytes(body, "reasoning.effort", "low")
95-
case "gpt-5.1-medium":
93+
case "gpt-5.1-medium", "gpt-5.1":
9694
body, _ = sjson.SetBytes(body, "reasoning.effort", "medium")
9795
case "gpt-5.1-high":
9896
body, _ = sjson.SetBytes(body, "reasoning.effort", "high")
@@ -239,14 +237,12 @@ func (e *CodexExecutor) ExecuteStream(ctx context.Context, auth *cliproxyauth.Au
239237
case "gpt-5-codex-mini-high":
240238
body, _ = sjson.SetBytes(body, "reasoning.effort", "high")
241239
}
242-
} else if util.InArray([]string{"gpt-5.1", "gpt-5.1-minimal", "gpt-5.1-low", "gpt-5.1-medium", "gpt-5.1-high"}, req.Model) {
240+
} else if util.InArray([]string{"gpt-5.1", "gpt-5.1-low", "gpt-5.1-medium", "gpt-5.1-high"}, req.Model) {
243241
body, _ = sjson.SetBytes(body, "model", "gpt-5.1")
244242
switch req.Model {
245-
case "gpt-5.1-minimal":
246-
body, _ = sjson.SetBytes(body, "reasoning.effort", "minimal")
247243
case "gpt-5.1-low":
248244
body, _ = sjson.SetBytes(body, "reasoning.effort", "low")
249-
case "gpt-5.1-medium":
245+
case "gpt-5.1-medium", "gpt-5.1":
250246
body, _ = sjson.SetBytes(body, "reasoning.effort", "medium")
251247
case "gpt-5.1-high":
252248
body, _ = sjson.SetBytes(body, "reasoning.effort", "high")

0 commit comments

Comments
 (0)