Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions internal/translator/anthropic_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -655,8 +655,8 @@ var awsOutputConfigModels = []string{
// gcpOutputConfigModels lists model identifiers that support structured outputs
// on GCP Vertex AI: Claude Fable 5, Claude Mythos 5, Claude Opus 5.5,
// Claude Opus 5, Claude Opus 4.8, Claude Mythos Preview, Claude Opus 4.7,
// Claude Opus 4.6, Claude Sonnet 5, Claude Sonnet 4.6, Claude Sonnet 4.5,
// Claude Opus 4.5, and Claude Haiku 4.5.
// Claude Opus 4.6, Claude Sonnet 5.5, Claude Sonnet 5, Claude Sonnet 4.6,
// Claude Sonnet 4.5, Claude Opus 4.5, and Claude Haiku 4.5.
var gcpOutputConfigModels = []string{
"opus-4-5", // Claude Opus 4.5
"sonnet-4-5", // Claude Sonnet 4.5
Expand All @@ -668,6 +668,7 @@ var gcpOutputConfigModels = []string{
"opus-5", // Claude Opus 5
"opus-5-5", // Claude Opus 5.5
"sonnet-5", // Claude Sonnet 5
"sonnet-5-5", // Claude Sonnet 5.5
"fable-5", // Claude Fable 5
"mythos-5", // Claude Mythos 5
"mythos-preview", // Claude Mythos Preview
Expand All @@ -687,8 +688,8 @@ func outputConfigAvailable(apiSchema filterapi.APISchemaName, model internalapi.
// effortModels lists model identifiers that support the output_config.effort parameter.
// The effort parameter is supported by Claude Fable 5, Claude Mythos 5,
// Claude Opus 5.5, Claude Opus 5, Claude Opus 4.8, Claude Mythos Preview,
// Claude Opus 4.7, Claude Opus 4.6, Claude Sonnet 5, Claude Sonnet 4.6,
// and Claude Opus 4.5.
// Claude Opus 4.7, Claude Opus 4.6, Claude Sonnet 5.5, Claude Sonnet 5,
// Claude Sonnet 4.6, and Claude Opus 4.5.
// See: https://platform.claude.com/docs/en/build-with-claude/effort
var effortModels = []string{
"opus-4-5", // Claude Opus 4.5
Expand All @@ -699,6 +700,7 @@ var effortModels = []string{
"opus-5-5", // Claude Opus 5.5
"sonnet-4-6", // Claude Sonnet 4.6
"sonnet-5", // Claude Sonnet 5
"sonnet-5-5", // Claude Sonnet 5.5
"fable-5", // Claude Fable 5
"mythos-5", // Claude Mythos 5
"mythos-preview", // Claude Mythos Preview
Expand Down
17 changes: 17 additions & 0 deletions internal/translator/anthropic_helper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -854,6 +854,18 @@ func TestOutputConfigAvailable(t *testing.T) {
model: "claude-opus-5-5",
expected: false,
},
{
name: "claude-sonnet-5-5 supported on GCP",
apiSchema: filterapi.APISchemaGCPAnthropic,
model: "claude-sonnet-5-5",
expected: true,
},
{
name: "claude-sonnet-5-5 not supported on AWS",
apiSchema: filterapi.APISchemaAWSAnthropic,
model: "claude-sonnet-5-5",
expected: false,
},
// Unsupported models on either backend.
{
name: "claude-3-sonnet not supported on GCP",
Expand Down Expand Up @@ -1275,6 +1287,11 @@ func TestEffortAvailable(t *testing.T) {
model: "claude-opus-5-5",
expected: true,
},
{
name: "claude-sonnet-5-5 supported",
model: "claude-sonnet-5-5",
expected: true,
},
{
name: "claude-sonnet-4-5-20250514 not supported",
model: "claude-sonnet-4-5-20250514",
Expand Down
Loading