Skip to content

Commit d4a4218

Browse files
authored
Merge pull request #19 from ethpandaops/feat/gpt-5.5-fallback
feat(models): add gpt-5.5 fallback specs and default
2 parents 69ac0cb + 6b598f6 commit d4a4218

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

internal/subprocess/appserver_adapter.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -984,6 +984,10 @@ var officialModelSpecs = map[string]modelSpec{
984984
ContextWindow: 1050000,
985985
MaxOutputTokens: 128000,
986986
},
987+
"gpt-5.5": {
988+
ContextWindow: 1050000,
989+
MaxOutputTokens: 128000,
990+
},
987991
}
988992

989993
var runtimeModelSpecs = map[string]modelSpec{
@@ -1065,7 +1069,7 @@ func (a *AppServerAdapter) listAllModels(ctx context.Context) (*modelListResult,
10651069

10661070
// defaultModelID is the model marked as default when the API does
10671071
// not flag any model with isDefault.
1068-
const defaultModelID = "gpt-5.3-codex"
1072+
const defaultModelID = "gpt-5.5"
10691073

10701074
// ensureDefaultModel sets isDefault on the preferred model when no
10711075
// model in the list has isDefault set to true.

internal/subprocess/appserver_adapter_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3111,12 +3111,12 @@ func TestTranslateNotification_ErrorMethod(t *testing.T) {
31113111
func TestEnsureDefaultModel(t *testing.T) {
31123112
t.Parallel()
31133113

3114-
t.Run("no default set picks gpt-5.3-codex", func(t *testing.T) {
3114+
t.Run("no default set picks gpt-5.5", func(t *testing.T) {
31153115
t.Parallel()
31163116

31173117
models := []map[string]any{
31183118
{"id": "gpt-4.1-mini"},
3119-
{"id": "gpt-5.3-codex"},
3119+
{"id": "gpt-5.5"},
31203120
{"id": "o3-pro"},
31213121
}
31223122

0 commit comments

Comments
 (0)