From bda9232b47271d0645b874e7e1c852c3e23a951b Mon Sep 17 00:00:00 2001 From: Kevin Whinnery Date: Tue, 21 Jan 2025 17:23:59 -0600 Subject: [PATCH] Update openapi.yaml --- openapi.yaml | 240 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 240 insertions(+) diff --git a/openapi.yaml b/openapi.yaml index 1c0b1fad..b7882f01 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -1420,6 +1420,7 @@ paths: const completion = await openai.chat.completions.create({ messages: [{ role: "developer", content: "You are a helpful assistant." }], model: "VAR_chat_model_id", + store: true, }); console.log(completion.choices[0]); @@ -1533,6 +1534,7 @@ paths: ], }, ], + store: true, }); console.log(response.choices[0]); } @@ -1617,6 +1619,7 @@ paths: {"role": "developer", "content": "You are a helpful assistant."}, {"role": "user", "content": "Hello!"} ], + store: true, stream: true, }); @@ -1760,6 +1763,7 @@ paths: messages: messages, tools: tools, tool_choice: "auto", + store: true, }); console.log(response); @@ -1846,6 +1850,7 @@ paths: const completion = await openai.chat.completions.create({ messages: [{ role: "user", content: "Hello!" }], model: "VAR_chat_model_id", + store: true, logprobs: true, top_logprobs: 2, }); @@ -11611,6 +11616,7 @@ components: type: string enum: - assistant + x-stainless-const: true created_at: description: The Unix timestamp (in seconds) for when the assistant was created. type: integer @@ -11822,6 +11828,7 @@ components: description: "The type of tool being defined: `code_interpreter`" enum: - code_interpreter + x-stainless-const: true required: - type AssistantToolsFileSearch: @@ -11833,6 +11840,7 @@ components: description: "The type of tool being defined: `file_search`" enum: - file_search + x-stainless-const: true file_search: type: object description: Overrides for the file search tool. @@ -11865,6 +11873,7 @@ components: description: "The type of tool being defined: `file_search`" enum: - file_search + x-stainless-const: true required: - type AssistantToolsFunction: @@ -11876,6 +11885,7 @@ components: description: "The type of tool being defined: `function`" enum: - function + x-stainless-const: true function: $ref: "#/components/schemas/FunctionObject" required: @@ -11913,6 +11923,7 @@ components: `auto` is the default value enum: - auto + x-stainless-const: true - $ref: "#/components/schemas/ResponseFormatText" - $ref: "#/components/schemas/ResponseFormatJsonObject" - $ref: "#/components/schemas/ResponseFormatJsonSchema" @@ -12405,6 +12416,7 @@ components: description: Always `auto`. enum: - auto + x-stainless-const: true required: - type Batch: @@ -12417,6 +12429,7 @@ components: enum: - batch description: The object type, which is always `batch`. + x-stainless-const: true endpoint: type: string description: The OpenAI API endpoint used by the batch. @@ -12581,6 +12594,7 @@ components: - POST description: The HTTP method to be used for the request. Currently only `POST` is supported. + x-stainless-const: true url: type: string description: The OpenAI API relative URL to be used for the request. Currently @@ -12681,6 +12695,7 @@ components: enum: - function description: The type of the tool. Currently, only `function` is supported. + x-stainless-const: true function: type: object description: The function that the model called. @@ -12715,6 +12730,7 @@ components: enum: - function description: The type of the tool. Currently, only `function` is supported. + x-stainless-const: true function: type: object properties: @@ -12771,6 +12787,7 @@ components: enum: - function description: The type of the tool. Currently, only `function` is supported. + x-stainless-const: true function: type: object properties: @@ -12814,6 +12831,7 @@ components: enum: - assistant description: The role of the messages author, in this case `assistant`. + x-stainless-const: true name: type: string description: An optional name for the participant. Provides the model @@ -12891,6 +12909,7 @@ components: enum: - developer description: The role of the messages author, in this case `developer`. + x-stainless-const: true name: type: string description: An optional name for the participant. Provides the model @@ -12908,6 +12927,7 @@ components: enum: - function description: The role of the messages author, in this case `function`. + x-stainless-const: true content: nullable: true type: string @@ -12939,6 +12959,7 @@ components: enum: - input_audio description: The type of the content part. Always `input_audio`. + x-stainless-const: true input_audio: type: object properties: @@ -12970,6 +12991,7 @@ components: enum: - image_url description: The type of the content part. + x-stainless-const: true image_url: type: object properties: @@ -13000,6 +13022,7 @@ components: enum: - refusal description: The type of the content part. + x-stainless-const: true refusal: type: string description: The refusal message generated by the model. @@ -13017,6 +13040,7 @@ components: enum: - text description: The type of the content part. + x-stainless-const: true text: type: string description: The text content. @@ -13053,6 +13077,7 @@ components: enum: - system description: The role of the messages author, in this case `system`. + x-stainless-const: true name: type: string description: An optional name for the participant. Provides the model @@ -13073,6 +13098,7 @@ components: enum: - tool description: The role of the messages author, in this case `tool`. + x-stainless-const: true content: oneOf: - type: string @@ -13125,6 +13151,7 @@ components: enum: - user description: The role of the messages author, in this case `user`. + x-stainless-const: true name: type: string description: An optional name for the participant. Provides the model @@ -13157,6 +13184,7 @@ components: enum: - assistant description: The role of the author of this message. + x-stainless-const: true function_call: type: object deprecated: true @@ -13329,6 +13357,7 @@ components: enum: - function description: The type of the tool. Currently, only `function` is supported. + x-stainless-const: true function: $ref: "#/components/schemas/FunctionObject" required: @@ -13453,6 +13482,7 @@ components: type: string enum: - organization.costs.result + x-stainless-const: true amount: type: object description: The monetary value in its associated currency. @@ -13632,6 +13662,7 @@ components: description: Always `auto`. enum: - auto + x-stainless-const: true required: - type - type: object @@ -13643,6 +13674,7 @@ components: description: Always `static`. enum: - static + x-stainless-const: true static: type: object additionalProperties: false @@ -13787,6 +13819,7 @@ components: description: The object type, which is always `chat.completion`. enum: - chat.completion + x-stainless-const: true usage: $ref: "#/components/schemas/CompletionUsage" required: @@ -14460,6 +14493,7 @@ components: description: The object type, which is always `chat.completion`. enum: - chat.completion + x-stainless-const: true usage: $ref: "#/components/schemas/CompletionUsage" required: @@ -14605,6 +14639,7 @@ components: description: The object type, which is always `chat.completion.chunk`. enum: - chat.completion.chunk + x-stainless-const: true usage: type: object nullable: true @@ -15003,6 +15038,7 @@ components: description: The object type, which is always "text_completion" enum: - text_completion + x-stainless-const: true usage: $ref: "#/components/schemas/CompletionUsage" required: @@ -15141,6 +15177,7 @@ components: description: The object type, which is always "list". enum: - list + x-stainless-const: true usage: type: object description: The usage information for the request. @@ -15249,6 +15286,7 @@ components: - type: string enum: - auto + x-stainless-const: true - type: integer minimum: 1 maximum: 256 @@ -15263,6 +15301,7 @@ components: - type: string enum: - auto + x-stainless-const: true - type: number minimum: 0 exclusiveMinimum: true @@ -15277,6 +15316,7 @@ components: - type: string enum: - auto + x-stainless-const: true - type: integer minimum: 1 maximum: 50 @@ -15338,6 +15378,7 @@ components: - type: string enum: - wandb + x-stainless-const: true wandb: type: object description: > @@ -15427,6 +15468,7 @@ components: - type: string enum: - dall-e-2 + x-stainless-const: true x-oaiTypeLabel: string default: dall-e-2 example: dall-e-2 @@ -15573,6 +15615,7 @@ components: - type: string enum: - dall-e-2 + x-stainless-const: true x-oaiTypeLabel: string default: dall-e-2 example: dall-e-2 @@ -15724,6 +15767,7 @@ components: type: string enum: - image_url + x-stainless-const: true image_url: type: object description: Contains either an image URL or a data URL for a base64 encoded @@ -15747,6 +15791,7 @@ components: type: string enum: - text + x-stainless-const: true text: description: A string of text to classify. type: string @@ -15944,6 +15989,7 @@ components: type: string enum: - text + x-stainless-const: true hate/threatening: type: array description: The applied input type(s) for the category 'hate/threatening'. @@ -15951,6 +15997,7 @@ components: type: string enum: - text + x-stainless-const: true harassment: type: array description: The applied input type(s) for the category 'harassment'. @@ -15958,6 +16005,7 @@ components: type: string enum: - text + x-stainless-const: true harassment/threatening: type: array description: The applied input type(s) for the category @@ -15966,6 +16014,7 @@ components: type: string enum: - text + x-stainless-const: true illicit: type: array description: The applied input type(s) for the category 'illicit'. @@ -15973,6 +16022,7 @@ components: type: string enum: - text + x-stainless-const: true illicit/violent: type: array description: The applied input type(s) for the category 'illicit/violent'. @@ -15980,6 +16030,7 @@ components: type: string enum: - text + x-stainless-const: true self-harm: type: array description: The applied input type(s) for the category 'self-harm'. @@ -16020,6 +16071,7 @@ components: type: string enum: - text + x-stainless-const: true violence: type: array description: The applied input type(s) for the category 'violence'. @@ -16609,6 +16661,7 @@ components: description: Always `auto`. enum: - auto + x-stainless-const: true required: - type - type: object @@ -16620,6 +16673,7 @@ components: description: Always `static`. enum: - static + x-stainless-const: true static: type: object additionalProperties: false @@ -16694,6 +16748,7 @@ components: - type: string enum: - whisper-1 + x-stainless-const: true x-oaiTypeLabel: string language: description: > @@ -16831,6 +16886,7 @@ components: - type: string enum: - whisper-1 + x-stainless-const: true x-oaiTypeLabel: string prompt: description: > @@ -17003,6 +17059,7 @@ components: type: string enum: - assistant.deleted + x-stainless-const: true required: - id - object @@ -17016,6 +17073,7 @@ components: type: string enum: - file + x-stainless-const: true deleted: type: boolean required: @@ -17033,6 +17091,7 @@ components: type: string enum: - thread.message.deleted + x-stainless-const: true required: - id - object @@ -17061,6 +17120,7 @@ components: type: string enum: - thread.deleted + x-stainless-const: true required: - id - object @@ -17076,6 +17136,7 @@ components: type: string enum: - vector_store.file.deleted + x-stainless-const: true required: - id - object @@ -17091,6 +17152,7 @@ components: type: string enum: - vector_store.deleted + x-stainless-const: true required: - id - object @@ -17102,10 +17164,12 @@ components: type: string enum: - done + x-stainless-const: true data: type: string enum: - "[DONE]" + x-stainless-const: true required: - event - data @@ -17133,6 +17197,7 @@ components: description: The object type, which is always "embedding". enum: - embedding + x-stainless-const: true required: - index - object @@ -17177,6 +17242,7 @@ components: type: string enum: - error + x-stainless-const: true data: $ref: "#/components/schemas/Error" required: @@ -17343,6 +17409,7 @@ components: - type: string enum: - auto + x-stainless-const: true - type: number minimum: 0 maximum: 2 @@ -17357,6 +17424,7 @@ components: - type: string enum: - auto + x-stainless-const: true - type: integer minimum: 1 maximum: 256 @@ -17369,6 +17437,7 @@ components: - type: string enum: - auto + x-stainless-const: true - type: number minimum: 0 exclusiveMinimum: true @@ -17381,6 +17450,7 @@ components: - type: string enum: - auto + x-stainless-const: true - type: integer minimum: 1 maximum: 50 @@ -17482,6 +17552,7 @@ components: - type: string enum: - auto + x-stainless-const: true - type: integer minimum: 1 maximum: 256 @@ -17494,6 +17565,7 @@ components: - type: string enum: - auto + x-stainless-const: true - type: number minimum: 0 exclusiveMinimum: true @@ -17506,6 +17578,7 @@ components: - type: string enum: - auto + x-stainless-const: true - type: integer minimum: 1 maximum: 50 @@ -17522,6 +17595,7 @@ components: description: The type of the integration being enabled for the fine-tuning job enum: - wandb + x-stainless-const: true wandb: type: object description: > @@ -17629,6 +17703,7 @@ components: - type: string enum: - auto + x-stainless-const: true - type: integer minimum: 1 maximum: 256 @@ -17643,6 +17718,7 @@ components: - type: string enum: - auto + x-stainless-const: true - type: number minimum: 0 exclusiveMinimum: true @@ -17657,6 +17733,7 @@ components: - type: string enum: - auto + x-stainless-const: true - type: integer minimum: 1 maximum: 50 @@ -17669,6 +17746,7 @@ components: description: The object type, which is always "fine_tuning.job". enum: - fine_tuning.job + x-stainless-const: true organization_id: type: string description: The organization that owns the fine-tuning job. @@ -17827,6 +17905,7 @@ components: description: The object type, which is always "fine_tuning.job.checkpoint". enum: - fine_tuning.job.checkpoint + x-stainless-const: true required: - created_at - fine_tuning_job_id @@ -17864,6 +17943,7 @@ components: description: The object type, which is always "fine_tuning.job.event". enum: - fine_tuning.job.event + x-stainless-const: true id: type: string description: The object identifier. @@ -17989,6 +18069,7 @@ components: enum: - organization.invite description: The object type, which is always `organization.invite` + x-stainless-const: true id: type: string description: The identifier, which can be referenced in API endpoints @@ -18068,6 +18149,7 @@ components: enum: - organization.invite.deleted description: The object type, which is always `organization.invite.deleted` + x-stainless-const: true id: type: string deleted: @@ -18084,6 +18166,7 @@ components: enum: - list description: The object type, which is always `list` + x-stainless-const: true data: type: array items: @@ -18226,6 +18309,7 @@ components: type: string enum: - list + x-stainless-const: true data: type: array items: @@ -18263,6 +18347,7 @@ components: type: string enum: - list + x-stainless-const: true required: - object - data @@ -18303,6 +18388,7 @@ components: type: string enum: - list + x-stainless-const: true first_id: type: string nullable: true @@ -18326,6 +18412,7 @@ components: type: string enum: - list + x-stainless-const: true required: - object - data @@ -18360,6 +18447,7 @@ components: type: string enum: - list + x-stainless-const: true data: type: array items: @@ -18380,6 +18468,7 @@ components: type: string enum: - list + x-stainless-const: true required: - object - data @@ -18516,6 +18605,7 @@ components: type: string enum: - image_file + x-stainless-const: true image_file: type: object properties: @@ -18549,6 +18639,7 @@ components: enum: - image_url description: The type of the content part. + x-stainless-const: true image_url: type: object properties: @@ -18582,6 +18673,7 @@ components: type: string enum: - refusal + x-stainless-const: true refusal: type: string nullable: false @@ -18600,6 +18692,7 @@ components: type: string enum: - file_citation + x-stainless-const: true text: description: The text in the message content that needs to be replaced. type: string @@ -18634,6 +18727,7 @@ components: type: string enum: - file_path + x-stainless-const: true text: description: The text in the message content that needs to be replaced. type: string @@ -18667,6 +18761,7 @@ components: type: string enum: - text + x-stainless-const: true text: type: object properties: @@ -18700,6 +18795,7 @@ components: type: string enum: - image_file + x-stainless-const: true image_file: type: object properties: @@ -18734,6 +18830,7 @@ components: type: string enum: - image_url + x-stainless-const: true image_url: type: object properties: @@ -18766,6 +18863,7 @@ components: type: string enum: - refusal + x-stainless-const: true refusal: type: string required: @@ -18786,6 +18884,7 @@ components: type: string enum: - file_citation + x-stainless-const: true text: description: The text in the message content that needs to be replaced. type: string @@ -18821,6 +18920,7 @@ components: type: string enum: - file_path + x-stainless-const: true text: description: The text in the message content that needs to be replaced. type: string @@ -18852,6 +18952,7 @@ components: type: string enum: - text + x-stainless-const: true text: type: object properties: @@ -18885,6 +18986,7 @@ components: type: string enum: - thread.message.delta + x-stainless-const: true delta: description: The delta containing the fields that have changed on the Message. type: object @@ -18939,6 +19041,7 @@ components: type: string enum: - thread.message + x-stainless-const: true created_at: description: The Unix timestamp (in seconds) for when the message was created. type: integer @@ -19085,6 +19188,7 @@ components: type: string enum: - text + x-stainless-const: true text: type: string description: Text content to be sent to the model @@ -19099,6 +19203,7 @@ components: type: string enum: - thread.message.created + x-stainless-const: true data: $ref: "#/components/schemas/MessageObject" required: @@ -19114,6 +19219,7 @@ components: type: string enum: - thread.message.in_progress + x-stainless-const: true data: $ref: "#/components/schemas/MessageObject" required: @@ -19129,6 +19235,7 @@ components: type: string enum: - thread.message.delta + x-stainless-const: true data: $ref: "#/components/schemas/MessageDeltaObject" required: @@ -19146,6 +19253,7 @@ components: type: string enum: - thread.message.completed + x-stainless-const: true data: $ref: "#/components/schemas/MessageObject" required: @@ -19161,6 +19269,7 @@ components: type: string enum: - thread.message.incomplete + x-stainless-const: true data: $ref: "#/components/schemas/MessageObject" required: @@ -19185,6 +19294,7 @@ components: description: The object type, which is always "model". enum: - model + x-stainless-const: true owned_by: type: string description: The organization that owns the model. @@ -19415,6 +19525,7 @@ components: description: The object type, which is always `file`. enum: - file + x-stainless-const: true purpose: type: string description: The intended purpose of the file. Supported values are @@ -19474,6 +19585,7 @@ components: description: Always `other`. enum: - other + x-stainless-const: true required: - type ParallelToolCalls: @@ -19501,6 +19613,7 @@ components: description: | The type of the predicted content you want to provide. This type is currently always `content`. + x-stainless-const: true content: x-oaiExpandable: true description: > @@ -19536,6 +19649,7 @@ components: enum: - organization.project description: The object type, which is always `organization.project` + x-stainless-const: true name: type: string description: The name of the project. This appears in reporting. @@ -19579,6 +19693,7 @@ components: enum: - organization.project.api_key description: The object type, which is always `organization.project.api_key` + x-stainless-const: true redacted_value: type: string description: The redacted value of the API key @@ -19639,6 +19754,7 @@ components: type: string enum: - organization.project.api_key.deleted + x-stainless-const: true id: type: string deleted: @@ -19654,6 +19770,7 @@ components: type: string enum: - list + x-stainless-const: true data: type: array items: @@ -19685,6 +19802,7 @@ components: type: string enum: - list + x-stainless-const: true data: type: array items: @@ -19710,6 +19828,7 @@ components: enum: - project.rate_limit description: The object type, which is always `project.rate_limit` + x-stainless-const: true id: type: string description: The identifier, which can be referenced in API endpoints. @@ -19760,6 +19879,7 @@ components: type: string enum: - list + x-stainless-const: true data: type: array items: @@ -19809,6 +19929,7 @@ components: - organization.project.service_account description: The object type, which is always `organization.project.service_account` + x-stainless-const: true id: type: string description: The identifier, which can be referenced in API endpoints @@ -19850,6 +19971,7 @@ components: - organization.project.service_account.api_key description: The object type, which is always `organization.project.service_account.api_key` + x-stainless-const: true value: type: string name: @@ -19879,6 +20001,7 @@ components: type: string enum: - organization.project.service_account + x-stainless-const: true id: type: string name: @@ -19888,6 +20011,7 @@ components: enum: - member description: Service accounts can only have one role of type `member` + x-stainless-const: true created_at: type: integer api_key: @@ -19906,6 +20030,7 @@ components: type: string enum: - organization.project.service_account.deleted + x-stainless-const: true id: type: string deleted: @@ -19921,6 +20046,7 @@ components: type: string enum: - list + x-stainless-const: true data: type: array items: @@ -19954,6 +20080,7 @@ components: enum: - organization.project.user description: The object type, which is always `organization.project.user` + x-stainless-const: true id: type: string description: The identifier, which can be referenced in API endpoints @@ -20012,6 +20139,7 @@ components: type: string enum: - organization.project.user.deleted + x-stainless-const: true id: type: string deleted: @@ -20080,6 +20208,7 @@ components: enum: - conversation.item.create description: The event type, must be `conversation.item.create`. + x-stainless-const: true previous_item_id: type: string description: > @@ -20140,6 +20269,7 @@ components: enum: - conversation.item.delete description: The event type, must be `conversation.item.delete`. + x-stainless-const: true item_id: type: string description: The ID of the item to delete. @@ -20192,6 +20322,7 @@ components: enum: - conversation.item.truncate description: The event type, must be `conversation.item.truncate`. + x-stainless-const: true item_id: type: string description: > @@ -20265,6 +20396,7 @@ components: enum: - input_audio_buffer.append description: The event type, must be `input_audio_buffer.append`. + x-stainless-const: true audio: type: string description: > @@ -20298,6 +20430,7 @@ components: enum: - input_audio_buffer.clear description: The event type, must be `input_audio_buffer.clear`. + x-stainless-const: true required: - type x-oaiMeta: @@ -20344,6 +20477,7 @@ components: enum: - input_audio_buffer.commit description: The event type, must be `input_audio_buffer.commit`. + x-stainless-const: true required: - type x-oaiMeta: @@ -20373,6 +20507,7 @@ components: enum: - response.cancel description: The event type, must be `response.cancel`. + x-stainless-const: true response_id: type: string description: | @@ -20432,6 +20567,7 @@ components: enum: - response.create description: The event type, must be `response.create`. + x-stainless-const: true response: $ref: "#/components/schemas/RealtimeResponseCreateParams" required: @@ -20496,6 +20632,7 @@ components: enum: - session.update description: The event type, must be `session.update`. + x-stainless-const: true session: $ref: "#/components/schemas/RealtimeSessionCreateRequest" required: @@ -20574,6 +20711,7 @@ components: description: > Identifier for the API object being returned - always `realtime.item`. + x-stainless-const: true status: type: string enum: @@ -20684,6 +20822,7 @@ components: enum: - realtime.response description: The object type, must be `realtime.response`. + x-stainless-const: true status: type: string enum: @@ -20906,6 +21045,7 @@ components: enum: - function description: The type of the tool, i.e. `function`. + x-stainless-const: true name: type: string description: The name of the function. @@ -20941,6 +21081,7 @@ components: - type: string enum: - inf + x-stainless-const: true description: | Maximum number of output tokens for a single assistant response, inclusive of tool calls. Provide an integer between 1 and 4096 to @@ -21008,6 +21149,7 @@ components: enum: - conversation.created description: The event type, must be `conversation.created`. + x-stainless-const: true conversation: type: object description: The conversation resource. @@ -21058,6 +21200,7 @@ components: enum: - conversation.item.created description: The event type, must be `conversation.item.created`. + x-stainless-const: true previous_item_id: type: string description: > @@ -21114,6 +21257,7 @@ components: enum: - conversation.item.deleted description: The event type, must be `conversation.item.deleted`. + x-stainless-const: true item_id: type: string description: The ID of the item that was deleted. @@ -21168,6 +21312,7 @@ components: description: | The event type, must be `conversation.item.input_audio_transcription.completed`. + x-stainless-const: true item_id: type: string description: The ID of the user message item containing the audio. @@ -21214,6 +21359,7 @@ components: description: | The event type, must be `conversation.item.input_audio_transcription.failed`. + x-stainless-const: true item_id: type: string description: The ID of the user message item. @@ -21284,6 +21430,7 @@ components: enum: - conversation.item.truncated description: The event type, must be `conversation.item.truncated`. + x-stainless-const: true item_id: type: string description: The ID of the assistant message item that was truncated. @@ -21329,6 +21476,7 @@ components: enum: - error description: The event type, must be `error`. + x-stainless-const: true error: type: object description: Details of the error. @@ -21391,6 +21539,7 @@ components: enum: - input_audio_buffer.cleared description: The event type, must be `input_audio_buffer.cleared`. + x-stainless-const: true required: - event_id - type @@ -21424,6 +21573,7 @@ components: enum: - input_audio_buffer.committed description: The event type, must be `input_audio_buffer.committed`. + x-stainless-const: true previous_item_id: type: string description: > @@ -21484,6 +21634,7 @@ components: enum: - input_audio_buffer.speech_started description: The event type, must be `input_audio_buffer.speech_started`. + x-stainless-const: true audio_start_ms: type: integer description: > @@ -21534,6 +21685,7 @@ components: enum: - input_audio_buffer.speech_stopped description: The event type, must be `input_audio_buffer.speech_stopped`. + x-stainless-const: true audio_end_ms: type: integer description: > @@ -21584,6 +21736,7 @@ components: enum: - rate_limits.updated description: The event type, must be `rate_limits.updated`. + x-stainless-const: true rate_limits: type: array description: List of rate limit information. @@ -21644,6 +21797,7 @@ components: enum: - response.audio.delta description: The event type, must be `response.audio.delta`. + x-stainless-const: true response_id: type: string description: The ID of the response. @@ -21696,6 +21850,7 @@ components: enum: - response.audio.done description: The event type, must be `response.audio.done`. + x-stainless-const: true response_id: type: string description: The ID of the response. @@ -21741,6 +21896,7 @@ components: enum: - response.audio_transcript.delta description: The event type, must be `response.audio_transcript.delta`. + x-stainless-const: true response_id: type: string description: The ID of the response. @@ -21792,6 +21948,7 @@ components: enum: - response.audio_transcript.done description: The event type, must be `response.audio_transcript.done`. + x-stainless-const: true response_id: type: string description: The ID of the response. @@ -21844,6 +22001,7 @@ components: enum: - response.content_part.added description: The event type, must be `response.content_part.added`. + x-stainless-const: true response_id: type: string description: The ID of the response. @@ -21915,6 +22073,7 @@ components: enum: - response.content_part.done description: The event type, must be `response.content_part.done`. + x-stainless-const: true response_id: type: string description: The ID of the response. @@ -21986,6 +22145,7 @@ components: enum: - response.created description: The event type, must be `response.created`. + x-stainless-const: true response: $ref: "#/components/schemas/RealtimeResponse" required: @@ -22028,6 +22188,7 @@ components: enum: - response.done description: The event type, must be `response.done`. + x-stainless-const: true response: $ref: "#/components/schemas/RealtimeResponse" required: @@ -22095,6 +22256,7 @@ components: - response.function_call_arguments.delta description: | The event type, must be `response.function_call_arguments.delta`. + x-stainless-const: true response_id: type: string description: The ID of the response. @@ -22148,6 +22310,7 @@ components: - response.function_call_arguments.done description: | The event type, must be `response.function_call_arguments.done`. + x-stainless-const: true response_id: type: string description: The ID of the response. @@ -22196,6 +22359,7 @@ components: enum: - response.output_item.added description: The event type, must be `response.output_item.added`. + x-stainless-const: true response_id: type: string description: The ID of the Response to which the item belongs. @@ -22244,6 +22408,7 @@ components: enum: - response.output_item.done description: The event type, must be `response.output_item.done`. + x-stainless-const: true response_id: type: string description: The ID of the Response to which the item belongs. @@ -22293,6 +22458,7 @@ components: enum: - response.text.delta description: The event type, must be `response.text.delta`. + x-stainless-const: true response_id: type: string description: The ID of the response. @@ -22345,6 +22511,7 @@ components: enum: - response.text.done description: The event type, must be `response.text.done`. + x-stainless-const: true response_id: type: string description: The ID of the response. @@ -22399,6 +22566,7 @@ components: enum: - session.created description: The event type, must be `session.created`. + x-stainless-const: true session: $ref: "#/components/schemas/RealtimeSession" required: @@ -22450,6 +22618,7 @@ components: enum: - session.updated description: The event type, must be `session.updated`. + x-stainless-const: true session: $ref: "#/components/schemas/RealtimeSession" required: @@ -22625,6 +22794,7 @@ components: - server_vad description: > Type of turn detection, only `server_vad` is currently supported. + x-stainless-const: true threshold: type: number description: > @@ -22661,6 +22831,7 @@ components: enum: - function description: The type of the tool, i.e. `function`. + x-stainless-const: true name: type: string description: The name of the function. @@ -22695,6 +22866,7 @@ components: - type: string enum: - inf + x-stainless-const: true description: | Maximum number of output tokens for a single assistant response, inclusive of tool calls. Provide an integer between 1 and 4096 to @@ -22878,6 +23050,7 @@ components: enum: - function description: The type of the tool, i.e. `function`. + x-stainless-const: true name: type: string description: The name of the function. @@ -22912,6 +23085,7 @@ components: - type: string enum: - inf + x-stainless-const: true description: | Maximum number of output tokens for a single assistant response, inclusive of tool calls. Provide an integer between 1 and 4096 to @@ -23094,6 +23268,7 @@ components: enum: - function description: The type of the tool, i.e. `function`. + x-stainless-const: true name: type: string description: The name of the function. @@ -23128,6 +23303,7 @@ components: - type: string enum: - inf + x-stainless-const: true description: | Maximum number of output tokens for a single assistant response, inclusive of tool calls. Provide an integer between 1 and 4096 to @@ -23167,6 +23343,7 @@ components: description: "The type of response format being defined: `json_object`" enum: - json_object + x-stainless-const: true required: - type ResponseFormatJsonSchema: @@ -23177,6 +23354,7 @@ components: description: "The type of response format being defined: `json_schema`" enum: - json_schema + x-stainless-const: true json_schema: type: object properties: @@ -23217,6 +23395,7 @@ components: description: "The type of response format being defined: `text`" enum: - text + x-stainless-const: true required: - type RunCompletionUsage: @@ -23251,6 +23430,7 @@ components: type: string enum: - thread.run + x-stainless-const: true created_at: description: The Unix timestamp (in seconds) for when the run was created. type: integer @@ -23288,6 +23468,7 @@ components: type: string enum: - submit_tool_outputs + x-stainless-const: true submit_tool_outputs: type: object description: Details on the tool outputs needed for this run to continue. @@ -23520,6 +23701,7 @@ components: type: string enum: - thread.run.step.delta + x-stainless-const: true delta: description: The delta containing the fields that have changed on the run step. type: object @@ -23566,6 +23748,7 @@ components: type: string enum: - message_creation + x-stainless-const: true message_creation: type: object properties: @@ -23591,6 +23774,7 @@ components: `code_interpreter` for this type of tool call. enum: - code_interpreter + x-stainless-const: true code_interpreter: type: object description: The Code Interpreter tool call definition. @@ -23627,6 +23811,7 @@ components: type: string enum: - image + x-stainless-const: true image: type: object properties: @@ -23649,6 +23834,7 @@ components: type: string enum: - logs + x-stainless-const: true logs: type: string description: The text output from the Code Interpreter tool call. @@ -23671,6 +23857,7 @@ components: this type of tool call. enum: - file_search + x-stainless-const: true file_search: type: object description: For now, this is always going to be an empty object. @@ -23695,6 +23882,7 @@ components: this type of tool call. enum: - function + x-stainless-const: true function: type: object description: The definition of the function that was called. @@ -23724,6 +23912,7 @@ components: type: string enum: - tool_calls + x-stainless-const: true tool_calls: type: array description: > @@ -23748,6 +23937,7 @@ components: type: string enum: - message_creation + x-stainless-const: true message_creation: type: object properties: @@ -23773,6 +23963,7 @@ components: `code_interpreter` for this type of tool call. enum: - code_interpreter + x-stainless-const: true code_interpreter: type: object description: The Code Interpreter tool call definition. @@ -23808,6 +23999,7 @@ components: type: string enum: - image + x-stainless-const: true image: type: object properties: @@ -23829,6 +24021,7 @@ components: type: string enum: - logs + x-stainless-const: true logs: type: string description: The text output from the Code Interpreter tool call. @@ -23848,6 +24041,7 @@ components: this type of tool call. enum: - file_search + x-stainless-const: true file_search: type: object description: For now, this is always going to be an empty object. @@ -23875,6 +24069,7 @@ components: description: The ranker used for the file search. enum: - default_2024_08_21 + x-stainless-const: true score_threshold: type: number description: The score threshold for the file search. All values must be a @@ -23914,6 +24109,7 @@ components: description: The type of the content. enum: - text + x-stainless-const: true text: type: string description: The text content of the file. @@ -23934,6 +24130,7 @@ components: this type of tool call. enum: - function + x-stainless-const: true function: type: object description: The definition of the function that was called. @@ -23968,6 +24165,7 @@ components: type: string enum: - tool_calls + x-stainless-const: true tool_calls: type: array description: > @@ -23998,6 +24196,7 @@ components: type: string enum: - thread.run.step + x-stainless-const: true created_at: description: The Unix timestamp (in seconds) for when the run step was created. type: integer @@ -24137,6 +24336,7 @@ components: type: string enum: - thread.run.step.created + x-stainless-const: true data: $ref: "#/components/schemas/RunStepObject" required: @@ -24152,6 +24352,7 @@ components: type: string enum: - thread.run.step.in_progress + x-stainless-const: true data: $ref: "#/components/schemas/RunStepObject" required: @@ -24167,6 +24368,7 @@ components: type: string enum: - thread.run.step.delta + x-stainless-const: true data: $ref: "#/components/schemas/RunStepDeltaObject" required: @@ -24184,6 +24386,7 @@ components: type: string enum: - thread.run.step.completed + x-stainless-const: true data: $ref: "#/components/schemas/RunStepObject" required: @@ -24199,6 +24402,7 @@ components: type: string enum: - thread.run.step.failed + x-stainless-const: true data: $ref: "#/components/schemas/RunStepObject" required: @@ -24214,6 +24418,7 @@ components: type: string enum: - thread.run.step.cancelled + x-stainless-const: true data: $ref: "#/components/schemas/RunStepObject" required: @@ -24229,6 +24434,7 @@ components: type: string enum: - thread.run.step.expired + x-stainless-const: true data: $ref: "#/components/schemas/RunStepObject" required: @@ -24246,6 +24452,7 @@ components: type: string enum: - thread.run.created + x-stainless-const: true data: $ref: "#/components/schemas/RunObject" required: @@ -24260,6 +24467,7 @@ components: type: string enum: - thread.run.queued + x-stainless-const: true data: $ref: "#/components/schemas/RunObject" required: @@ -24275,6 +24483,7 @@ components: type: string enum: - thread.run.in_progress + x-stainless-const: true data: $ref: "#/components/schemas/RunObject" required: @@ -24290,6 +24499,7 @@ components: type: string enum: - thread.run.requires_action + x-stainless-const: true data: $ref: "#/components/schemas/RunObject" required: @@ -24305,6 +24515,7 @@ components: type: string enum: - thread.run.completed + x-stainless-const: true data: $ref: "#/components/schemas/RunObject" required: @@ -24319,6 +24530,7 @@ components: type: string enum: - thread.run.incomplete + x-stainless-const: true data: $ref: "#/components/schemas/RunObject" required: @@ -24334,6 +24546,7 @@ components: type: string enum: - thread.run.failed + x-stainless-const: true data: $ref: "#/components/schemas/RunObject" required: @@ -24348,6 +24561,7 @@ components: type: string enum: - thread.run.cancelling + x-stainless-const: true data: $ref: "#/components/schemas/RunObject" required: @@ -24363,6 +24577,7 @@ components: type: string enum: - thread.run.cancelled + x-stainless-const: true data: $ref: "#/components/schemas/RunObject" required: @@ -24377,6 +24592,7 @@ components: type: string enum: - thread.run.expired + x-stainless-const: true data: $ref: "#/components/schemas/RunObject" required: @@ -24400,6 +24616,7 @@ components: always `function`. enum: - function + x-stainless-const: true function: type: object description: The function definition. @@ -24449,6 +24666,7 @@ components: description: Always `static`. enum: - static + x-stainless-const: true static: $ref: "#/components/schemas/StaticChunkingStrategy" required: @@ -24464,6 +24682,7 @@ components: description: Always `static`. enum: - static + x-stainless-const: true static: $ref: "#/components/schemas/StaticChunkingStrategy" required: @@ -24509,6 +24728,7 @@ components: type: string enum: - thread + x-stainless-const: true created_at: description: The Unix timestamp (in seconds) for when the thread was created. type: integer @@ -24582,6 +24802,7 @@ components: type: string enum: - thread.created + x-stainless-const: true data: $ref: "#/components/schemas/ThreadObject" required: @@ -24749,6 +24970,7 @@ components: description: The object type, which is always "upload". enum: - upload + x-stainless-const: true file: $ref: "#/components/schemas/OpenAIFile" nullable: true @@ -24804,6 +25026,7 @@ components: description: The object type, which is always `upload.part`. enum: - upload.part + x-stainless-const: true required: - created_at - id @@ -24826,6 +25049,7 @@ components: type: string enum: - organization.usage.audio_speeches.result + x-stainless-const: true characters: type: integer description: The number of characters processed. @@ -24877,6 +25101,7 @@ components: type: string enum: - organization.usage.audio_transcriptions.result + x-stainless-const: true seconds: type: integer description: The number of seconds processed. @@ -24928,6 +25153,7 @@ components: type: string enum: - organization.usage.code_interpreter_sessions.result + x-stainless-const: true sessions: type: integer description: The number of code interpreter sessions. @@ -24955,6 +25181,7 @@ components: type: string enum: - organization.usage.completions.result + x-stainless-const: true input_tokens: type: integer description: The aggregated number of text input tokens used, including cached @@ -25034,6 +25261,7 @@ components: type: string enum: - organization.usage.embeddings.result + x-stainless-const: true input_tokens: type: integer description: The aggregated number of input tokens used. @@ -25084,6 +25312,7 @@ components: type: string enum: - organization.usage.images.result + x-stainless-const: true images: type: integer description: The number of images processed. @@ -25147,6 +25376,7 @@ components: type: string enum: - organization.usage.moderations.result + x-stainless-const: true input_tokens: type: integer description: The aggregated number of input tokens used. @@ -25196,6 +25426,7 @@ components: type: string enum: - page + x-stainless-const: true data: type: array items: @@ -25216,6 +25447,7 @@ components: type: string enum: - bucket + x-stainless-const: true start_time: type: integer end_time: @@ -25246,6 +25478,7 @@ components: type: string enum: - organization.usage.vector_stores.result + x-stainless-const: true usage_bytes: type: integer description: The vector stores usage in bytes. @@ -25274,6 +25507,7 @@ components: enum: - organization.user description: The object type, which is always `organization.user` + x-stainless-const: true id: type: string description: The identifier, which can be referenced in API endpoints @@ -25317,6 +25551,7 @@ components: type: string enum: - organization.user.deleted + x-stainless-const: true id: type: string deleted: @@ -25332,6 +25567,7 @@ components: type: string enum: - list + x-stainless-const: true data: type: array items: @@ -25370,6 +25606,7 @@ components: type: string enum: - last_active_at + x-stainless-const: true days: description: The number of days after the anchor time that the vector store will expire. @@ -25392,6 +25629,7 @@ components: type: string enum: - vector_store.files_batch + x-stainless-const: true created_at: description: The Unix timestamp (in seconds) for when the vector store files batch was created. @@ -25472,6 +25710,7 @@ components: type: string enum: - vector_store.file + x-stainless-const: true usage_bytes: description: The total vector store usage in bytes. Note that this may be different from the original file size. @@ -25563,6 +25802,7 @@ components: type: string enum: - vector_store + x-stainless-const: true created_at: description: The Unix timestamp (in seconds) for when the vector store was created.