Skip to content

Commit 1b7e4a5

Browse files
feat(api): mark Sonnet and Opus 4 as deprecated
1 parent 53f1077 commit 1b7e4a5

2 files changed

Lines changed: 18 additions & 6 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 72
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic%2Fanthropic-dfe504526eed07979685a729ac9afd45e59cc2879291714b9f4674f2ef1247c7.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic%2Fanthropic-f4d4f18820ecfbe244fb1bbc2232939afca73dfcb21ce23bc296571ee7320e3a.yml
33
openapi_spec_hash: d849fdf2c4dd6631a60c4340e9bc1322
4-
config_hash: 4f42711769ade2ca17b39534532e66bf
4+
config_hash: 2e9a2fd5355db62857f6be16f46a3ccc

message.go

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4047,10 +4047,22 @@ const (
40474047
ModelClaudeSonnet4_5_20250929 Model = "claude-sonnet-4-5-20250929"
40484048
ModelClaudeOpus4_1 Model = "claude-opus-4-1"
40494049
ModelClaudeOpus4_1_20250805 Model = "claude-opus-4-1-20250805"
4050-
ModelClaudeOpus4_0 Model = "claude-opus-4-0"
4051-
ModelClaudeOpus4_20250514 Model = "claude-opus-4-20250514"
4052-
ModelClaudeSonnet4_0 Model = "claude-sonnet-4-0"
4053-
ModelClaudeSonnet4_20250514 Model = "claude-sonnet-4-20250514"
4050+
// Deprecated: Will reach end-of-life on June 15th, 2026. Please migrate to a newer
4051+
// model. Visit https://docs.anthropic.com/en/docs/resources/model-deprecations for
4052+
// more information.
4053+
ModelClaudeOpus4_0 Model = "claude-opus-4-0"
4054+
// Deprecated: Will reach end-of-life on June 15th, 2026. Please migrate to a newer
4055+
// model. Visit https://docs.anthropic.com/en/docs/resources/model-deprecations for
4056+
// more information.
4057+
ModelClaudeOpus4_20250514 Model = "claude-opus-4-20250514"
4058+
// Deprecated: Will reach end-of-life on June 15th, 2026. Please migrate to a newer
4059+
// model. Visit https://docs.anthropic.com/en/docs/resources/model-deprecations for
4060+
// more information.
4061+
ModelClaudeSonnet4_0 Model = "claude-sonnet-4-0"
4062+
// Deprecated: Will reach end-of-life on June 15th, 2026. Please migrate to a newer
4063+
// model. Visit https://docs.anthropic.com/en/docs/resources/model-deprecations for
4064+
// more information.
4065+
ModelClaudeSonnet4_20250514 Model = "claude-sonnet-4-20250514"
40544066
// Deprecated: Will reach end-of-life on April 20th, 2026. Please migrate to
40554067
// claude-haiku-4-5. Visit
40564068
// https://docs.anthropic.com/en/docs/resources/model-deprecations for more

0 commit comments

Comments
 (0)