Skip to content

Commit ac98cba

Browse files
committed
fix(providers/openai): route gpt-5.6 family through Responses API
gpt-5.6-sol, gpt-5.6-terra, and gpt-5.6-luna are reasoning models and must use the Responses API. Without allowlist entries they fell through to the Chat Completions path, which breaks reasoning continuity for agents.
1 parent 4765514 commit ac98cba

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

providers/openai/responses_options.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,9 @@ var responsesReasoningModelIDs = []string{
235235
"gpt-5.4-codex",
236236
"gpt-5.5",
237237
"gpt-5.5-pro",
238+
"gpt-5.6-sol",
239+
"gpt-5.6-terra",
240+
"gpt-5.6-luna",
238241
"gpt-oss-120b",
239242
}
240243

providers/openai/responses_params_test.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,15 @@ func TestValidatePreviousResponseIDPrompt(t *testing.T) {
240240
}
241241
}
242242

243+
func TestResponsesModelAllowlist_GPT56Family(t *testing.T) {
244+
t.Parallel()
245+
246+
for _, modelID := range []string{"gpt-5.6-sol", "gpt-5.6-terra", "gpt-5.6-luna"} {
247+
require.True(t, IsResponsesModel(modelID), modelID)
248+
require.True(t, IsResponsesReasoningModel(modelID), modelID)
249+
}
250+
}
251+
243252
func TestResponsesProviderMetadata_Helper(t *testing.T) {
244253
t.Parallel()
245254

0 commit comments

Comments
 (0)