···215215 } & ErrorEvent);
216216217217export const AssistantSupportedModels = {
218218- GPT_4_1: 'gpt-4.1',
219219- GPT_4_1_2025_04_14: 'gpt-4.1-2025-04-14',
220220- GPT_4_1_MINI: 'gpt-4.1-mini',
221221- GPT_4_1_MINI_2025_04_14: 'gpt-4.1-mini-2025-04-14',
222222- GPT_5: 'gpt-5',
223223- GPT_4_1_NANO: 'gpt-4.1-nano',
224224- GPT_5_2025_08_07: 'gpt-5-2025-08-07',
225218 GPT_4O: 'gpt-4o',
226226- GPT_5_MINI: 'gpt-5-mini',
219219+ GPT_4: 'gpt-4',
220220+ GPT_4O_2024_05_13: 'gpt-4o-2024-05-13',
227221 GPT_4O_2024_08_06: 'gpt-4o-2024-08-06',
228228- GPT_5_MINI_2025_08_07: 'gpt-5-mini-2025-08-07',
229229- GPT_4O_2024_05_13: 'gpt-4o-2024-05-13',
230230- GPT_5_NANO: 'gpt-5-nano',
231222 GPT_4O_2024_11_20: 'gpt-4o-2024-11-20',
232223 GPT_4O_MINI: 'gpt-4o-mini',
233233- GPT_5_NANO_2025_08_07: 'gpt-5-nano-2025-08-07',
234224 GPT_4O_MINI_2024_07_18: 'gpt-4o-mini-2024-07-18',
235235- GPT_4_1_NANO_2025_04_14: 'gpt-4.1-nano-2025-04-14',
225225+ GPT_3_5_TURBO: 'gpt-3.5-turbo',
236226 GPT_4_0125_PREVIEW: 'gpt-4-0125-preview',
237237- O1: 'o1',
238238- GPT_4: 'gpt-4',
239239- O3_MINI: 'o3-mini',
227227+ GPT_3_5_TURBO_0613: 'gpt-3.5-turbo-0613',
240228 GPT_4_0314: 'gpt-4-0314',
241241- O3_MINI_2025_01_31: 'o3-mini-2025-01-31',
229229+ GPT_3_5_TURBO_0125: 'gpt-3.5-turbo-0125',
242230 GPT_4_0613: 'gpt-4-0613',
243243- O1_2024_12_17: 'o1-2024-12-17',
244244- GPT_3_5_TURBO: 'gpt-3.5-turbo',
231231+ GPT_3_5_TURBO_1106: 'gpt-3.5-turbo-1106',
232232+ GPT_4_1: 'gpt-4.1',
233233+ GPT_3_5_TURBO_16K: 'gpt-3.5-turbo-16k',
234234+ GPT_4_1_2025_04_14: 'gpt-4.1-2025-04-14',
235235+ GPT_3_5_TURBO_16K_0613: 'gpt-3.5-turbo-16k-0613',
236236+ GPT_4_1_MINI: 'gpt-4.1-mini',
245237 GPT_4_1106_PREVIEW: 'gpt-4-1106-preview',
246246- GPT_3_5_TURBO_0613: 'gpt-3.5-turbo-0613',
238238+ GPT_4_1_MINI_2025_04_14: 'gpt-4.1-mini-2025-04-14',
239239+ GPT_4_1_NANO: 'gpt-4.1-nano',
240240+ GPT_4_1_NANO_2025_04_14: 'gpt-4.1-nano-2025-04-14',
241241+ GPT_4_32K: 'gpt-4-32k',
242242+ GPT_5: 'gpt-5',
243243+ GPT_4_32K_0314: 'gpt-4-32k-0314',
244244+ GPT_5_2025_08_07: 'gpt-5-2025-08-07',
245245+ GPT_4_32K_0613: 'gpt-4-32k-0613',
246246+ GPT_5_MINI: 'gpt-5-mini',
247247 GPT_4_5_PREVIEW: 'gpt-4.5-preview',
248248- GPT_3_5_TURBO_0125: 'gpt-3.5-turbo-0125',
248248+ GPT_5_MINI_2025_08_07: 'gpt-5-mini-2025-08-07',
249249 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',
250250+ GPT_5_NANO: 'gpt-5-nano',
251251 GPT_4_TURBO: 'gpt-4-turbo',
252252- GPT_3_5_TURBO_16K: 'gpt-3.5-turbo-16k',
253252 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',
253253+ GPT_5_NANO_2025_08_07: 'gpt-5-nano-2025-08-07',
255254 GPT_4_TURBO_PREVIEW: 'gpt-4-turbo-preview',
256256- GPT_4_32K: 'gpt-4-32k',
257255 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',
256256+ O1: 'o1',
257257+ O1_2024_12_17: 'o1-2024-12-17',
258258+ O3_MINI: 'o3-mini',
259259+ O3_MINI_2025_01_31: 'o3-mini-2025-01-31',
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+ /**
543556 * The details for events with this `type`.
544557 */
545558 'invite.deleted'?: {
···551564 /**
552565 * The details for events with this `type`.
553566 */
554554- 'invite.accepted'?: {
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+ };
555581 /**
556582 * The ID of the invite.
557583 */
···560586 /**
561587 * The details for events with this `type`.
562588 */
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+ */
563602 'logout.failed'?: {
564603 /**
565604 * The error code of the failure.
···579618 */
580619 changes_requested?: {
581620 /**
582582- * The organization title.
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`
583622 */
584584- title?: string;
623623+ api_call_logging?: string;
624624+ /**
625625+ * The list of project ids if api_call_logging is set to `enabled_for_selected_projects`
626626+ */
627627+ api_call_logging_project_ids?: string;
585628 /**
586629 * The organization description.
587630 */
···595638 */
596639 threads_ui_visibility?: string;
597640 /**
598598- * Visibility of the usage dashboard which shows activity and costs for your organization. One of `ANY_ROLE` or `OWNERS`.
599599- */
600600- 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`
641641+ * The organization title.
603642 */
604604- api_call_logging?: string;
643643+ title?: string;
605644 /**
606606- * The list of project ids if api_call_logging is set to `enabled_for_selected_projects`
645645+ * Visibility of the usage dashboard which shows activity and costs for your organization. One of `ANY_ROLE` or `OWNERS`.
607646 */
608608- api_call_logging_project_ids?: string;
647647+ usage_dashboard_visibility?: string;
609648 };
610649 /**
611650 * The organization ID.
···613652 id?: string;
614653 };
615654 /**
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.
673673+ */
674674+ id?: string;
675675+ };
676676+ /**
616677 * The details for events with this `type`.
617678 */
618679 'project.created'?: {
···666727 */
667728 'rate_limit.updated'?: {
668729 /**
669669- * The rate limit ID
670670- */
671671- id?: string;
672672- /**
673730 * The payload used to update the rate limits.
674731 */
675732 changes_requested?: {
676733 /**
677677- * The maximum requests per minute.
734734+ * The maximum batch input tokens per day. Only relevant for certain models.
678735 */
679679- max_requests_per_1_minute?: number;
736736+ batch_1_day_max_input_tokens?: number;
680737 /**
681681- * The maximum tokens per minute.
738738+ * The maximum audio megabytes per minute. Only relevant for certain models.
682739 */
683683- max_tokens_per_1_minute?: number;
740740+ max_audio_megabytes_per_1_minute?: number;
684741 /**
685742 * The maximum images per minute. Only relevant for certain models.
686743 */
687744 max_images_per_1_minute?: number;
688745 /**
689689- * The maximum audio megabytes per minute. Only relevant for certain models.
746746+ * The maximum requests per day. Only relevant for certain models.
690747 */
691691- max_audio_megabytes_per_1_minute?: number;
748748+ max_requests_per_1_day?: number;
692749 /**
693693- * The maximum requests per day. Only relevant for certain models.
750750+ * The maximum requests per minute.
694751 */
695695- max_requests_per_1_day?: number;
752752+ max_requests_per_1_minute?: number;
696753 /**
697697- * The maximum batch input tokens per day. Only relevant for certain models.
754754+ * The maximum tokens per minute.
698755 */
699699- batch_1_day_max_input_tokens?: number;
756756+ max_tokens_per_1_minute?: number;
700757 };
701701- };
702702- /**
703703- * The details for events with this `type`.
704704- */
705705- 'project.archived'?: {
706758 /**
707707- * The project ID.
759759+ * The rate limit ID
708760 */
709761 id?: string;
710762 };
···729781 /**
730782 * The details for events with this `type`.
731783 */
784784+ 'service_account.deleted'?: {
785785+ /**
786786+ * The service account ID.
787787+ */
788788+ id?: string;
789789+ };
790790+ /**
791791+ * The details for events with this `type`.
792792+ */
732793 'service_account.updated'?: {
733794 /**
734795 * The payload used to updated the service account.
···744805 */
745806 id?: string;
746807 };
747747- /**
748748- * The details for events with this `type`.
749749- */
750750- 'user.deleted'?: {
751751- /**
752752- * The user ID.
753753- */
754754- id?: string;
755755- };
808808+ type: AuditLogEventType;
756809 /**
757810 * The details for events with this `type`.
758811 */
759812 'user.added'?: {
760760- /**
761761- * The user ID.
762762- */
763763- id?: string;
764813 /**
765814 * The payload used to add the user to the project.
766815 */
···770819 */
771820 role?: string;
772821 };
773773- };
774774- /**
775775- * The details for events with this `type`.
776776- */
777777- 'user.updated'?: {
778822 /**
779779- * The project ID.
823823+ * The user ID.
780824 */
781825 id?: string;
782782- /**
783783- * The payload used to update the user.
784784- */
785785- changes_requested?: {
786786- /**
787787- * The role of the user. Is either `owner` or `member`.
788788- */
789789- role?: string;
790790- };
791826 };
792827 /**
793828 * The details for events with this `type`.
794829 */
795795- 'service_account.deleted'?: {
796796- /**
797797- * The service account ID.
798798- */
799799- id?: string;
800800- };
801801- /**
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?: {
830830+ 'user.deleted'?: {
809831 /**
810810- * The project ID.
832832+ * The user ID.
811833 */
812834 id?: string;
813813- /**
814814- * The project title.
815815- */
816816- name?: string;
817835 };
818818- type: AuditLogEventType;
819836 /**
820837 * The details for events with this `type`.
821838 */
822822- 'login.failed'?: {
839839+ 'user.updated'?: {
823840 /**
824824- * The error code of the failure.
825825- */
826826- error_code?: string;
827827- /**
828828- * The error message of the failure.
841841+ * The payload used to update the user.
829842 */
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?: {
843843+ changes_requested?: {
840844 /**
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`.
845845+ * The role of the user. Is either `owner` or `member`.
846846 */
847847 role?: string;
848848 };
849849 /**
850850- * The ID of the invite.
850850+ * The project ID.
851851 */
852852 id?: string;
853853 };
···10181018 finalizing_at?: number;
10191019 id: string;
10201020 /**
10211021- * The ID of the file containing the outputs of successfully executed requests.
10221022- */
10231023- output_file_id?: string;
10241024- /**
10251021 * The Unix timestamp (in seconds) for when the batch started processing.
10261022 */
10271023 in_progress_at?: number;
10241024+ /**
10251025+ * The ID of the input file for the batch.
10261026+ */
10271027+ input_file_id: string;
10281028 metadata?: Metadata;
10291029 /**
10301030 * The object type, which is always `batch`.
10311031 */
10321032 object: 'batch';
10331033 /**
10341034- * The ID of the input file for the batch.
10341034+ * The ID of the file containing the outputs of successfully executed requests.
10351035 */
10361036- input_file_id: string;
10361036+ output_file_id?: string;
10371037 request_counts?: BatchRequestCounts;
10381038 /**
10391039 * The current status of the batch.
···29102910 */
29112911 model: ModelIdsShared;
29122912 /**
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- *
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.
29182914 */
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- };
29152915+ n?: number;
29342916 parallel_tool_calls?: ParallelToolCalls;
29352917 /**
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.
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.
29412922 *
29422923 */
29432943- stream?: boolean;
29242924+ prediction?: {
29252925+ type?: 'PredictionContent';
29262926+ } & PredictionContent;
29442927 /**
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.
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+ *
29462932 */
29472947- n?: number;
29332933+ presence_penalty?: number;
29482934 reasoning_effort?: ReasoningEffort;
29492935 /**
29502936 * An object specifying the format that the model must output.
···29832969 */
29842970 store?: boolean;
29852971 /**
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.
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.
29892977 *
29902978 */
29912991- presence_penalty?: number;
29792979+ stream?: boolean;
29922980 stream_options?: ChatCompletionStreamOptions;
29932981 tool_choice?: ChatCompletionToolChoiceOption;
29942982 /**
···30062994 } & CustomToolChatCompletions)
30072995 >;
30082996 /**
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- /**
30192997 * An integer between 0 and 20 specifying the number of most likely tokens to
30202998 * return at each token position, each with an associated log probability.
30212999 * `logprobs` must be set to `true` if this parameter is used.
···30233001 */
30243002 top_logprobs?: number;
30253003 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 prompt tokens used.
58285828- */
58295829- prompt_tokens: number;
58305830- /**
58315827 * The number of invocations.
58325828 */
58335829 invocation_count: number;
58345834- /**
58355835- * The total number of tokens used.
58365836- */
58375837- total_tokens: number;
58385830 /**
58395831 * The name of the model.
58405832 */
58415833 model_name: string;
58345834+ /**
58355835+ * The number of prompt tokens used.
58365836+ */
58375837+ prompt_tokens: number;
58385838+ /**
58395839+ * The total number of tokens used.
58405840+ */
58415841+ total_tokens: number;
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- /**
58775873 * Number of output items that failed to pass the evaluation.
58785874 */
58795875 failed: number;
···58815877 * Number of output items that passed the evaluation.
58825878 */
58835879 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- /**
66406636 * The seed used for the fine-tuning job.
66416637 */
66426638 seed: number;
···66516647 | 'failed'
66526648 | 'cancelled';
66536649 /**
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).
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.
66556651 */
66566656- validation_file: string;
66526652+ trained_tokens: number;
66576653 /**
66586654 * 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).
66596655 */
66606656 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- * The type of error.
1015010150- */
1015110151- type?: string;
1015210152- /**
1015310149 * Error code, if any.
1015410150 */
1015510151 code?: string;
1015210152+ /**
1015310153+ * The type of error.
1015410154+ */
1015510155+ type?: string;
1015610156 };
1015710157 /**
1015810158 * The reason the Response did not complete. For a `cancelled` Response,
···1019310193 */
1019410194 input_token_details?: {
1019510195 /**
1019610196+ * The number of audio tokens used in the Response.
1019710197+ */
1019810198+ audio_tokens?: number;
1019910199+ /**
1019610200 * The number of cached tokens used in the Response.
1019710201 */
1019810202 cached_tokens?: number;
···1020010204 * The number of text tokens used in the Response.
1020110205 */
1020210206 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- /**
1022710215 * Details about the output tokens used in the Response.
1022810216 */
1022910217 output_token_details?: {
···1023610224 */
1023710225 text_tokens?: number;
1023810226 };
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',
1300612999 EMPTY_IMAGE_FILE: 'empty_image_file',
1300713007- RATE_LIMIT_EXCEEDED: 'rate_limit_exceeded',
1300813000 FAILED_TO_DOWNLOAD_IMAGE: 'failed_to_download_image',
1300913009- SERVER_ERROR: 'server_error',
1300113001+ IMAGE_CONTENT_POLICY_VIOLATION: 'image_content_policy_violation',
1301013002 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',
1301113006 IMAGE_TOO_SMALL: 'image_too_small',
1301213012- VECTOR_STORE_TIMEOUT: 'vector_store_timeout',
1300713007+ INVALID_BASE64_IMAGE: 'invalid_base64_image',
1300813008+ INVALID_IMAGE: 'invalid_image',
1301313009 INVALID_IMAGE_FORMAT: 'invalid_image_format',
1301413010 INVALID_IMAGE_MODE: 'invalid_image_mode',
1301513011 INVALID_IMAGE_URL: 'invalid_image_url',
1301213012+ INVALID_PROMPT: 'invalid_prompt',
1301313013+ RATE_LIMIT_EXCEEDED: 'rate_limit_exceeded',
1301413014+ SERVER_ERROR: 'server_error',
1301613015 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;
1472214723 sample_parse_error: boolean;
1472314723- unresponsive_reward_error: boolean;
1472414724 truncated_observation_error: boolean;
1472514725- python_grader_server_error_type: string;
1472514725+ unresponsive_reward_error: boolean;
1472614726 };
1472714727 execution_time: number;
1472814728 name: string;
···1480314803 message: string;
1480414804 };
1480514805 /**
1480614806- * The Unix timestamp (in seconds) for when the run was started.
1480614806+ * The maximum number of completion tokens specified to have been used over the course of the run.
1480714807+ *
1480714808 */
1480814808- started_at: number;
1480914809+ max_completion_tokens: number;
1480914810 /**
1481014811 * The maximum number of prompt tokens specified to have been used over the course of the run.
1481114812 *
···1484014841 type: 'submit_tool_outputs';
1484114842 };
1484214843 response_format: AssistantsApiResponseFormatOption;
1484314843- usage: RunCompletionUsage;
1484414844+ /**
1484514845+ * The Unix timestamp (in seconds) for when the run was started.
1484614846+ */
1484714847+ started_at: number;
1484414848 status: RunStatus;
1484514849 /**
1484614850 * The sampling temperature used for this run. If not set, defaults to 1.
1484714851 */
1484814852 temperature?: number;
1484914853 /**
1485014850- * The maximum number of completion tokens specified to have been used over the course of the run.
1485114851- *
1485414854+ * The ID of the [thread](https://platform.openai.com/docs/api-reference/threads) that was executed on as a part of this run.
1485214855 */
1485314853- max_completion_tokens: number;
1485614856+ thread_id: string;
1485414857 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;
1486014858 /**
1486114859 * The list of tools that the [assistant](https://platform.openai.com/docs/api-reference/assistants) used for this run.
1486214860 */
1486314861 tools: Array<AssistantTool>;
1486414862 /**
1486514865- * The ID of the [thread](https://platform.openai.com/docs/api-reference/threads) that was executed on as a part of this run.
1486314863+ * The nucleus sampling value used for this run. If not set, defaults to 1.
1486614864 */
1486714867- thread_id: string;
1486514865+ top_p?: number;
1486614866+ truncation_strategy: TruncationObject & unknown;
1486714867+ usage: RunCompletionUsage;
1486814868};
14869148691487014870/**
···1535315353 type?: 'RunStepDetailsToolCallsObject';
1535415354 } & RunStepDetailsToolCallsObject);
1535515355 /**
1535615356- * The type of run step, which can be either `message_creation` or `tool_calls`.
1535715357- */
1535815358- type: 'message_creation' | 'tool_calls';
1535915359- /**
1536015356 * The ID of the [thread](https://platform.openai.com/docs/api-reference/threads) that was run.
1536115357 */
1536215358 thread_id: string;
1535915359+ /**
1536015360+ * The type of run step, which can be either `message_creation` or `tool_calls`.
1536115361+ */
1536215362+ type: 'message_creation' | 'tool_calls';
1536315363 usage: RunStepCompletionUsage;
1536415364};
1536515365···1839118391 } & MessageDeltaContentImageUrlObject);
18392183921839318393export 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',
1839718397- GPT_4_1_MINI: 'gpt-4.1-mini',
1839818398- GPT_5_2025_08_07: 'gpt-5-2025-08-07',
1839918399- GPT_4_1_MINI_2025_04_14: 'gpt-4.1-mini-2025-04-14',
1840018400- GPT_5_CHAT_LATEST: 'gpt-5-chat-latest',
1840118401- GPT_4_1_NANO: 'gpt-4.1-nano',
1840218402- GPT_5_MINI: 'gpt-5-mini',
1840318403- GPT_4_1_NANO_2025_04_14: 'gpt-4.1-nano-2025-04-14',
1840418404- GPT_5_MINI_2025_08_07: 'gpt-5-mini-2025-08-07',
1840518405- GPT_5_NANO: 'gpt-5-nano',
1840618406- GPT_5_NANO_2025_08_07: 'gpt-5-nano-2025-08-07',
1840718407- O1: 'o1',
1840818408- O1_2024_12_17: 'o1-2024-12-17',
1840918394 GPT_4O: 'gpt-4o',
1841018410- O1_MINI: 'o1-mini',
1839518395+ GPT_4O_2024_05_13: 'gpt-4o-2024-05-13',
1841118396 GPT_4O_2024_08_06: 'gpt-4o-2024-08-06',
1841218412- O3: 'o3',
1841318413- GPT_4O_2024_05_13: 'gpt-4o-2024-05-13',
1841418414- O3_2025_04_16: 'o3-2025-04-16',
1841518397 GPT_4O_2024_11_20: 'gpt-4o-2024-11-20',
1841618416- O4_MINI: 'o4-mini',
1841718398 GPT_4O_AUDIO_PREVIEW: 'gpt-4o-audio-preview',
1841818418- O4_MINI_2025_04_16: 'o4-mini-2025-04-16',
1841918399 GPT_4O_AUDIO_PREVIEW_2024_10_01: 'gpt-4o-audio-preview-2024-10-01',
1842018420- O3_MINI: 'o3-mini',
1840018400+ GPT_4_1: 'gpt-4.1',
1842118401 GPT_4O_AUDIO_PREVIEW_2024_12_17: 'gpt-4o-audio-preview-2024-12-17',
1842218422- O3_MINI_2025_01_31: 'o3-mini-2025-01-31',
1840218402+ GPT_4_1_2025_04_14: 'gpt-4.1-2025-04-14',
1842318403 GPT_4O_AUDIO_PREVIEW_2025_06_03: 'gpt-4o-audio-preview-2025-06-03',
1842418424- O1_PREVIEW: 'o1-preview',
1840418404+ GPT_4_1_MINI: 'gpt-4.1-mini',
1842518405 CHATGPT_4O_LATEST: 'chatgpt-4o-latest',
1842618426- O1_PREVIEW_2024_09_12: 'o1-preview-2024-09-12',
1840618406+ GPT_4_1_MINI_2025_04_14: 'gpt-4.1-mini-2025-04-14',
1842718407 CODEX_MINI_LATEST: 'codex-mini-latest',
1842818428- O1_MINI_2024_09_12: 'o1-mini-2024-09-12',
1840818408+ GPT_4_1_NANO: 'gpt-4.1-nano',
1842918409 GPT_4O_MINI: 'gpt-4o-mini',
1841018410+ GPT_4_1_NANO_2025_04_14: 'gpt-4.1-nano-2025-04-14',
1843018411 GPT_4O_MINI_2024_07_18: 'gpt-4o-mini-2024-07-18',
1841218412+ GPT_5: 'gpt-5',
1841318413+ GPT_4: 'gpt-4',
1841418414+ GPT_5_2025_08_07: 'gpt-5-2025-08-07',
1843118415 GPT_4O_MINI_AUDIO_PREVIEW: 'gpt-4o-mini-audio-preview',
1841618416+ GPT_5_CHAT_LATEST: 'gpt-5-chat-latest',
1843218417 GPT_4O_MINI_AUDIO_PREVIEW_2024_12_17: 'gpt-4o-mini-audio-preview-2024-12-17',
1843318433- GPT_4: 'gpt-4',
1841818418+ GPT_5_MINI: 'gpt-5-mini',
1841918419+ GPT_3_5_TURBO: 'gpt-3.5-turbo',
1842018420+ GPT_5_MINI_2025_08_07: 'gpt-5-mini-2025-08-07',
1842118421+ GPT_3_5_TURBO_0301: 'gpt-3.5-turbo-0301',
1842218422+ GPT_5_NANO: 'gpt-5-nano',
1842318423+ GPT_3_5_TURBO_0613: 'gpt-3.5-turbo-0613',
1842418424+ GPT_5_NANO_2025_08_07: 'gpt-5-nano-2025-08-07',
1842518425+ GPT_3_5_TURBO_0125: 'gpt-3.5-turbo-0125',
1842618426+ O1: 'o1',
1842718427+ GPT_3_5_TURBO_1106: 'gpt-3.5-turbo-1106',
1842818428+ O1_2024_12_17: 'o1-2024-12-17',
1842918429+ GPT_3_5_TURBO_16K: 'gpt-3.5-turbo-16k',
1843018430+ O1_MINI: 'o1-mini',
1843118431+ GPT_3_5_TURBO_16K_0613: 'gpt-3.5-turbo-16k-0613',
1843218432+ O3: 'o3',
1843418433 GPT_4O_MINI_SEARCH_PREVIEW: 'gpt-4o-mini-search-preview',
1843418434+ O3_2025_04_16: 'o3-2025-04-16',
1843518435 GPT_4O_MINI_SEARCH_PREVIEW_2025_03_11:
1843618436 'gpt-4o-mini-search-preview-2025-03-11',
1843718437+ O4_MINI: 'o4-mini',
1843718438 GPT_4O_SEARCH_PREVIEW: 'gpt-4o-search-preview',
1843918439+ O4_MINI_2025_04_16: 'o4-mini-2025-04-16',
1843818440 GPT_4O_SEARCH_PREVIEW_2025_03_11: 'gpt-4o-search-preview-2025-03-11',
1844118441+ O3_MINI: 'o3-mini',
1843918442 GPT_4_0125_PREVIEW: 'gpt-4-0125-preview',
1844018440- GPT_3_5_TURBO: 'gpt-3.5-turbo',
1844318443+ O3_MINI_2025_01_31: 'o3-mini-2025-01-31',
1844118444 GPT_4_0314: 'gpt-4-0314',
1844218442- GPT_3_5_TURBO_0301: 'gpt-3.5-turbo-0301',
1844518445+ O1_PREVIEW: 'o1-preview',
1844318446 GPT_4_0613: 'gpt-4-0613',
1844418444- GPT_3_5_TURBO_0613: 'gpt-3.5-turbo-0613',
1844718447+ O1_PREVIEW_2024_09_12: 'o1-preview-2024-09-12',
1844518448 GPT_4_1106_PREVIEW: 'gpt-4-1106-preview',
1844618446- GPT_3_5_TURBO_0125: 'gpt-3.5-turbo-0125',
1844918449+ O1_MINI_2024_09_12: 'o1-mini-2024-09-12',
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',
1844718453 GPT_4_TURBO: 'gpt-4-turbo',
1844818448- GPT_3_5_TURBO_1106: 'gpt-3.5-turbo-1106',
1844918454 GPT_4_TURBO_2024_04_09: 'gpt-4-turbo-2024-04-09',
1845018450- GPT_3_5_TURBO_16K: 'gpt-3.5-turbo-16k',
1845118455 GPT_4_TURBO_PREVIEW: 'gpt-4-turbo-preview',
1845218452- GPT_3_5_TURBO_16K_0613: 'gpt-3.5-turbo-16k-0613',
1845318456 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];