@@ -122,10 +122,12 @@ type Assistant struct {
122
122
// characters.
123
123
Instructions string `json:"instructions,required,nullable"`
124
124
// 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"`
129
131
// ID of the model to use. You can use the
130
132
// [List models](https://platform.openai.com/docs/api-reference/models/list) API to
131
133
// see all of your available models, or see our
@@ -2072,10 +2074,12 @@ type BetaAssistantNewParams struct {
2072
2074
// characters.
2073
2075
Instructions param.Field [string ] `json:"instructions"`
2074
2076
// 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"`
2079
2083
// The name of the assistant. The maximum length is 256 characters.
2080
2084
Name param.Field [string ] `json:"name"`
2081
2085
// What sampling temperature to use, between 0 and 2. Higher values like 0.8 will
@@ -2152,11 +2156,13 @@ type BetaAssistantNewParamsToolResourcesFileSearchVectorStore struct {
2152
2156
// add to the vector store. There can be a maximum of 10000 files in a vector
2153
2157
// store.
2154
2158
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"`
2160
2166
}
2161
2167
2162
2168
func (r BetaAssistantNewParamsToolResourcesFileSearchVectorStore ) MarshalJSON () (data []byte , err error ) {
@@ -2170,10 +2176,12 @@ type BetaAssistantUpdateParams struct {
2170
2176
// characters.
2171
2177
Instructions param.Field [string ] `json:"instructions"`
2172
2178
// 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"`
2177
2185
// ID of the model to use. You can use the
2178
2186
// [List models](https://platform.openai.com/docs/api-reference/models/list) API to
2179
2187
// see all of your available models, or see our
0 commit comments