Skip to content

Commit 2c6421c

Browse files
fix(api): fix errors in api spec
1 parent 8dd22d4 commit 2c6421c

5 files changed

Lines changed: 12 additions & 4 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: 91
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic%2Fanthropic-d4d7fd5ad7272db2902decf5c405e138a16b1fed45a697faea32af12a126b782.yml
3-
openapi_spec_hash: d3c28f7234c8c93e3b945bb76c9d57c0
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic%2Fanthropic-6811827071199207cf69c4e64cae1b41e7e74cdb14048e9c748701e474c694a7.yml
3+
openapi_spec_hash: 0feddcbb70c1d373b305f9c95f7df8e6
44
config_hash: c7cdab4e4eb2befb0d99f6db5c3d4737

betamessage.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5257,7 +5257,7 @@ func (r *BetaMetadataParam) UnmarshalJSON(data []byte) error {
52575257
type BetaOutputConfigParam struct {
52585258
// All possible effort levels.
52595259
//
5260-
// Any of "low", "medium", "high", "max".
5260+
// Any of "low", "medium", "high", "xhigh", "max".
52615261
Effort BetaOutputConfigEffort `json:"effort,omitzero"`
52625262
// A schema to specify Claude's output format in responses. See
52635263
// [structured outputs](https://platform.claude.com/docs/en/build-with-claude/structured-outputs)
@@ -5282,6 +5282,7 @@ const (
52825282
BetaOutputConfigEffortLow BetaOutputConfigEffort = "low"
52835283
BetaOutputConfigEffortMedium BetaOutputConfigEffort = "medium"
52845284
BetaOutputConfigEffortHigh BetaOutputConfigEffort = "high"
5285+
BetaOutputConfigEffortXhigh BetaOutputConfigEffort = "xhigh"
52855286
BetaOutputConfigEffortMax BetaOutputConfigEffort = "max"
52865287
)
52875288

betamodel.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,13 +147,16 @@ type BetaEffortCapability struct {
147147
Medium BetaCapabilitySupport `json:"medium" api:"required"`
148148
// Whether this capability is supported by the model.
149149
Supported bool `json:"supported" api:"required"`
150+
// Indicates whether a capability is supported.
151+
Xhigh BetaCapabilitySupport `json:"xhigh" api:"required"`
150152
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
151153
JSON struct {
152154
High respjson.Field
153155
Low respjson.Field
154156
Max respjson.Field
155157
Medium respjson.Field
156158
Supported respjson.Field
159+
Xhigh respjson.Field
157160
ExtraFields map[string]respjson.Field
158161
raw string
159162
} `json:"-"`

message.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4076,7 +4076,7 @@ const (
40764076
type OutputConfigParam struct {
40774077
// All possible effort levels.
40784078
//
4079-
// Any of "low", "medium", "high", "max".
4079+
// Any of "low", "medium", "high", "xhigh", "max".
40804080
Effort OutputConfigEffort `json:"effort,omitzero"`
40814081
// A schema to specify Claude's output format in responses. See
40824082
// [structured outputs](https://platform.claude.com/docs/en/build-with-claude/structured-outputs)
@@ -4099,6 +4099,7 @@ const (
40994099
OutputConfigEffortLow OutputConfigEffort = "low"
41004100
OutputConfigEffortMedium OutputConfigEffort = "medium"
41014101
OutputConfigEffortHigh OutputConfigEffort = "high"
4102+
OutputConfigEffortXhigh OutputConfigEffort = "xhigh"
41024103
OutputConfigEffortMax OutputConfigEffort = "max"
41034104
)
41044105

model.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,13 +147,16 @@ type EffortCapability struct {
147147
Medium CapabilitySupport `json:"medium" api:"required"`
148148
// Whether this capability is supported by the model.
149149
Supported bool `json:"supported" api:"required"`
150+
// Indicates whether a capability is supported.
151+
Xhigh CapabilitySupport `json:"xhigh" api:"required"`
150152
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
151153
JSON struct {
152154
High respjson.Field
153155
Low respjson.Field
154156
Max respjson.Field
155157
Medium respjson.Field
156158
Supported respjson.Field
159+
Xhigh respjson.Field
157160
ExtraFields map[string]respjson.Field
158161
raw string
159162
} `json:"-"`

0 commit comments

Comments
 (0)