Skip to content

Commit dd61a29

Browse files
chore(client): undo some naming changes
1 parent b5b5dd5 commit dd61a29

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 123
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-242fe01994cc3c6c2b1a76d8e1eaa832303fa870e4e40de4a2303ac5ce17369a.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-11d308a9ef78ad01aa11c880a084a3982276800d7994db3f454aa515474977d7.yml
33
openapi_spec_hash: 0a4bbb5aa0ae532a072bd6b3854e70b1
4-
config_hash: c6362759d174c1ff65e656b1cfb5efdb
4+
config_hash: f0940d0906846178759ef7128e4cb98e

responses/response.go

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13432,7 +13432,7 @@ func (r *ToolCodeInterpreter) UnmarshalJSON(data []byte) error {
1343213432
}
1343313433

1343413434
// ToolCodeInterpreterContainerUnion contains all possible properties and values
13435-
// from [string], [ToolCodeInterpreterContainerCodeInterpreterToolAuto].
13435+
// from [string], [ToolCodeInterpreterContainerCodeInterpreterContainerAuto].
1343613436
//
1343713437
// Use the methods beginning with 'As' to cast the union to one of its variants.
1343813438
//
@@ -13442,10 +13442,10 @@ type ToolCodeInterpreterContainerUnion struct {
1344213442
// This field will be present if the value is a [string] instead of an object.
1344313443
OfString string `json:",inline"`
1344413444
// This field is from variant
13445-
// [ToolCodeInterpreterContainerCodeInterpreterToolAuto].
13445+
// [ToolCodeInterpreterContainerCodeInterpreterContainerAuto].
1344613446
Type constant.Auto `json:"type"`
1344713447
// This field is from variant
13448-
// [ToolCodeInterpreterContainerCodeInterpreterToolAuto].
13448+
// [ToolCodeInterpreterContainerCodeInterpreterContainerAuto].
1344913449
FileIDs []string `json:"file_ids"`
1345013450
JSON struct {
1345113451
OfString respjson.Field
@@ -13460,7 +13460,7 @@ func (u ToolCodeInterpreterContainerUnion) AsString() (v string) {
1346013460
return
1346113461
}
1346213462

13463-
func (u ToolCodeInterpreterContainerUnion) AsCodeInterpreterToolAuto() (v ToolCodeInterpreterContainerCodeInterpreterToolAuto) {
13463+
func (u ToolCodeInterpreterContainerUnion) AsCodeInterpreterToolAuto() (v ToolCodeInterpreterContainerCodeInterpreterContainerAuto) {
1346413464
apijson.UnmarshalRoot(json.RawMessage(u.JSON.raw), &v)
1346513465
return
1346613466
}
@@ -13474,7 +13474,7 @@ func (r *ToolCodeInterpreterContainerUnion) UnmarshalJSON(data []byte) error {
1347413474

1347513475
// Configuration for a code interpreter container. Optionally specify the IDs of
1347613476
// the files to run the code on.
13477-
type ToolCodeInterpreterContainerCodeInterpreterToolAuto struct {
13477+
type ToolCodeInterpreterContainerCodeInterpreterContainerAuto struct {
1347813478
// Always `auto`.
1347913479
Type constant.Auto `json:"type,required"`
1348013480
// An optional list of uploaded files to make available to your code.
@@ -13489,8 +13489,8 @@ type ToolCodeInterpreterContainerCodeInterpreterToolAuto struct {
1348913489
}
1349013490

1349113491
// Returns the unmodified JSON received from the API
13492-
func (r ToolCodeInterpreterContainerCodeInterpreterToolAuto) RawJSON() string { return r.JSON.raw }
13493-
func (r *ToolCodeInterpreterContainerCodeInterpreterToolAuto) UnmarshalJSON(data []byte) error {
13492+
func (r ToolCodeInterpreterContainerCodeInterpreterContainerAuto) RawJSON() string { return r.JSON.raw }
13493+
func (r *ToolCodeInterpreterContainerCodeInterpreterContainerAuto) UnmarshalJSON(data []byte) error {
1349413494
return apijson.UnmarshalRoot(data, r)
1349513495
}
1349613496

@@ -13640,13 +13640,13 @@ func ToolParamOfMcp(serverLabel string) ToolUnionParam {
1364013640
}
1364113641

1364213642
func ToolParamOfCodeInterpreter[
13643-
T string | ToolCodeInterpreterContainerCodeInterpreterToolAutoParam,
13643+
T string | ToolCodeInterpreterContainerCodeInterpreterContainerAutoParam,
1364413644
](container T) ToolUnionParam {
1364513645
var codeInterpreter ToolCodeInterpreterParam
1364613646
switch v := any(container).(type) {
1364713647
case string:
1364813648
codeInterpreter.Container.OfString = param.NewOpt(v)
13649-
case ToolCodeInterpreterContainerCodeInterpreterToolAutoParam:
13649+
case ToolCodeInterpreterContainerCodeInterpreterContainerAutoParam:
1365013650
codeInterpreter.Container.OfCodeInterpreterToolAuto = &v
1365113651
}
1365213652
return ToolUnionParam{OfCodeInterpreter: &codeInterpreter}
@@ -14370,8 +14370,8 @@ func (r *ToolCodeInterpreterParam) UnmarshalJSON(data []byte) error {
1437014370
//
1437114371
// Use [param.IsOmitted] to confirm if a field is set.
1437214372
type ToolCodeInterpreterContainerUnionParam struct {
14373-
OfString param.Opt[string] `json:",omitzero,inline"`
14374-
OfCodeInterpreterToolAuto *ToolCodeInterpreterContainerCodeInterpreterToolAutoParam `json:",omitzero,inline"`
14373+
OfString param.Opt[string] `json:",omitzero,inline"`
14374+
OfCodeInterpreterToolAuto *ToolCodeInterpreterContainerCodeInterpreterContainerAutoParam `json:",omitzero,inline"`
1437514375
paramUnion
1437614376
}
1437714377

@@ -14395,7 +14395,7 @@ func (u *ToolCodeInterpreterContainerUnionParam) asAny() any {
1439514395
// the files to run the code on.
1439614396
//
1439714397
// The property Type is required.
14398-
type ToolCodeInterpreterContainerCodeInterpreterToolAutoParam struct {
14398+
type ToolCodeInterpreterContainerCodeInterpreterContainerAutoParam struct {
1439914399
// An optional list of uploaded files to make available to your code.
1440014400
FileIDs []string `json:"file_ids,omitzero"`
1440114401
// Always `auto`.
@@ -14405,11 +14405,11 @@ type ToolCodeInterpreterContainerCodeInterpreterToolAutoParam struct {
1440514405
paramObj
1440614406
}
1440714407

14408-
func (r ToolCodeInterpreterContainerCodeInterpreterToolAutoParam) MarshalJSON() (data []byte, err error) {
14409-
type shadow ToolCodeInterpreterContainerCodeInterpreterToolAutoParam
14408+
func (r ToolCodeInterpreterContainerCodeInterpreterContainerAutoParam) MarshalJSON() (data []byte, err error) {
14409+
type shadow ToolCodeInterpreterContainerCodeInterpreterContainerAutoParam
1441014410
return param.MarshalObject(r, (*shadow)(&r))
1441114411
}
14412-
func (r *ToolCodeInterpreterContainerCodeInterpreterToolAutoParam) UnmarshalJSON(data []byte) error {
14412+
func (r *ToolCodeInterpreterContainerCodeInterpreterContainerAutoParam) UnmarshalJSON(data []byte) error {
1441314413
return apijson.UnmarshalRoot(data, r)
1441414414
}
1441514415

0 commit comments

Comments
 (0)