Skip to content

Commit b5b5dd5

Browse files
chore(api): internal updates
1 parent d67e568 commit b5b5dd5

File tree

3 files changed

+26
-26
lines changed

3 files changed

+26
-26
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-e66e85fb7f72477256dca1acb6b23396989d381c5c1b318de564195436bcb93f.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-242fe01994cc3c6c2b1a76d8e1eaa832303fa870e4e40de4a2303ac5ce17369a.yml
33
openapi_spec_hash: 0a4bbb5aa0ae532a072bd6b3854e70b1
4-
config_hash: 89bf7bb3a1f9439ffc6ea0e7dc57ba9b
4+
config_hash: c6362759d174c1ff65e656b1cfb5efdb

betathreadmessage.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -923,7 +923,7 @@ func (r *MessageAttachment) UnmarshalJSON(data []byte) error {
923923
}
924924

925925
// MessageAttachmentToolUnion contains all possible properties and values from
926-
// [CodeInterpreterTool], [MessageAttachmentToolFileSearchTool].
926+
// [CodeInterpreterTool], [MessageAttachmentToolAssistantToolsFileSearchTypeOnly].
927927
//
928928
// Use the methods beginning with 'As' to cast the union to one of its variants.
929929
type MessageAttachmentToolUnion struct {
@@ -939,7 +939,7 @@ func (u MessageAttachmentToolUnion) AsCodeInterpreterTool() (v CodeInterpreterTo
939939
return
940940
}
941941

942-
func (u MessageAttachmentToolUnion) AsFileSearchTool() (v MessageAttachmentToolFileSearchTool) {
942+
func (u MessageAttachmentToolUnion) AsAssistantToolsFileSearchTypeOnly() (v MessageAttachmentToolAssistantToolsFileSearchTypeOnly) {
943943
apijson.UnmarshalRoot(json.RawMessage(u.JSON.raw), &v)
944944
return
945945
}
@@ -951,7 +951,7 @@ func (r *MessageAttachmentToolUnion) UnmarshalJSON(data []byte) error {
951951
return apijson.UnmarshalRoot(data, r)
952952
}
953953

954-
type MessageAttachmentToolFileSearchTool struct {
954+
type MessageAttachmentToolAssistantToolsFileSearchTypeOnly struct {
955955
// The type of tool being defined: `file_search`
956956
Type constant.FileSearch `json:"type,required"`
957957
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
@@ -963,8 +963,8 @@ type MessageAttachmentToolFileSearchTool struct {
963963
}
964964

965965
// Returns the unmodified JSON received from the API
966-
func (r MessageAttachmentToolFileSearchTool) RawJSON() string { return r.JSON.raw }
967-
func (r *MessageAttachmentToolFileSearchTool) UnmarshalJSON(data []byte) error {
966+
func (r MessageAttachmentToolAssistantToolsFileSearchTypeOnly) RawJSON() string { return r.JSON.raw }
967+
func (r *MessageAttachmentToolAssistantToolsFileSearchTypeOnly) UnmarshalJSON(data []byte) error {
968968
return apijson.UnmarshalRoot(data, r)
969969
}
970970

responses/response.go

Lines changed: 19 additions & 19 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], [ToolCodeInterpreterContainerCodeInterpreterContainerAuto].
13435+
// from [string], [ToolCodeInterpreterContainerCodeInterpreterToolAuto].
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-
// [ToolCodeInterpreterContainerCodeInterpreterContainerAuto].
13445+
// [ToolCodeInterpreterContainerCodeInterpreterToolAuto].
1344613446
Type constant.Auto `json:"type"`
1344713447
// This field is from variant
13448-
// [ToolCodeInterpreterContainerCodeInterpreterContainerAuto].
13448+
// [ToolCodeInterpreterContainerCodeInterpreterToolAuto].
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) AsCodeInterpreterContainerAuto() (v ToolCodeInterpreterContainerCodeInterpreterContainerAuto) {
13463+
func (u ToolCodeInterpreterContainerUnion) AsCodeInterpreterToolAuto() (v ToolCodeInterpreterContainerCodeInterpreterToolAuto) {
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 ToolCodeInterpreterContainerCodeInterpreterContainerAuto struct {
13477+
type ToolCodeInterpreterContainerCodeInterpreterToolAuto 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 ToolCodeInterpreterContainerCodeInterpreterContainerAuto struct {
1348913489
}
1349013490

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

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

1364213642
func ToolParamOfCodeInterpreter[
13643-
T string | ToolCodeInterpreterContainerCodeInterpreterContainerAutoParam,
13643+
T string | ToolCodeInterpreterContainerCodeInterpreterToolAutoParam,
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 ToolCodeInterpreterContainerCodeInterpreterContainerAutoParam:
13650-
codeInterpreter.Container.OfCodeInterpreterContainerAuto = &v
13649+
case ToolCodeInterpreterContainerCodeInterpreterToolAutoParam:
13650+
codeInterpreter.Container.OfCodeInterpreterToolAuto = &v
1365113651
}
1365213652
return ToolUnionParam{OfCodeInterpreter: &codeInterpreter}
1365313653
}
@@ -14370,13 +14370,13 @@ 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-
OfCodeInterpreterContainerAuto *ToolCodeInterpreterContainerCodeInterpreterContainerAutoParam `json:",omitzero,inline"`
14373+
OfString param.Opt[string] `json:",omitzero,inline"`
14374+
OfCodeInterpreterToolAuto *ToolCodeInterpreterContainerCodeInterpreterToolAutoParam `json:",omitzero,inline"`
1437514375
paramUnion
1437614376
}
1437714377

1437814378
func (u ToolCodeInterpreterContainerUnionParam) MarshalJSON() ([]byte, error) {
14379-
return param.MarshalUnion(u, u.OfString, u.OfCodeInterpreterContainerAuto)
14379+
return param.MarshalUnion(u, u.OfString, u.OfCodeInterpreterToolAuto)
1438014380
}
1438114381
func (u *ToolCodeInterpreterContainerUnionParam) UnmarshalJSON(data []byte) error {
1438214382
return apijson.UnmarshalRoot(data, u)
@@ -14385,8 +14385,8 @@ func (u *ToolCodeInterpreterContainerUnionParam) UnmarshalJSON(data []byte) erro
1438514385
func (u *ToolCodeInterpreterContainerUnionParam) asAny() any {
1438614386
if !param.IsOmitted(u.OfString) {
1438714387
return &u.OfString.Value
14388-
} else if !param.IsOmitted(u.OfCodeInterpreterContainerAuto) {
14389-
return u.OfCodeInterpreterContainerAuto
14388+
} else if !param.IsOmitted(u.OfCodeInterpreterToolAuto) {
14389+
return u.OfCodeInterpreterToolAuto
1439014390
}
1439114391
return nil
1439214392
}
@@ -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 ToolCodeInterpreterContainerCodeInterpreterContainerAutoParam struct {
14398+
type ToolCodeInterpreterContainerCodeInterpreterToolAutoParam 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 ToolCodeInterpreterContainerCodeInterpreterContainerAutoParam struct {
1440514405
paramObj
1440614406
}
1440714407

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

0 commit comments

Comments
 (0)