diff --git a/openapi.yaml b/openapi.yaml index 8d42e900..fc09bdf0 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -1423,6 +1423,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]); @@ -1537,6 +1538,7 @@ paths: ], }, ], + store: true, }); console.log(response.choices[0]); } @@ -1621,6 +1623,7 @@ paths: {"role": "developer", "content": "You are a helpful assistant."}, {"role": "user", "content": "Hello!"} ], + store: true, stream: true, }); @@ -1764,6 +1767,7 @@ paths: messages: messages, tools: tools, tool_choice: "auto", + store: true, }); console.log(response); @@ -1850,6 +1854,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, }); @@ -11580,6 +11585,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 @@ -11791,6 +11797,7 @@ components: description: "The type of tool being defined: `code_interpreter`" enum: - code_interpreter + x-stainless-const: true required: - type AssistantToolsFileSearch: @@ -11802,6 +11809,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. @@ -11834,6 +11842,7 @@ components: description: "The type of tool being defined: `file_search`" enum: - file_search + x-stainless-const: true required: - type AssistantToolsFunction: @@ -11845,6 +11854,7 @@ components: description: "The type of tool being defined: `function`" enum: - function + x-stainless-const: true function: $ref: "#/components/schemas/FunctionObject" required: @@ -11882,6 +11892,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" @@ -12374,6 +12385,7 @@ components: description: Always `auto`. enum: - auto + x-stainless-const: true required: - type Batch: @@ -12386,6 +12398,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. @@ -12550,6 +12563,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 @@ -12650,6 +12664,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. @@ -12684,6 +12699,7 @@ components: enum: - function description: The type of the tool. Currently, only `function` is supported. + x-stainless-const: true function: type: object properties: @@ -12740,6 +12756,7 @@ components: enum: - function description: The type of the tool. Currently, only `function` is supported. + x-stainless-const: true function: type: object properties: @@ -12783,6 +12800,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 @@ -12860,6 +12878,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 @@ -12877,6 +12896,7 @@ components: enum: - function description: The role of the messages author, in this case `function`. + x-stainless-const: true content: nullable: true type: string @@ -12908,6 +12928,7 @@ components: enum: - input_audio description: The type of the content part. Always `input_audio`. + x-stainless-const: true input_audio: type: object properties: @@ -12939,6 +12960,7 @@ components: enum: - image_url description: The type of the content part. + x-stainless-const: true image_url: type: object properties: @@ -12969,6 +12991,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. @@ -12986,6 +13009,7 @@ components: enum: - text description: The type of the content part. + x-stainless-const: true text: type: string description: The text content. @@ -13022,6 +13046,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 @@ -13042,6 +13067,7 @@ components: enum: - tool description: The role of the messages author, in this case `tool`. + x-stainless-const: true content: oneOf: - type: string @@ -13094,6 +13120,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 @@ -13126,6 +13153,7 @@ components: enum: - assistant description: The role of the author of this message. + x-stainless-const: true function_call: type: object deprecated: true @@ -13298,6 +13326,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: @@ -13422,6 +13451,7 @@ components: type: string enum: - organization.costs.result + x-stainless-const: true amount: type: object description: The monetary value in its associated currency. @@ -13600,6 +13630,7 @@ components: description: Always `auto`. enum: - auto + x-stainless-const: true required: - type - type: object @@ -13611,6 +13642,7 @@ components: description: Always `static`. enum: - static + x-stainless-const: true static: type: object additionalProperties: false @@ -13754,6 +13786,7 @@ components: description: The object type, which is always `chat.completion`. enum: - chat.completion + x-stainless-const: true usage: $ref: "#/components/schemas/CompletionUsage" required: @@ -14422,6 +14455,7 @@ components: description: The object type, which is always `chat.completion`. enum: - chat.completion + x-stainless-const: true usage: $ref: "#/components/schemas/CompletionUsage" required: @@ -14565,6 +14599,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 @@ -14962,6 +14997,7 @@ components: description: The object type, which is always "text_completion" enum: - text_completion + x-stainless-const: true usage: $ref: "#/components/schemas/CompletionUsage" required: @@ -15101,6 +15137,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. @@ -15209,6 +15246,7 @@ components: - type: string enum: - auto + x-stainless-const: true - type: integer minimum: 1 maximum: 256 @@ -15223,6 +15261,7 @@ components: - type: string enum: - auto + x-stainless-const: true - type: number minimum: 0 exclusiveMinimum: true @@ -15237,6 +15276,7 @@ components: - type: string enum: - auto + x-stainless-const: true - type: integer minimum: 1 maximum: 50 @@ -15298,6 +15338,7 @@ components: - type: string enum: - wandb + x-stainless-const: true wandb: type: object description: > @@ -15387,6 +15428,7 @@ components: - type: string enum: - dall-e-2 + x-stainless-const: true x-oaiTypeLabel: string default: dall-e-2 example: dall-e-2 @@ -15533,6 +15575,7 @@ components: - type: string enum: - dall-e-2 + x-stainless-const: true x-oaiTypeLabel: string default: dall-e-2 example: dall-e-2 @@ -15684,6 +15727,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 @@ -15707,6 +15751,7 @@ components: type: string enum: - text + x-stainless-const: true text: description: A string of text to classify. type: string @@ -15904,6 +15949,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'. @@ -15911,6 +15957,7 @@ components: type: string enum: - text + x-stainless-const: true harassment: type: array description: The applied input type(s) for the category 'harassment'. @@ -15918,6 +15965,7 @@ components: type: string enum: - text + x-stainless-const: true harassment/threatening: type: array description: The applied input type(s) for the category @@ -15926,6 +15974,7 @@ components: type: string enum: - text + x-stainless-const: true illicit: type: array description: The applied input type(s) for the category 'illicit'. @@ -15933,6 +15982,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'. @@ -15940,6 +15990,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'. @@ -15980,6 +16031,7 @@ components: type: string enum: - text + x-stainless-const: true violence: type: array description: The applied input type(s) for the category 'violence'. @@ -16572,6 +16624,7 @@ components: description: Always `auto`. enum: - auto + x-stainless-const: true required: - type - type: object @@ -16583,6 +16636,7 @@ components: description: Always `static`. enum: - static + x-stainless-const: true static: type: object additionalProperties: false @@ -16657,6 +16711,7 @@ components: - type: string enum: - whisper-1 + x-stainless-const: true x-oaiTypeLabel: string language: description: > @@ -16794,6 +16849,7 @@ components: - type: string enum: - whisper-1 + x-stainless-const: true x-oaiTypeLabel: string prompt: description: > @@ -16966,6 +17022,7 @@ components: type: string enum: - assistant.deleted + x-stainless-const: true required: - id - object @@ -16979,6 +17036,7 @@ components: type: string enum: - file + x-stainless-const: true deleted: type: boolean required: @@ -16996,6 +17054,7 @@ components: type: string enum: - thread.message.deleted + x-stainless-const: true required: - id - object @@ -17024,6 +17083,7 @@ components: type: string enum: - thread.deleted + x-stainless-const: true required: - id - object @@ -17039,6 +17099,7 @@ components: type: string enum: - vector_store.file.deleted + x-stainless-const: true required: - id - object @@ -17054,6 +17115,7 @@ components: type: string enum: - vector_store.deleted + x-stainless-const: true required: - id - object @@ -17065,10 +17127,12 @@ components: type: string enum: - done + x-stainless-const: true data: type: string enum: - "[DONE]" + x-stainless-const: true required: - event - data @@ -17096,6 +17160,7 @@ components: description: The object type, which is always "embedding". enum: - embedding + x-stainless-const: true required: - index - object @@ -17140,6 +17205,7 @@ components: type: string enum: - error + x-stainless-const: true data: $ref: "#/components/schemas/Error" required: @@ -17306,6 +17372,7 @@ components: - type: string enum: - auto + x-stainless-const: true - type: number minimum: 0 maximum: 2 @@ -17320,6 +17387,7 @@ components: - type: string enum: - auto + x-stainless-const: true - type: integer minimum: 1 maximum: 256 @@ -17332,6 +17400,7 @@ components: - type: string enum: - auto + x-stainless-const: true - type: number minimum: 0 exclusiveMinimum: true @@ -17344,6 +17413,7 @@ components: - type: string enum: - auto + x-stainless-const: true - type: integer minimum: 1 maximum: 50 @@ -17445,6 +17515,7 @@ components: - type: string enum: - auto + x-stainless-const: true - type: integer minimum: 1 maximum: 256 @@ -17457,6 +17528,7 @@ components: - type: string enum: - auto + x-stainless-const: true - type: number minimum: 0 exclusiveMinimum: true @@ -17469,6 +17541,7 @@ components: - type: string enum: - auto + x-stainless-const: true - type: integer minimum: 1 maximum: 50 @@ -17485,6 +17558,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: > @@ -17592,6 +17666,7 @@ components: - type: string enum: - auto + x-stainless-const: true - type: integer minimum: 1 maximum: 256 @@ -17606,6 +17681,7 @@ components: - type: string enum: - auto + x-stainless-const: true - type: number minimum: 0 exclusiveMinimum: true @@ -17620,6 +17696,7 @@ components: - type: string enum: - auto + x-stainless-const: true - type: integer minimum: 1 maximum: 50 @@ -17632,6 +17709,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. @@ -17790,6 +17868,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 @@ -17827,6 +17906,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. @@ -17952,6 +18032,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 @@ -18031,6 +18112,7 @@ components: enum: - organization.invite.deleted description: The object type, which is always `organization.invite.deleted` + x-stainless-const: true id: type: string deleted: @@ -18047,6 +18129,7 @@ components: enum: - list description: The object type, which is always `list` + x-stainless-const: true data: type: array items: @@ -18189,6 +18272,7 @@ components: type: string enum: - list + x-stainless-const: true data: type: array items: @@ -18226,6 +18310,7 @@ components: type: string enum: - list + x-stainless-const: true required: - object - data @@ -18266,6 +18351,7 @@ components: type: string enum: - list + x-stainless-const: true first_id: type: string nullable: true @@ -18289,6 +18375,7 @@ components: type: string enum: - list + x-stainless-const: true required: - object - data @@ -18323,6 +18410,7 @@ components: type: string enum: - list + x-stainless-const: true data: type: array items: @@ -18343,6 +18431,7 @@ components: type: string enum: - list + x-stainless-const: true required: - object - data @@ -18479,6 +18568,7 @@ components: type: string enum: - image_file + x-stainless-const: true image_file: type: object properties: @@ -18512,6 +18602,7 @@ components: enum: - image_url description: The type of the content part. + x-stainless-const: true image_url: type: object properties: @@ -18545,6 +18636,7 @@ components: type: string enum: - refusal + x-stainless-const: true refusal: type: string nullable: false @@ -18563,6 +18655,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 @@ -18597,6 +18690,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 @@ -18630,6 +18724,7 @@ components: type: string enum: - text + x-stainless-const: true text: type: object properties: @@ -18663,6 +18758,7 @@ components: type: string enum: - image_file + x-stainless-const: true image_file: type: object properties: @@ -18697,6 +18793,7 @@ components: type: string enum: - image_url + x-stainless-const: true image_url: type: object properties: @@ -18729,6 +18826,7 @@ components: type: string enum: - refusal + x-stainless-const: true refusal: type: string required: @@ -18749,6 +18847,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 @@ -18784,6 +18883,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 @@ -18815,6 +18915,7 @@ components: type: string enum: - text + x-stainless-const: true text: type: object properties: @@ -18848,6 +18949,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 @@ -18902,6 +19004,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 @@ -19048,6 +19151,7 @@ components: type: string enum: - text + x-stainless-const: true text: type: string description: Text content to be sent to the model @@ -19062,6 +19166,7 @@ components: type: string enum: - thread.message.created + x-stainless-const: true data: $ref: "#/components/schemas/MessageObject" required: @@ -19077,6 +19182,7 @@ components: type: string enum: - thread.message.in_progress + x-stainless-const: true data: $ref: "#/components/schemas/MessageObject" required: @@ -19092,6 +19198,7 @@ components: type: string enum: - thread.message.delta + x-stainless-const: true data: $ref: "#/components/schemas/MessageDeltaObject" required: @@ -19109,6 +19216,7 @@ components: type: string enum: - thread.message.completed + x-stainless-const: true data: $ref: "#/components/schemas/MessageObject" required: @@ -19124,6 +19232,7 @@ components: type: string enum: - thread.message.incomplete + x-stainless-const: true data: $ref: "#/components/schemas/MessageObject" required: @@ -19148,6 +19257,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. @@ -19378,6 +19488,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 @@ -19437,6 +19548,7 @@ components: description: Always `other`. enum: - other + x-stainless-const: true required: - type ParallelToolCalls: @@ -19464,6 +19576,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: > @@ -19499,6 +19612,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. @@ -19542,6 +19656,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 @@ -19602,6 +19717,7 @@ components: type: string enum: - organization.project.api_key.deleted + x-stainless-const: true id: type: string deleted: @@ -19617,6 +19733,7 @@ components: type: string enum: - list + x-stainless-const: true data: type: array items: @@ -19648,6 +19765,7 @@ components: type: string enum: - list + x-stainless-const: true data: type: array items: @@ -19673,6 +19791,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. @@ -19723,6 +19842,7 @@ components: type: string enum: - list + x-stainless-const: true data: type: array items: @@ -19772,6 +19892,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 @@ -19813,6 +19934,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: @@ -19842,6 +19964,7 @@ components: type: string enum: - organization.project.service_account + x-stainless-const: true id: type: string name: @@ -19851,6 +19974,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: @@ -19869,6 +19993,7 @@ components: type: string enum: - organization.project.service_account.deleted + x-stainless-const: true id: type: string deleted: @@ -19884,6 +20009,7 @@ components: type: string enum: - list + x-stainless-const: true data: type: array items: @@ -19917,6 +20043,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 @@ -19975,6 +20102,7 @@ components: type: string enum: - organization.project.user.deleted + x-stainless-const: true id: type: string deleted: @@ -20043,6 +20171,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: > @@ -20106,6 +20235,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. @@ -20158,6 +20288,7 @@ components: enum: - conversation.item.truncate description: The event type, must be `conversation.item.truncate`. + x-stainless-const: true item_id: type: string description: > @@ -20231,6 +20362,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: > @@ -20264,6 +20396,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: @@ -20310,6 +20443,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: @@ -20339,6 +20473,7 @@ components: enum: - response.cancel description: The event type, must be `response.cancel`. + x-stainless-const: true response_id: type: string description: | @@ -20398,6 +20533,7 @@ components: enum: - response.create description: The event type, must be `response.create`. + x-stainless-const: true response: $ref: "#/components/schemas/RealtimeResponseCreateParams" required: @@ -20462,6 +20598,7 @@ components: enum: - session.update description: The event type, must be `session.update`. + x-stainless-const: true session: $ref: "#/components/schemas/RealtimeSessionCreateRequest" required: @@ -20540,6 +20677,7 @@ components: description: > Identifier for the API object being returned - always `realtime.item`. + x-stainless-const: true status: type: string enum: @@ -20650,6 +20788,7 @@ components: enum: - realtime.response description: The object type, must be `realtime.response`. + x-stainless-const: true status: type: string enum: @@ -20872,6 +21011,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. @@ -20907,6 +21047,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 @@ -20974,6 +21115,7 @@ components: enum: - conversation.created description: The event type, must be `conversation.created`. + x-stainless-const: true conversation: type: object description: The conversation resource. @@ -21024,6 +21166,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: > @@ -21080,6 +21223,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. @@ -21134,6 +21278,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. @@ -21180,6 +21325,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. @@ -21250,6 +21396,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. @@ -21295,6 +21442,7 @@ components: enum: - error description: The event type, must be `error`. + x-stainless-const: true error: type: object description: Details of the error. @@ -21357,6 +21505,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 @@ -21390,6 +21539,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: > @@ -21450,6 +21600,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: > @@ -21500,6 +21651,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: > @@ -21550,6 +21702,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. @@ -21610,6 +21763,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. @@ -21662,6 +21816,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. @@ -21707,6 +21862,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. @@ -21758,6 +21914,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. @@ -21810,6 +21967,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. @@ -21881,6 +22039,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. @@ -21952,6 +22111,7 @@ components: enum: - response.created description: The event type, must be `response.created`. + x-stainless-const: true response: $ref: "#/components/schemas/RealtimeResponse" required: @@ -21994,6 +22154,7 @@ components: enum: - response.done description: The event type, must be `response.done`. + x-stainless-const: true response: $ref: "#/components/schemas/RealtimeResponse" required: @@ -22061,6 +22222,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. @@ -22114,6 +22276,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. @@ -22162,6 +22325,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. @@ -22210,6 +22374,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. @@ -22259,6 +22424,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. @@ -22311,6 +22477,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. @@ -22365,6 +22532,7 @@ components: enum: - session.created description: The event type, must be `session.created`. + x-stainless-const: true session: $ref: "#/components/schemas/RealtimeSession" required: @@ -22416,6 +22584,7 @@ components: enum: - session.updated description: The event type, must be `session.updated`. + x-stainless-const: true session: $ref: "#/components/schemas/RealtimeSession" required: @@ -22597,6 +22766,7 @@ components: - server_vad description: > Type of turn detection, only `server_vad` is currently supported. + x-stainless-const: true threshold: type: number description: > @@ -22633,6 +22803,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. @@ -22667,6 +22838,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 @@ -22854,6 +23026,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. @@ -22888,6 +23061,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 @@ -23070,6 +23244,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. @@ -23104,6 +23279,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 @@ -23143,6 +23319,7 @@ components: description: "The type of response format being defined: `json_object`" enum: - json_object + x-stainless-const: true required: - type ResponseFormatJsonSchema: @@ -23153,6 +23330,7 @@ components: description: "The type of response format being defined: `json_schema`" enum: - json_schema + x-stainless-const: true json_schema: type: object properties: @@ -23192,6 +23370,7 @@ components: description: "The type of response format being defined: `text`" enum: - text + x-stainless-const: true required: - type RunCompletionUsage: @@ -23226,6 +23405,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 @@ -23263,6 +23443,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. @@ -23495,6 +23676,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 @@ -23541,6 +23723,7 @@ components: type: string enum: - message_creation + x-stainless-const: true message_creation: type: object properties: @@ -23566,6 +23749,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. @@ -23602,6 +23786,7 @@ components: type: string enum: - image + x-stainless-const: true image: type: object properties: @@ -23624,6 +23809,7 @@ components: type: string enum: - logs + x-stainless-const: true logs: type: string description: The text output from the Code Interpreter tool call. @@ -23646,6 +23832,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. @@ -23670,6 +23857,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. @@ -23699,6 +23887,7 @@ components: type: string enum: - tool_calls + x-stainless-const: true tool_calls: type: array description: > @@ -23723,6 +23912,7 @@ components: type: string enum: - message_creation + x-stainless-const: true message_creation: type: object properties: @@ -23748,6 +23938,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. @@ -23783,6 +23974,7 @@ components: type: string enum: - image + x-stainless-const: true image: type: object properties: @@ -23804,6 +23996,7 @@ components: type: string enum: - logs + x-stainless-const: true logs: type: string description: The text output from the Code Interpreter tool call. @@ -23823,6 +24016,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. @@ -23850,6 +24044,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 @@ -23889,6 +24084,7 @@ components: description: The type of the content. enum: - text + x-stainless-const: true text: type: string description: The text content of the file. @@ -23909,6 +24105,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. @@ -23943,6 +24140,7 @@ components: type: string enum: - tool_calls + x-stainless-const: true tool_calls: type: array description: > @@ -23973,6 +24171,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 @@ -24112,6 +24311,7 @@ components: type: string enum: - thread.run.step.created + x-stainless-const: true data: $ref: "#/components/schemas/RunStepObject" required: @@ -24127,6 +24327,7 @@ components: type: string enum: - thread.run.step.in_progress + x-stainless-const: true data: $ref: "#/components/schemas/RunStepObject" required: @@ -24142,6 +24343,7 @@ components: type: string enum: - thread.run.step.delta + x-stainless-const: true data: $ref: "#/components/schemas/RunStepDeltaObject" required: @@ -24159,6 +24361,7 @@ components: type: string enum: - thread.run.step.completed + x-stainless-const: true data: $ref: "#/components/schemas/RunStepObject" required: @@ -24174,6 +24377,7 @@ components: type: string enum: - thread.run.step.failed + x-stainless-const: true data: $ref: "#/components/schemas/RunStepObject" required: @@ -24189,6 +24393,7 @@ components: type: string enum: - thread.run.step.cancelled + x-stainless-const: true data: $ref: "#/components/schemas/RunStepObject" required: @@ -24204,6 +24409,7 @@ components: type: string enum: - thread.run.step.expired + x-stainless-const: true data: $ref: "#/components/schemas/RunStepObject" required: @@ -24221,6 +24427,7 @@ components: type: string enum: - thread.run.created + x-stainless-const: true data: $ref: "#/components/schemas/RunObject" required: @@ -24235,6 +24442,7 @@ components: type: string enum: - thread.run.queued + x-stainless-const: true data: $ref: "#/components/schemas/RunObject" required: @@ -24250,6 +24458,7 @@ components: type: string enum: - thread.run.in_progress + x-stainless-const: true data: $ref: "#/components/schemas/RunObject" required: @@ -24265,6 +24474,7 @@ components: type: string enum: - thread.run.requires_action + x-stainless-const: true data: $ref: "#/components/schemas/RunObject" required: @@ -24280,6 +24490,7 @@ components: type: string enum: - thread.run.completed + x-stainless-const: true data: $ref: "#/components/schemas/RunObject" required: @@ -24294,6 +24505,7 @@ components: type: string enum: - thread.run.incomplete + x-stainless-const: true data: $ref: "#/components/schemas/RunObject" required: @@ -24309,6 +24521,7 @@ components: type: string enum: - thread.run.failed + x-stainless-const: true data: $ref: "#/components/schemas/RunObject" required: @@ -24323,6 +24536,7 @@ components: type: string enum: - thread.run.cancelling + x-stainless-const: true data: $ref: "#/components/schemas/RunObject" required: @@ -24338,6 +24552,7 @@ components: type: string enum: - thread.run.cancelled + x-stainless-const: true data: $ref: "#/components/schemas/RunObject" required: @@ -24352,6 +24567,7 @@ components: type: string enum: - thread.run.expired + x-stainless-const: true data: $ref: "#/components/schemas/RunObject" required: @@ -24375,6 +24591,7 @@ components: always `function`. enum: - function + x-stainless-const: true function: type: object description: The function definition. @@ -24424,6 +24641,7 @@ components: description: Always `static`. enum: - static + x-stainless-const: true static: $ref: "#/components/schemas/StaticChunkingStrategy" required: @@ -24439,6 +24657,7 @@ components: description: Always `static`. enum: - static + x-stainless-const: true static: $ref: "#/components/schemas/StaticChunkingStrategy" required: @@ -24484,6 +24703,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 @@ -24557,6 +24777,7 @@ components: type: string enum: - thread.created + x-stainless-const: true data: $ref: "#/components/schemas/ThreadObject" required: @@ -24724,6 +24945,7 @@ components: description: The object type, which is always "upload". enum: - upload + x-stainless-const: true file: $ref: "#/components/schemas/OpenAIFile" nullable: true @@ -24779,6 +25001,7 @@ components: description: The object type, which is always `upload.part`. enum: - upload.part + x-stainless-const: true required: - created_at - id @@ -24801,6 +25024,7 @@ components: type: string enum: - organization.usage.audio_speeches.result + x-stainless-const: true characters: type: integer description: The number of characters processed. @@ -24852,6 +25076,7 @@ components: type: string enum: - organization.usage.audio_transcriptions.result + x-stainless-const: true seconds: type: integer description: The number of seconds processed. @@ -24903,6 +25128,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. @@ -24930,6 +25156,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 @@ -25009,6 +25236,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. @@ -25059,6 +25287,7 @@ components: type: string enum: - organization.usage.images.result + x-stainless-const: true images: type: integer description: The number of images processed. @@ -25122,6 +25351,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. @@ -25171,6 +25401,7 @@ components: type: string enum: - page + x-stainless-const: true data: type: array items: @@ -25191,6 +25422,7 @@ components: type: string enum: - bucket + x-stainless-const: true start_time: type: integer end_time: @@ -25221,6 +25453,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. @@ -25249,6 +25482,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 @@ -25292,6 +25526,7 @@ components: type: string enum: - organization.user.deleted + x-stainless-const: true id: type: string deleted: @@ -25307,6 +25542,7 @@ components: type: string enum: - list + x-stainless-const: true data: type: array items: @@ -25345,6 +25581,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. @@ -25367,6 +25604,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. @@ -25447,6 +25685,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. @@ -25538,6 +25777,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.