@@ -122,10 +122,12 @@ type Assistant struct {
122122 // characters.
123123 Instructions string `json:"instructions,required,nullable"`
124124 // Set of 16 key-value pairs that can be attached to an object. This can be useful
125- // for storing additional information about the object in a structured format. Keys
126- // can be a maximum of 64 characters long and values can be a maximum of 512
127- // characters long.
128- Metadata interface {} `json:"metadata,required,nullable"`
125+ // for storing additional information about the object in a structured format, and
126+ // querying for objects via API or the dashboard.
127+ //
128+ // Keys are strings with a maximum length of 64 characters. Values are strings with
129+ // a maximum length of 512 characters.
130+ Metadata shared.Metadata `json:"metadata,required,nullable"`
129131 // ID of the model to use. You can use the
130132 // [List models](https://platform.openai.com/docs/api-reference/models/list) API to
131133 // see all of your available models, or see our
@@ -2072,10 +2074,12 @@ type BetaAssistantNewParams struct {
20722074 // characters.
20732075 Instructions param.Field [string ] `json:"instructions"`
20742076 // Set of 16 key-value pairs that can be attached to an object. This can be useful
2075- // for storing additional information about the object in a structured format. Keys
2076- // can be a maximum of 64 characters long and values can be a maximum of 512
2077- // characters long.
2078- Metadata param.Field [interface {}] `json:"metadata"`
2077+ // for storing additional information about the object in a structured format, and
2078+ // querying for objects via API or the dashboard.
2079+ //
2080+ // Keys are strings with a maximum length of 64 characters. Values are strings with
2081+ // a maximum length of 512 characters.
2082+ Metadata param.Field [shared.MetadataParam ] `json:"metadata"`
20792083 // The name of the assistant. The maximum length is 256 characters.
20802084 Name param.Field [string ] `json:"name"`
20812085 // What sampling temperature to use, between 0 and 2. Higher values like 0.8 will
@@ -2152,11 +2156,13 @@ type BetaAssistantNewParamsToolResourcesFileSearchVectorStore struct {
21522156 // add to the vector store. There can be a maximum of 10000 files in a vector
21532157 // store.
21542158 FileIDs param.Field [[]string ] `json:"file_ids"`
2155- // Set of 16 key-value pairs that can be attached to a vector store. This can be
2156- // useful for storing additional information about the vector store in a structured
2157- // format. Keys can be a maximum of 64 characters long and values can be a maximum
2158- // of 512 characters long.
2159- Metadata param.Field [interface {}] `json:"metadata"`
2159+ // Set of 16 key-value pairs that can be attached to an object. This can be useful
2160+ // for storing additional information about the object in a structured format, and
2161+ // querying for objects via API or the dashboard.
2162+ //
2163+ // Keys are strings with a maximum length of 64 characters. Values are strings with
2164+ // a maximum length of 512 characters.
2165+ Metadata param.Field [shared.MetadataParam ] `json:"metadata"`
21602166}
21612167
21622168func (r BetaAssistantNewParamsToolResourcesFileSearchVectorStore ) MarshalJSON () (data []byte , err error ) {
@@ -2170,10 +2176,12 @@ type BetaAssistantUpdateParams struct {
21702176 // characters.
21712177 Instructions param.Field [string ] `json:"instructions"`
21722178 // Set of 16 key-value pairs that can be attached to an object. This can be useful
2173- // for storing additional information about the object in a structured format. Keys
2174- // can be a maximum of 64 characters long and values can be a maximum of 512
2175- // characters long.
2176- Metadata param.Field [interface {}] `json:"metadata"`
2179+ // for storing additional information about the object in a structured format, and
2180+ // querying for objects via API or the dashboard.
2181+ //
2182+ // Keys are strings with a maximum length of 64 characters. Values are strings with
2183+ // a maximum length of 512 characters.
2184+ Metadata param.Field [shared.MetadataParam ] `json:"metadata"`
21772185 // ID of the model to use. You can use the
21782186 // [List models](https://platform.openai.com/docs/api-reference/models/list) API to
21792187 // see all of your available models, or see our
0 commit comments