···215215 } & ErrorEvent);
216216217217export const AssistantSupportedModels = {
218218- GPT_4O: 'gpt-4o',
219219- GPT_4O_2024_05_13: 'gpt-4o-2024-05-13',
220220- GPT_4O_2024_08_06: 'gpt-4o-2024-08-06',
221221- GPT_4O_2024_11_20: 'gpt-4o-2024-11-20',
222218 GPT_4_1: 'gpt-4.1',
223223- GPT_4O_MINI: 'gpt-4o-mini',
224219 GPT_4_1_2025_04_14: 'gpt-4.1-2025-04-14',
225225- GPT_4O_MINI_2024_07_18: 'gpt-4o-mini-2024-07-18',
226220 GPT_4_1_MINI: 'gpt-4.1-mini',
227227- GPT_4_0125_PREVIEW: 'gpt-4-0125-preview',
228221 GPT_4_1_MINI_2025_04_14: 'gpt-4.1-mini-2025-04-14',
229229- GPT_4: 'gpt-4',
222222+ GPT_5: 'gpt-5',
230223 GPT_4_1_NANO: 'gpt-4.1-nano',
231231- GPT_4_0314: 'gpt-4-0314',
232232- GPT_5: 'gpt-5',
233233- GPT_4_0613: 'gpt-4-0613',
234224 GPT_5_2025_08_07: 'gpt-5-2025-08-07',
235235- GPT_3_5_TURBO: 'gpt-3.5-turbo',
225225+ GPT_4O: 'gpt-4o',
236226 GPT_5_MINI: 'gpt-5-mini',
237237- GPT_3_5_TURBO_0613: 'gpt-3.5-turbo-0613',
227227+ GPT_4O_2024_08_06: 'gpt-4o-2024-08-06',
238228 GPT_5_MINI_2025_08_07: 'gpt-5-mini-2025-08-07',
239239- GPT_3_5_TURBO_0125: 'gpt-3.5-turbo-0125',
229229+ GPT_4O_2024_05_13: 'gpt-4o-2024-05-13',
240230 GPT_5_NANO: 'gpt-5-nano',
241241- GPT_3_5_TURBO_1106: 'gpt-3.5-turbo-1106',
242242- GPT_3_5_TURBO_16K: 'gpt-3.5-turbo-16k',
231231+ GPT_4O_2024_11_20: 'gpt-4o-2024-11-20',
232232+ GPT_4O_MINI: 'gpt-4o-mini',
243233 GPT_5_NANO_2025_08_07: 'gpt-5-nano-2025-08-07',
244244- GPT_3_5_TURBO_16K_0613: 'gpt-3.5-turbo-16k-0613',
234234+ GPT_4O_MINI_2024_07_18: 'gpt-4o-mini-2024-07-18',
245235 GPT_4_1_NANO_2025_04_14: 'gpt-4.1-nano-2025-04-14',
246246- GPT_4_1106_PREVIEW: 'gpt-4-1106-preview',
236236+ GPT_4_0125_PREVIEW: 'gpt-4-0125-preview',
247237 O1: 'o1',
248248- GPT_4_32K: 'gpt-4-32k',
238238+ GPT_4: 'gpt-4',
249239 O3_MINI: 'o3-mini',
250250- GPT_4_32K_0314: 'gpt-4-32k-0314',
240240+ GPT_4_0314: 'gpt-4-0314',
251241 O3_MINI_2025_01_31: 'o3-mini-2025-01-31',
252252- GPT_4_32K_0613: 'gpt-4-32k-0613',
242242+ GPT_4_0613: 'gpt-4-0613',
253243 O1_2024_12_17: 'o1-2024-12-17',
244244+ GPT_3_5_TURBO: 'gpt-3.5-turbo',
245245+ GPT_4_1106_PREVIEW: 'gpt-4-1106-preview',
246246+ GPT_3_5_TURBO_0613: 'gpt-3.5-turbo-0613',
254247 GPT_4_5_PREVIEW: 'gpt-4.5-preview',
248248+ GPT_3_5_TURBO_0125: 'gpt-3.5-turbo-0125',
255249 GPT_4_5_PREVIEW_2025_02_27: 'gpt-4.5-preview-2025-02-27',
250250+ GPT_3_5_TURBO_1106: 'gpt-3.5-turbo-1106',
256251 GPT_4_TURBO: 'gpt-4-turbo',
252252+ GPT_3_5_TURBO_16K: 'gpt-3.5-turbo-16k',
257253 GPT_4_TURBO_2024_04_09: 'gpt-4-turbo-2024-04-09',
254254+ GPT_3_5_TURBO_16K_0613: 'gpt-3.5-turbo-16k-0613',
258255 GPT_4_TURBO_PREVIEW: 'gpt-4-turbo-preview',
256256+ GPT_4_32K: 'gpt-4-32k',
259257 GPT_4_VISION_PREVIEW: 'gpt-4-vision-preview',
258258+ GPT_4_32K_0314: 'gpt-4-32k-0314',
259259+ GPT_4_32K_0613: 'gpt-4-32k-0613',
260260} as const;
261261262262export type AssistantSupportedModels =
···540540 */
541541 effective_at: number;
542542 /**
543543- * The ID of this log.
544544- */
545545- id: string;
546546- /**
547547- * The details for events with this `type`.
548548- */
549549- 'invite.accepted'?: {
550550- /**
551551- * The ID of the invite.
552552- */
553553- id?: string;
554554- };
555555- /**
556543 * The details for events with this `type`.
557544 */
558545 'invite.deleted'?: {
···564551 /**
565552 * The details for events with this `type`.
566553 */
567567- 'invite.sent'?: {
568568- /**
569569- * The payload used to create the invite.
570570- */
571571- data?: {
572572- /**
573573- * The email invited to the organization.
574574- */
575575- email?: string;
576576- /**
577577- * The role the email was invited to be. Is either `owner` or `member`.
578578- */
579579- role?: string;
580580- };
554554+ 'invite.accepted'?: {
581555 /**
582556 * The ID of the invite.
583557 */
···586560 /**
587561 * The details for events with this `type`.
588562 */
589589- 'login.failed'?: {
590590- /**
591591- * The error code of the failure.
592592- */
593593- error_code?: string;
594594- /**
595595- * The error message of the failure.
596596- */
597597- error_message?: string;
598598- };
599599- /**
600600- * The details for events with this `type`.
601601- */
602563 'logout.failed'?: {
603564 /**
604565 * The error code of the failure.
···618579 */
619580 changes_requested?: {
620581 /**
621621- * How your organization logs data from supported API calls. One of `disabled`, `enabled_per_call`, `enabled_for_all_projects`, or `enabled_for_selected_projects`
622622- */
623623- api_call_logging?: string;
624624- /**
625625- * The list of project ids if api_call_logging is set to `enabled_for_selected_projects`
582582+ * The organization title.
626583 */
627627- api_call_logging_project_ids?: string;
584584+ title?: string;
628585 /**
629586 * The organization description.
630587 */
···638595 */
639596 threads_ui_visibility?: string;
640597 /**
641641- * The organization title.
642642- */
643643- title?: string;
644644- /**
645598 * Visibility of the usage dashboard which shows activity and costs for your organization. One of `ANY_ROLE` or `OWNERS`.
646599 */
647600 usage_dashboard_visibility?: string;
601601+ /**
602602+ * How your organization logs data from supported API calls. One of `disabled`, `enabled_per_call`, `enabled_for_all_projects`, or `enabled_for_selected_projects`
603603+ */
604604+ api_call_logging?: string;
605605+ /**
606606+ * The list of project ids if api_call_logging is set to `enabled_for_selected_projects`
607607+ */
608608+ api_call_logging_project_ids?: string;
648609 };
649610 /**
650611 * The organization ID.
651651- */
652652- id?: string;
653653- };
654654- /**
655655- * The project that the action was scoped to. Absent for actions not scoped to projects. Note that any admin actions taken via Admin API keys are associated with the default project.
656656- */
657657- project?: {
658658- /**
659659- * The project ID.
660660- */
661661- id?: string;
662662- /**
663663- * The project title.
664664- */
665665- name?: string;
666666- };
667667- /**
668668- * The details for events with this `type`.
669669- */
670670- 'project.archived'?: {
671671- /**
672672- * The project ID.
673612 */
674613 id?: string;
675614 };
···725664 /**
726665 * The details for events with this `type`.
727666 */
728728- 'user.added'?: {
667667+ 'rate_limit.updated'?: {
729668 /**
730730- * The user ID.
669669+ * The rate limit ID
731670 */
732671 id?: string;
733672 /**
734734- * The payload used to add the user to the project.
673673+ * The payload used to update the rate limits.
735674 */
736736- data?: {
675675+ changes_requested?: {
676676+ /**
677677+ * The maximum requests per minute.
678678+ */
679679+ max_requests_per_1_minute?: number;
680680+ /**
681681+ * The maximum tokens per minute.
682682+ */
683683+ max_tokens_per_1_minute?: number;
737684 /**
738738- * The role of the user. Is either `owner` or `member`.
685685+ * The maximum images per minute. Only relevant for certain models.
739686 */
740740- role?: string;
687687+ max_images_per_1_minute?: number;
688688+ /**
689689+ * The maximum audio megabytes per minute. Only relevant for certain models.
690690+ */
691691+ max_audio_megabytes_per_1_minute?: number;
692692+ /**
693693+ * The maximum requests per day. Only relevant for certain models.
694694+ */
695695+ max_requests_per_1_day?: number;
696696+ /**
697697+ * The maximum batch input tokens per day. Only relevant for certain models.
698698+ */
699699+ batch_1_day_max_input_tokens?: number;
741700 };
742701 };
743702 /**
744703 * The details for events with this `type`.
745704 */
746746- 'user.updated'?: {
705705+ 'project.archived'?: {
747706 /**
748707 * The project ID.
749708 */
750709 id?: string;
710710+ };
711711+ /**
712712+ * The details for events with this `type`.
713713+ */
714714+ 'service_account.created'?: {
751715 /**
752752- * The payload used to update the user.
716716+ * The payload used to create the service account.
753717 */
754754- changes_requested?: {
718718+ data?: {
755719 /**
756756- * The role of the user. Is either `owner` or `member`.
720720+ * The role of the service account. Is either `owner` or `member`.
757721 */
758722 role?: string;
759723 };
760760- };
761761- /**
762762- * The details for events with this `type`.
763763- */
764764- 'service_account.deleted'?: {
765724 /**
766725 * The service account ID.
767726 */
···788747 /**
789748 * The details for events with this `type`.
790749 */
791791- 'rate_limit.updated'?: {
750750+ 'user.deleted'?: {
792751 /**
793793- * The payload used to update the rate limits.
752752+ * The user ID.
794753 */
795795- changes_requested?: {
796796- /**
797797- * The maximum requests per minute.
798798- */
799799- max_requests_per_1_minute?: number;
800800- /**
801801- * The maximum tokens per minute.
802802- */
803803- max_tokens_per_1_minute?: number;
804804- /**
805805- * The maximum images per minute. Only relevant for certain models.
806806- */
807807- max_images_per_1_minute?: number;
808808- /**
809809- * The maximum audio megabytes per minute. Only relevant for certain models.
810810- */
811811- max_audio_megabytes_per_1_minute?: number;
812812- /**
813813- * The maximum requests per day. Only relevant for certain models.
814814- */
815815- max_requests_per_1_day?: number;
816816- /**
817817- * The maximum batch input tokens per day. Only relevant for certain models.
818818- */
819819- batch_1_day_max_input_tokens?: number;
820820- };
754754+ id?: string;
755755+ };
756756+ /**
757757+ * The details for events with this `type`.
758758+ */
759759+ 'user.added'?: {
821760 /**
822822- * The rate limit ID
761761+ * The user ID.
823762 */
824763 id?: string;
764764+ /**
765765+ * The payload used to add the user to the project.
766766+ */
767767+ data?: {
768768+ /**
769769+ * The role of the user. Is either `owner` or `member`.
770770+ */
771771+ role?: string;
772772+ };
825773 };
826826- type: AuditLogEventType;
827774 /**
828775 * The details for events with this `type`.
829776 */
830830- 'service_account.created'?: {
777777+ 'user.updated'?: {
831778 /**
832832- * The payload used to create the service account.
779779+ * The project ID.
780780+ */
781781+ id?: string;
782782+ /**
783783+ * The payload used to update the user.
833784 */
834834- data?: {
785785+ changes_requested?: {
835786 /**
836836- * The role of the service account. Is either `owner` or `member`.
787787+ * The role of the user. Is either `owner` or `member`.
837788 */
838789 role?: string;
839790 };
791791+ };
792792+ /**
793793+ * The details for events with this `type`.
794794+ */
795795+ 'service_account.deleted'?: {
840796 /**
841797 * The service account ID.
842798 */
843799 id?: string;
844800 };
845801 /**
802802+ * The ID of this log.
803803+ */
804804+ id: string;
805805+ /**
806806+ * The project that the action was scoped to. Absent for actions not scoped to projects. Note that any admin actions taken via Admin API keys are associated with the default project.
807807+ */
808808+ project?: {
809809+ /**
810810+ * The project ID.
811811+ */
812812+ id?: string;
813813+ /**
814814+ * The project title.
815815+ */
816816+ name?: string;
817817+ };
818818+ type: AuditLogEventType;
819819+ /**
846820 * The details for events with this `type`.
847821 */
848848- 'user.deleted'?: {
822822+ 'login.failed'?: {
849823 /**
850850- * The user ID.
824824+ * The error code of the failure.
825825+ */
826826+ error_code?: string;
827827+ /**
828828+ * The error message of the failure.
829829+ */
830830+ error_message?: string;
831831+ };
832832+ /**
833833+ * The details for events with this `type`.
834834+ */
835835+ 'invite.sent'?: {
836836+ /**
837837+ * The payload used to create the invite.
838838+ */
839839+ data?: {
840840+ /**
841841+ * The email invited to the organization.
842842+ */
843843+ email?: string;
844844+ /**
845845+ * The role the email was invited to be. Is either `owner` or `member`.
846846+ */
847847+ role?: string;
848848+ };
849849+ /**
850850+ * The ID of the invite.
851851 */
852852 id?: string;
853853 };
···10181018 finalizing_at?: number;
10191019 id: string;
10201020 /**
10211021- * The Unix timestamp (in seconds) for when the batch started processing.
10211021+ * The ID of the file containing the outputs of successfully executed requests.
10221022 */
10231023- in_progress_at?: number;
10231023+ output_file_id?: string;
10241024 /**
10251025- * The ID of the input file for the batch.
10251025+ * The Unix timestamp (in seconds) for when the batch started processing.
10261026 */
10271027- input_file_id: string;
10271027+ in_progress_at?: number;
10281028 metadata?: Metadata;
10291029 /**
10301030 * The object type, which is always `batch`.
10311031 */
10321032 object: 'batch';
10331033 /**
10341034- * The ID of the file containing the outputs of successfully executed requests.
10341034+ * The ID of the input file for the batch.
10351035 */
10361036- output_file_id?: string;
10361036+ input_file_id: string;
10371037 request_counts?: BatchRequestCounts;
10381038 /**
10391039 * The current status of the batch.
···29102910 */
29112911 model: ModelIdsShared;
29122912 /**
29132913- * How many chat completion choices to generate for each input message. Note that you will be charged based on the number of generated tokens across all of the choices. Keep `n` as `1` to minimize costs.
29132913+ * Web search
29142914+ *
29152915+ * This tool searches the web for relevant results to use in a response.
29162916+ * Learn more about the [web search tool](https://platform.openai.com/docs/guides/tools-web-search?api-mode=chat).
29172917+ *
29142918 */
29152915- n?: number;
29192919+ web_search_options?: {
29202920+ /**
29212921+ * Approximate location parameters for the search.
29222922+ *
29232923+ */
29242924+ user_location?: {
29252925+ /**
29262926+ * The type of location approximation. Always `approximate`.
29272927+ *
29282928+ */
29292929+ type: 'approximate';
29302930+ approximate: WebSearchLocation;
29312931+ };
29322932+ search_context_size?: WebSearchContextSize;
29332933+ };
29162934 parallel_tool_calls?: ParallelToolCalls;
29172935 /**
29182918- * Configuration for a [Predicted Output](https://platform.openai.com/docs/guides/predicted-outputs),
29192919- * which can greatly improve response times when large parts of the model
29202920- * response are known ahead of time. This is most common when you are
29212921- * regenerating a file with only minor changes to most of the content.
29362936+ * If set to true, the model response data will be streamed to the client
29372937+ * as it is generated using [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format).
29382938+ * See the [Streaming section below](https://platform.openai.com/docs/api-reference/chat/streaming)
29392939+ * for more information, along with the [streaming responses](https://platform.openai.com/docs/guides/streaming-responses)
29402940+ * guide for more information on how to handle the streaming events.
29222941 *
29232942 */
29242924- prediction?: {
29252925- type?: 'PredictionContent';
29262926- } & PredictionContent;
29432943+ stream?: boolean;
29272944 /**
29282928- * Number between -2.0 and 2.0. Positive values penalize new tokens based on
29292929- * whether they appear in the text so far, increasing the model's likelihood
29302930- * to talk about new topics.
29312931- *
29452945+ * How many chat completion choices to generate for each input message. Note that you will be charged based on the number of generated tokens across all of the choices. Keep `n` as `1` to minimize costs.
29322946 */
29332933- presence_penalty?: number;
29472947+ n?: number;
29342948 reasoning_effort?: ReasoningEffort;
29352949 /**
29362950 * An object specifying the format that the model must output.
···29692983 */
29702984 store?: boolean;
29712985 /**
29722972- * If set to true, the model response data will be streamed to the client
29732973- * as it is generated using [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format).
29742974- * See the [Streaming section below](https://platform.openai.com/docs/api-reference/chat/streaming)
29752975- * for more information, along with the [streaming responses](https://platform.openai.com/docs/guides/streaming-responses)
29762976- * guide for more information on how to handle the streaming events.
29862986+ * Number between -2.0 and 2.0. Positive values penalize new tokens based on
29872987+ * whether they appear in the text so far, increasing the model's likelihood
29882988+ * to talk about new topics.
29772989 *
29782990 */
29792979- stream?: boolean;
29912991+ presence_penalty?: number;
29802992 stream_options?: ChatCompletionStreamOptions;
29812993 tool_choice?: ChatCompletionToolChoiceOption;
29822994 /**
···29943006 } & CustomToolChatCompletions)
29953007 >;
29963008 /**
30093009+ * Configuration for a [Predicted Output](https://platform.openai.com/docs/guides/predicted-outputs),
30103010+ * which can greatly improve response times when large parts of the model
30113011+ * response are known ahead of time. This is most common when you are
30123012+ * regenerating a file with only minor changes to most of the content.
30133013+ *
30143014+ */
30153015+ prediction?: {
30163016+ type?: 'PredictionContent';
30173017+ } & PredictionContent;
30183018+ /**
29973019 * An integer between 0 and 20 specifying the number of most likely tokens to
29983020 * return at each token position, each with an associated log probability.
29993021 * `logprobs` must be set to `true` if this parameter is used.
···30013023 */
30023024 top_logprobs?: number;
30033025 verbosity?: Verbosity;
30043004- /**
30053005- * Web search
30063006- *
30073007- * This tool searches the web for relevant results to use in a response.
30083008- * Learn more about the [web search tool](https://platform.openai.com/docs/guides/tools-web-search?api-mode=chat).
30093009- *
30103010- */
30113011- web_search_options?: {
30123012- search_context_size?: WebSearchContextSize;
30133013- /**
30143014- * Approximate location parameters for the search.
30153015- *
30163016- */
30173017- user_location?: {
30183018- approximate: WebSearchLocation;
30193019- /**
30203020- * The type of location approximation. Always `approximate`.
30213021- *
30223022- */
30233023- type: 'approximate';
30243024- };
30253025- };
30263026};
3027302730283028/**
···58245824 */
58255825 completion_tokens: number;
58265826 /**
58275827- * The number of invocations.
58285828- */
58295829- invocation_count: number;
58305830- /**
58315831- * The name of the model.
58325832- */
58335833- model_name: string;
58345834- /**
58355827 * The number of prompt tokens used.
58365828 */
58375829 prompt_tokens: number;
58305830+ /**
58315831+ * The number of invocations.
58325832+ */
58335833+ invocation_count: number;
58385834 /**
58395835 * The total number of tokens used.
58405836 */
58415837 total_tokens: number;
58385838+ /**
58395839+ * The name of the model.
58405840+ */
58415841+ model_name: string;
58425842 }>;
58435843 /**
58445844 * Results per testing criteria applied during the evaluation run.
···58705870 */
58715871 errored: number;
58725872 /**
58735873+ * Total number of executed output items.
58745874+ */
58755875+ total: number;
58765876+ /**
58735877 * Number of output items that failed to pass the evaluation.
58745878 */
58755879 failed: number;
···58775881 * Number of output items that passed the evaluation.
58785882 */
58795883 passed: number;
58805880- /**
58815881- * Total number of executed output items.
58825882- */
58835883- total: number;
58845884 };
58855885 /**
58865886 * The status of the evaluation run.
···66336633 */
66346634 result_files: Array<string>;
66356635 /**
66366636+ * The total number of billable tokens processed by this fine-tuning job. The value will be null if the fine-tuning job is still running.
66376637+ */
66386638+ trained_tokens: number;
66396639+ /**
66366640 * The seed used for the fine-tuning job.
66376641 */
66386642 seed: number;
···66476651 | 'failed'
66486652 | 'cancelled';
66496653 /**
66506650- * The total number of billable tokens processed by this fine-tuning job. The value will be null if the fine-tuning job is still running.
66546654+ * The file ID used for validation. You can retrieve the validation results with the [Files API](https://platform.openai.com/docs/api-reference/files/retrieve-contents).
66516655 */
66526652- trained_tokens: number;
66566656+ validation_file: string;
66536657 /**
66546658 * The file ID used for training. You can retrieve the training data with the [Files API](https://platform.openai.com/docs/api-reference/files/retrieve-contents).
66556659 */
66566660 training_file: string;
66576657- /**
66586658- * The file ID used for validation. You can retrieve the validation results with the [Files API](https://platform.openai.com/docs/api-reference/files/retrieve-contents).
66596659- */
66606660- validation_file: string;
66616661};
6662666266636663/**
···1014610146 */
1014710147 error?: {
1014810148 /**
1014910149- * Error code, if any.
1015010150- */
1015110151- code?: string;
1015210152- /**
1015310149 * The type of error.
1015410150 */
1015510151 type?: string;
1015210152+ /**
1015310153+ * Error code, if any.
1015410154+ */
1015510155+ code?: string;
1015610156 };
1015710157 /**
1015810158 * The reason the Response did not complete. For a `cancelled` Response,
···1019210192 * Details about the input tokens used in the Response.
1019310193 */
1019410194 input_token_details?: {
1019510195- /**
1019610196- * The number of audio tokens used in the Response.
1019710197- */
1019810198- audio_tokens?: number;
1019910195 /**
1020010196 * The number of cached tokens used in the Response.
1020110197 */
···1020410200 * The number of text tokens used in the Response.
1020510201 */
1020610202 text_tokens?: number;
1020310203+ /**
1020410204+ * The number of audio tokens used in the Response.
1020510205+ */
1020610206+ audio_tokens?: number;
1020710207 };
1020810208 /**
1020910209 * The number of input tokens used in the Response, including text and
···1021210212 */
1021310213 input_tokens?: number;
1021410214 /**
1021510215+ * The number of output tokens sent in the Response, including text and
1021610216+ * audio tokens.
1021710217+ *
1021810218+ */
1021910219+ output_tokens?: number;
1022010220+ /**
1022110221+ * The total number of tokens in the Response including input and output
1022210222+ * text and audio tokens.
1022310223+ *
1022410224+ */
1022510225+ total_tokens?: number;
1022610226+ /**
1021510227 * Details about the output tokens used in the Response.
1021610228 */
1021710229 output_token_details?: {
···1022410236 */
1022510237 text_tokens?: number;
1022610238 };
1022710227- /**
1022810228- * The number of output tokens sent in the Response, including text and
1022910229- * audio tokens.
1023010230- *
1023110231- */
1023210232- output_tokens?: number;
1023310233- /**
1023410234- * The total number of tokens in the Response including input and output
1023510235- * text and audio tokens.
1023610236- *
1023710237- */
1023810238- total_tokens?: number;
1023910239 };
1024010240 /**
1024110241 * The voice the model used to respond.
···1299612996 *
1299712997 */
1299812998export const ResponseErrorCode = {
1299912999+ IMAGE_TOO_LARGE: 'image_too_large',
1300013000+ IMAGE_PARSE_ERROR: 'image_parse_error',
1300113001+ INVALID_BASE64_IMAGE: 'invalid_base64_image',
1300213002+ IMAGE_CONTENT_POLICY_VIOLATION: 'image_content_policy_violation',
1300313003+ INVALID_IMAGE: 'invalid_image',
1300413004+ IMAGE_FILE_TOO_LARGE: 'image_file_too_large',
1300513005+ INVALID_PROMPT: 'invalid_prompt',
1299913006 EMPTY_IMAGE_FILE: 'empty_image_file',
1300713007+ RATE_LIMIT_EXCEEDED: 'rate_limit_exceeded',
1300013008 FAILED_TO_DOWNLOAD_IMAGE: 'failed_to_download_image',
1300113001- IMAGE_CONTENT_POLICY_VIOLATION: 'image_content_policy_violation',
1300913009+ SERVER_ERROR: 'server_error',
1300213010 IMAGE_FILE_NOT_FOUND: 'image_file_not_found',
1300313003- IMAGE_FILE_TOO_LARGE: 'image_file_too_large',
1300413004- IMAGE_PARSE_ERROR: 'image_parse_error',
1300513005- IMAGE_TOO_LARGE: 'image_too_large',
1300613011 IMAGE_TOO_SMALL: 'image_too_small',
1300713007- INVALID_BASE64_IMAGE: 'invalid_base64_image',
1300813008- INVALID_IMAGE: 'invalid_image',
1301213012+ VECTOR_STORE_TIMEOUT: 'vector_store_timeout',
1300913013 INVALID_IMAGE_FORMAT: 'invalid_image_format',
1301013014 INVALID_IMAGE_MODE: 'invalid_image_mode',
1301113015 INVALID_IMAGE_URL: 'invalid_image_url',
1301213012- INVALID_PROMPT: 'invalid_prompt',
1301313013- RATE_LIMIT_EXCEEDED: 'rate_limit_exceeded',
1301413014- SERVER_ERROR: 'server_error',
1301513016 UNSUPPORTED_IMAGE_MEDIA_TYPE: 'unsupported_image_media_type',
1301613016- VECTOR_STORE_TIMEOUT: 'vector_store_timeout',
1301713017} as const;
13018130181301913019/**
···1471914719 python_grader_runtime_error: boolean;
1472014720 python_grader_runtime_error_details: string;
1472114721 python_grader_server_error: boolean;
1472214722- python_grader_server_error_type: string;
1472314722 sample_parse_error: boolean;
1472414724- truncated_observation_error: boolean;
1472514723 unresponsive_reward_error: boolean;
1472414724+ truncated_observation_error: boolean;
1472514725+ python_grader_server_error_type: string;
1472614726 };
1472714727 execution_time: number;
1472814728 name: string;
···1480314803 message: string;
1480414804 };
1480514805 /**
1480614806- * The maximum number of completion tokens specified to have been used over the course of the run.
1480714807- *
1480614806+ * The Unix timestamp (in seconds) for when the run was started.
1480814807 */
1480914809- max_completion_tokens: number;
1480814808+ started_at: number;
1481014809 /**
1481114810 * The maximum number of prompt tokens specified to have been used over the course of the run.
1481214811 *
···1484114840 type: 'submit_tool_outputs';
1484214841 };
1484314842 response_format: AssistantsApiResponseFormatOption;
1484414844- /**
1484514845- * The Unix timestamp (in seconds) for when the run was started.
1484614846- */
1484714847- started_at: number;
1484314843+ usage: RunCompletionUsage;
1484814844 status: RunStatus;
1484914845 /**
1485014846 * The sampling temperature used for this run. If not set, defaults to 1.
1485114847 */
1485214848 temperature?: number;
1485314849 /**
1485414854- * The ID of the [thread](https://platform.openai.com/docs/api-reference/threads) that was executed on as a part of this run.
1485014850+ * The maximum number of completion tokens specified to have been used over the course of the run.
1485114851+ *
1485514852 */
1485614856- thread_id: string;
1485314853+ max_completion_tokens: number;
1485714854 tool_choice: AssistantsApiToolChoiceOption & unknown;
1485514855+ truncation_strategy: TruncationObject & unknown;
1485614856+ /**
1485714857+ * The nucleus sampling value used for this run. If not set, defaults to 1.
1485814858+ */
1485914859+ top_p?: number;
1485814860 /**
1485914861 * The list of tools that the [assistant](https://platform.openai.com/docs/api-reference/assistants) used for this run.
1486014862 */
1486114863 tools: Array<AssistantTool>;
1486214864 /**
1486314863- * The nucleus sampling value used for this run. If not set, defaults to 1.
1486514865+ * The ID of the [thread](https://platform.openai.com/docs/api-reference/threads) that was executed on as a part of this run.
1486414866 */
1486514865- top_p?: number;
1486614866- truncation_strategy: TruncationObject & unknown;
1486714867- usage: RunCompletionUsage;
1486714867+ thread_id: string;
1486814868};
14869148691487014870/**
···1535315353 type?: 'RunStepDetailsToolCallsObject';
1535415354 } & RunStepDetailsToolCallsObject);
1535515355 /**
1535615356- * The ID of the [thread](https://platform.openai.com/docs/api-reference/threads) that was run.
1535715357- */
1535815358- thread_id: string;
1535915359- /**
1536015356 * The type of run step, which can be either `message_creation` or `tool_calls`.
1536115357 */
1536215358 type: 'message_creation' | 'tool_calls';
1535915359+ /**
1536015360+ * The ID of the [thread](https://platform.openai.com/docs/api-reference/threads) that was run.
1536115361+ */
1536215362+ thread_id: string;
1536315363 usage: RunStepCompletionUsage;
1536415364};
1536515365···1839318393export const ChatModel = {
1839418394 GPT_4_1: 'gpt-4.1',
1839518395 GPT_4_1_2025_04_14: 'gpt-4.1-2025-04-14',
1839618396+ GPT_5: 'gpt-5',
1839618397 GPT_4_1_MINI: 'gpt-4.1-mini',
1839818398+ GPT_5_2025_08_07: 'gpt-5-2025-08-07',
1839718399 GPT_4_1_MINI_2025_04_14: 'gpt-4.1-mini-2025-04-14',
1840018400+ GPT_5_CHAT_LATEST: 'gpt-5-chat-latest',
1839818401 GPT_4_1_NANO: 'gpt-4.1-nano',
1839918399- GPT_4O: 'gpt-4o',
1840218402+ GPT_5_MINI: 'gpt-5-mini',
1840018403 GPT_4_1_NANO_2025_04_14: 'gpt-4.1-nano-2025-04-14',
1840118401- GPT_4O_2024_08_06: 'gpt-4o-2024-08-06',
1840218402- GPT_5: 'gpt-5',
1840318403- GPT_4O_2024_05_13: 'gpt-4o-2024-05-13',
1840418404- GPT_5_2025_08_07: 'gpt-5-2025-08-07',
1840518405- GPT_4O_2024_11_20: 'gpt-4o-2024-11-20',
1840618406- GPT_5_CHAT_LATEST: 'gpt-5-chat-latest',
1840718407- GPT_4O_AUDIO_PREVIEW: 'gpt-4o-audio-preview',
1840818408- GPT_5_MINI: 'gpt-5-mini',
1840918409- GPT_4O_AUDIO_PREVIEW_2024_10_01: 'gpt-4o-audio-preview-2024-10-01',
1841018404 GPT_5_MINI_2025_08_07: 'gpt-5-mini-2025-08-07',
1841118411- GPT_4O_AUDIO_PREVIEW_2024_12_17: 'gpt-4o-audio-preview-2024-12-17',
1841218405 GPT_5_NANO: 'gpt-5-nano',
1841318413- GPT_4O_AUDIO_PREVIEW_2025_06_03: 'gpt-4o-audio-preview-2025-06-03',
1841418406 GPT_5_NANO_2025_08_07: 'gpt-5-nano-2025-08-07',
1841518415- CHATGPT_4O_LATEST: 'chatgpt-4o-latest',
1841618407 O1: 'o1',
1841718417- CODEX_MINI_LATEST: 'codex-mini-latest',
1841818408 O1_2024_12_17: 'o1-2024-12-17',
1841918419- GPT_4O_MINI: 'gpt-4o-mini',
1840918409+ GPT_4O: 'gpt-4o',
1842018410 O1_MINI: 'o1-mini',
1842118421- GPT_4O_MINI_2024_07_18: 'gpt-4o-mini-2024-07-18',
1841118411+ GPT_4O_2024_08_06: 'gpt-4o-2024-08-06',
1842218412 O3: 'o3',
1842318423- GPT_4: 'gpt-4',
1841318413+ GPT_4O_2024_05_13: 'gpt-4o-2024-05-13',
1842418414 O3_2025_04_16: 'o3-2025-04-16',
1842518425- GPT_4O_MINI_AUDIO_PREVIEW: 'gpt-4o-mini-audio-preview',
1841518415+ GPT_4O_2024_11_20: 'gpt-4o-2024-11-20',
1842618416 O4_MINI: 'o4-mini',
1842718427- GPT_4O_MINI_AUDIO_PREVIEW_2024_12_17: 'gpt-4o-mini-audio-preview-2024-12-17',
1841718417+ GPT_4O_AUDIO_PREVIEW: 'gpt-4o-audio-preview',
1842818418 O4_MINI_2025_04_16: 'o4-mini-2025-04-16',
1842918429- GPT_3_5_TURBO: 'gpt-3.5-turbo',
1841918419+ GPT_4O_AUDIO_PREVIEW_2024_10_01: 'gpt-4o-audio-preview-2024-10-01',
1843018420 O3_MINI: 'o3-mini',
1843118431- GPT_3_5_TURBO_0301: 'gpt-3.5-turbo-0301',
1842118421+ GPT_4O_AUDIO_PREVIEW_2024_12_17: 'gpt-4o-audio-preview-2024-12-17',
1843218422 O3_MINI_2025_01_31: 'o3-mini-2025-01-31',
1843318433- GPT_3_5_TURBO_0613: 'gpt-3.5-turbo-0613',
1842318423+ GPT_4O_AUDIO_PREVIEW_2025_06_03: 'gpt-4o-audio-preview-2025-06-03',
1843418424 O1_PREVIEW: 'o1-preview',
1843518435- GPT_3_5_TURBO_0125: 'gpt-3.5-turbo-0125',
1842518425+ CHATGPT_4O_LATEST: 'chatgpt-4o-latest',
1843618426 O1_PREVIEW_2024_09_12: 'o1-preview-2024-09-12',
1843718437- GPT_3_5_TURBO_1106: 'gpt-3.5-turbo-1106',
1842718427+ CODEX_MINI_LATEST: 'codex-mini-latest',
1843818428 O1_MINI_2024_09_12: 'o1-mini-2024-09-12',
1843918439- GPT_3_5_TURBO_16K: 'gpt-3.5-turbo-16k',
1842918429+ GPT_4O_MINI: 'gpt-4o-mini',
1843018430+ GPT_4O_MINI_2024_07_18: 'gpt-4o-mini-2024-07-18',
1843118431+ GPT_4O_MINI_AUDIO_PREVIEW: 'gpt-4o-mini-audio-preview',
1843218432+ GPT_4O_MINI_AUDIO_PREVIEW_2024_12_17: 'gpt-4o-mini-audio-preview-2024-12-17',
1843318433+ GPT_4: 'gpt-4',
1844018434 GPT_4O_MINI_SEARCH_PREVIEW: 'gpt-4o-mini-search-preview',
1844118441- GPT_3_5_TURBO_16K_0613: 'gpt-3.5-turbo-16k-0613',
1844218435 GPT_4O_MINI_SEARCH_PREVIEW_2025_03_11:
1844318436 'gpt-4o-mini-search-preview-2025-03-11',
1844418437 GPT_4O_SEARCH_PREVIEW: 'gpt-4o-search-preview',
1844518438 GPT_4O_SEARCH_PREVIEW_2025_03_11: 'gpt-4o-search-preview-2025-03-11',
1844618439 GPT_4_0125_PREVIEW: 'gpt-4-0125-preview',
1844018440+ GPT_3_5_TURBO: 'gpt-3.5-turbo',
1844718441 GPT_4_0314: 'gpt-4-0314',
1844218442+ GPT_3_5_TURBO_0301: 'gpt-3.5-turbo-0301',
1844818443 GPT_4_0613: 'gpt-4-0613',
1844418444+ GPT_3_5_TURBO_0613: 'gpt-3.5-turbo-0613',
1844918445 GPT_4_1106_PREVIEW: 'gpt-4-1106-preview',
1845018450- GPT_4_32K: 'gpt-4-32k',
1845118451- GPT_4_32K_0314: 'gpt-4-32k-0314',
1845218452- GPT_4_32K_0613: 'gpt-4-32k-0613',
1844618446+ GPT_3_5_TURBO_0125: 'gpt-3.5-turbo-0125',
1845318447 GPT_4_TURBO: 'gpt-4-turbo',
1844818448+ GPT_3_5_TURBO_1106: 'gpt-3.5-turbo-1106',
1845418449 GPT_4_TURBO_2024_04_09: 'gpt-4-turbo-2024-04-09',
1845018450+ GPT_3_5_TURBO_16K: 'gpt-3.5-turbo-16k',
1845518451 GPT_4_TURBO_PREVIEW: 'gpt-4-turbo-preview',
1845218452+ GPT_3_5_TURBO_16K_0613: 'gpt-3.5-turbo-16k-0613',
1845618453 GPT_4_VISION_PREVIEW: 'gpt-4-vision-preview',
1845418454+ GPT_4_32K: 'gpt-4-32k',
1845518455+ GPT_4_32K_0314: 'gpt-4-32k-0314',
1845618456+ GPT_4_32K_0613: 'gpt-4-32k-0613',
1845718457} as const;
18458184581845918459export type ChatModel = (typeof ChatModel)[keyof typeof ChatModel];