chore(api): docs and spec refactoring

This commit is contained in:
stainless-app[bot]
2025-09-15 19:52:07 +00:00
parent 75e14993d4
commit 55cb510eed
3 changed files with 14 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
configured_endpoints: 106
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-94b1e3cb0bdc616ff0c2f267c33dadd95f133b1f64e647aab6c64afb292b2793.yml
openapi_spec_hash: 2395319ac9befd59b6536ae7f9564a05
config_hash: 930dac3aa861344867e4ac84f037b5df
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-d30ff992a48873c1466c49f3c01f2ec8933faebff23424748f8d056065b1bcef.yml
openapi_spec_hash: e933ec43b46f45c348adb78840e5808d
config_hash: bf45940f0a7805b4ec2017eecdd36893

View File

@@ -3395,9 +3395,12 @@ type ChatCompletionListParams struct {
Limit param.Opt[int64] `query:"limit,omitzero" json:"-"`
// The model used to generate the Chat Completions.
Model param.Opt[string] `query:"model,omitzero" json:"-"`
// A list of metadata keys to filter the Chat Completions by. Example:
// Set of 16 key-value pairs that can be attached to an object. This can be useful
// for storing additional information about the object in a structured format, and
// querying for objects via API or the dashboard.
//
// `metadata[key1]=value1&metadata[key2]=value2`
// Keys are strings with a maximum length of 64 characters. Values are strings with
// a maximum length of 512 characters.
Metadata shared.Metadata `query:"metadata,omitzero" json:"-"`
// Sort order for Chat Completions by timestamp. Use `asc` for ascending order or
// `desc` for descending order. Defaults to `asc`.

View File

@@ -750,8 +750,12 @@ type ConversationNewParams struct {
// Initial items to include in the conversation context. You may add up to 20 items
// at a time.
Items []responses.ResponseInputItemUnionParam `json:"items,omitzero"`
// Set of 16 key-value pairs that can be attached to an object. Useful for storing
// additional information about the object in a structured format.
// Set of 16 key-value pairs that can be attached to an object. This can be useful
// for storing additional information about the object in a structured format, and
// querying for objects via API or the dashboard.
//
// Keys are strings with a maximum length of 64 characters. Values are strings with
// a maximum length of 512 characters.
Metadata shared.Metadata `json:"metadata,omitzero"`
paramObj
}