fork of hey-api/openapi-ts because I need some additional things
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Changes before error encountered

Co-authored-by: mrlubos <12529395+mrlubos@users.noreply.github.com>

+288 -288
+288 -288
examples/openapi-ts-openai/src/client/types.gen.ts
··· 215 215 } & ErrorEvent); 216 216 217 217 export const AssistantSupportedModels = { 218 - GPT_4O: 'gpt-4o', 219 - GPT_4O_2024_05_13: 'gpt-4o-2024-05-13', 220 - GPT_4O_2024_08_06: 'gpt-4o-2024-08-06', 221 - GPT_4O_2024_11_20: 'gpt-4o-2024-11-20', 222 218 GPT_4_1: 'gpt-4.1', 223 - GPT_4O_MINI: 'gpt-4o-mini', 224 219 GPT_4_1_2025_04_14: 'gpt-4.1-2025-04-14', 225 - GPT_4O_MINI_2024_07_18: 'gpt-4o-mini-2024-07-18', 226 220 GPT_4_1_MINI: 'gpt-4.1-mini', 227 - GPT_4_0125_PREVIEW: 'gpt-4-0125-preview', 228 221 GPT_4_1_MINI_2025_04_14: 'gpt-4.1-mini-2025-04-14', 229 - GPT_4: 'gpt-4', 222 + GPT_5: 'gpt-5', 230 223 GPT_4_1_NANO: 'gpt-4.1-nano', 231 - GPT_4_0314: 'gpt-4-0314', 232 - GPT_5: 'gpt-5', 233 - GPT_4_0613: 'gpt-4-0613', 234 224 GPT_5_2025_08_07: 'gpt-5-2025-08-07', 235 - GPT_3_5_TURBO: 'gpt-3.5-turbo', 225 + GPT_4O: 'gpt-4o', 236 226 GPT_5_MINI: 'gpt-5-mini', 237 - GPT_3_5_TURBO_0613: 'gpt-3.5-turbo-0613', 227 + GPT_4O_2024_08_06: 'gpt-4o-2024-08-06', 238 228 GPT_5_MINI_2025_08_07: 'gpt-5-mini-2025-08-07', 239 - GPT_3_5_TURBO_0125: 'gpt-3.5-turbo-0125', 229 + GPT_4O_2024_05_13: 'gpt-4o-2024-05-13', 240 230 GPT_5_NANO: 'gpt-5-nano', 241 - GPT_3_5_TURBO_1106: 'gpt-3.5-turbo-1106', 242 - GPT_3_5_TURBO_16K: 'gpt-3.5-turbo-16k', 231 + GPT_4O_2024_11_20: 'gpt-4o-2024-11-20', 232 + GPT_4O_MINI: 'gpt-4o-mini', 243 233 GPT_5_NANO_2025_08_07: 'gpt-5-nano-2025-08-07', 244 - GPT_3_5_TURBO_16K_0613: 'gpt-3.5-turbo-16k-0613', 234 + GPT_4O_MINI_2024_07_18: 'gpt-4o-mini-2024-07-18', 245 235 GPT_4_1_NANO_2025_04_14: 'gpt-4.1-nano-2025-04-14', 246 - GPT_4_1106_PREVIEW: 'gpt-4-1106-preview', 236 + GPT_4_0125_PREVIEW: 'gpt-4-0125-preview', 247 237 O1: 'o1', 248 - GPT_4_32K: 'gpt-4-32k', 238 + GPT_4: 'gpt-4', 249 239 O3_MINI: 'o3-mini', 250 - GPT_4_32K_0314: 'gpt-4-32k-0314', 240 + GPT_4_0314: 'gpt-4-0314', 251 241 O3_MINI_2025_01_31: 'o3-mini-2025-01-31', 252 - GPT_4_32K_0613: 'gpt-4-32k-0613', 242 + GPT_4_0613: 'gpt-4-0613', 253 243 O1_2024_12_17: 'o1-2024-12-17', 244 + GPT_3_5_TURBO: 'gpt-3.5-turbo', 245 + GPT_4_1106_PREVIEW: 'gpt-4-1106-preview', 246 + GPT_3_5_TURBO_0613: 'gpt-3.5-turbo-0613', 254 247 GPT_4_5_PREVIEW: 'gpt-4.5-preview', 248 + GPT_3_5_TURBO_0125: 'gpt-3.5-turbo-0125', 255 249 GPT_4_5_PREVIEW_2025_02_27: 'gpt-4.5-preview-2025-02-27', 250 + GPT_3_5_TURBO_1106: 'gpt-3.5-turbo-1106', 256 251 GPT_4_TURBO: 'gpt-4-turbo', 252 + GPT_3_5_TURBO_16K: 'gpt-3.5-turbo-16k', 257 253 GPT_4_TURBO_2024_04_09: 'gpt-4-turbo-2024-04-09', 254 + GPT_3_5_TURBO_16K_0613: 'gpt-3.5-turbo-16k-0613', 258 255 GPT_4_TURBO_PREVIEW: 'gpt-4-turbo-preview', 256 + GPT_4_32K: 'gpt-4-32k', 259 257 GPT_4_VISION_PREVIEW: 'gpt-4-vision-preview', 258 + GPT_4_32K_0314: 'gpt-4-32k-0314', 259 + GPT_4_32K_0613: 'gpt-4-32k-0613', 260 260 } as const; 261 261 262 262 export type AssistantSupportedModels = ··· 540 540 */ 541 541 effective_at: number; 542 542 /** 543 - * The ID of this log. 544 - */ 545 - id: string; 546 - /** 547 - * The details for events with this `type`. 548 - */ 549 - 'invite.accepted'?: { 550 - /** 551 - * The ID of the invite. 552 - */ 553 - id?: string; 554 - }; 555 - /** 556 543 * The details for events with this `type`. 557 544 */ 558 545 'invite.deleted'?: { ··· 564 551 /** 565 552 * The details for events with this `type`. 566 553 */ 567 - 'invite.sent'?: { 568 - /** 569 - * The payload used to create the invite. 570 - */ 571 - data?: { 572 - /** 573 - * The email invited to the organization. 574 - */ 575 - email?: string; 576 - /** 577 - * The role the email was invited to be. Is either `owner` or `member`. 578 - */ 579 - role?: string; 580 - }; 554 + 'invite.accepted'?: { 581 555 /** 582 556 * The ID of the invite. 583 557 */ ··· 586 560 /** 587 561 * The details for events with this `type`. 588 562 */ 589 - 'login.failed'?: { 590 - /** 591 - * The error code of the failure. 592 - */ 593 - error_code?: string; 594 - /** 595 - * The error message of the failure. 596 - */ 597 - error_message?: string; 598 - }; 599 - /** 600 - * The details for events with this `type`. 601 - */ 602 563 'logout.failed'?: { 603 564 /** 604 565 * The error code of the failure. ··· 618 579 */ 619 580 changes_requested?: { 620 581 /** 621 - * How your organization logs data from supported API calls. One of `disabled`, `enabled_per_call`, `enabled_for_all_projects`, or `enabled_for_selected_projects` 622 - */ 623 - api_call_logging?: string; 624 - /** 625 - * The list of project ids if api_call_logging is set to `enabled_for_selected_projects` 582 + * The organization title. 626 583 */ 627 - api_call_logging_project_ids?: string; 584 + title?: string; 628 585 /** 629 586 * The organization description. 630 587 */ ··· 638 595 */ 639 596 threads_ui_visibility?: string; 640 597 /** 641 - * The organization title. 642 - */ 643 - title?: string; 644 - /** 645 598 * Visibility of the usage dashboard which shows activity and costs for your organization. One of `ANY_ROLE` or `OWNERS`. 646 599 */ 647 600 usage_dashboard_visibility?: string; 601 + /** 602 + * How your organization logs data from supported API calls. One of `disabled`, `enabled_per_call`, `enabled_for_all_projects`, or `enabled_for_selected_projects` 603 + */ 604 + api_call_logging?: string; 605 + /** 606 + * The list of project ids if api_call_logging is set to `enabled_for_selected_projects` 607 + */ 608 + api_call_logging_project_ids?: string; 648 609 }; 649 610 /** 650 611 * The organization ID. 651 - */ 652 - id?: string; 653 - }; 654 - /** 655 - * 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. 656 - */ 657 - project?: { 658 - /** 659 - * The project ID. 660 - */ 661 - id?: string; 662 - /** 663 - * The project title. 664 - */ 665 - name?: string; 666 - }; 667 - /** 668 - * The details for events with this `type`. 669 - */ 670 - 'project.archived'?: { 671 - /** 672 - * The project ID. 673 612 */ 674 613 id?: string; 675 614 }; ··· 725 664 /** 726 665 * The details for events with this `type`. 727 666 */ 728 - 'user.added'?: { 667 + 'rate_limit.updated'?: { 729 668 /** 730 - * The user ID. 669 + * The rate limit ID 731 670 */ 732 671 id?: string; 733 672 /** 734 - * The payload used to add the user to the project. 673 + * The payload used to update the rate limits. 735 674 */ 736 - data?: { 675 + changes_requested?: { 676 + /** 677 + * The maximum requests per minute. 678 + */ 679 + max_requests_per_1_minute?: number; 680 + /** 681 + * The maximum tokens per minute. 682 + */ 683 + max_tokens_per_1_minute?: number; 737 684 /** 738 - * The role of the user. Is either `owner` or `member`. 685 + * The maximum images per minute. Only relevant for certain models. 739 686 */ 740 - role?: string; 687 + max_images_per_1_minute?: number; 688 + /** 689 + * The maximum audio megabytes per minute. Only relevant for certain models. 690 + */ 691 + max_audio_megabytes_per_1_minute?: number; 692 + /** 693 + * The maximum requests per day. Only relevant for certain models. 694 + */ 695 + max_requests_per_1_day?: number; 696 + /** 697 + * The maximum batch input tokens per day. Only relevant for certain models. 698 + */ 699 + batch_1_day_max_input_tokens?: number; 741 700 }; 742 701 }; 743 702 /** 744 703 * The details for events with this `type`. 745 704 */ 746 - 'user.updated'?: { 705 + 'project.archived'?: { 747 706 /** 748 707 * The project ID. 749 708 */ 750 709 id?: string; 710 + }; 711 + /** 712 + * The details for events with this `type`. 713 + */ 714 + 'service_account.created'?: { 751 715 /** 752 - * The payload used to update the user. 716 + * The payload used to create the service account. 753 717 */ 754 - changes_requested?: { 718 + data?: { 755 719 /** 756 - * The role of the user. Is either `owner` or `member`. 720 + * The role of the service account. Is either `owner` or `member`. 757 721 */ 758 722 role?: string; 759 723 }; 760 - }; 761 - /** 762 - * The details for events with this `type`. 763 - */ 764 - 'service_account.deleted'?: { 765 724 /** 766 725 * The service account ID. 767 726 */ ··· 788 747 /** 789 748 * The details for events with this `type`. 790 749 */ 791 - 'rate_limit.updated'?: { 750 + 'user.deleted'?: { 792 751 /** 793 - * The payload used to update the rate limits. 752 + * The user ID. 794 753 */ 795 - changes_requested?: { 796 - /** 797 - * The maximum requests per minute. 798 - */ 799 - max_requests_per_1_minute?: number; 800 - /** 801 - * The maximum tokens per minute. 802 - */ 803 - max_tokens_per_1_minute?: number; 804 - /** 805 - * The maximum images per minute. Only relevant for certain models. 806 - */ 807 - max_images_per_1_minute?: number; 808 - /** 809 - * The maximum audio megabytes per minute. Only relevant for certain models. 810 - */ 811 - max_audio_megabytes_per_1_minute?: number; 812 - /** 813 - * The maximum requests per day. Only relevant for certain models. 814 - */ 815 - max_requests_per_1_day?: number; 816 - /** 817 - * The maximum batch input tokens per day. Only relevant for certain models. 818 - */ 819 - batch_1_day_max_input_tokens?: number; 820 - }; 754 + id?: string; 755 + }; 756 + /** 757 + * The details for events with this `type`. 758 + */ 759 + 'user.added'?: { 821 760 /** 822 - * The rate limit ID 761 + * The user ID. 823 762 */ 824 763 id?: string; 764 + /** 765 + * The payload used to add the user to the project. 766 + */ 767 + data?: { 768 + /** 769 + * The role of the user. Is either `owner` or `member`. 770 + */ 771 + role?: string; 772 + }; 825 773 }; 826 - type: AuditLogEventType; 827 774 /** 828 775 * The details for events with this `type`. 829 776 */ 830 - 'service_account.created'?: { 777 + 'user.updated'?: { 831 778 /** 832 - * The payload used to create the service account. 779 + * The project ID. 780 + */ 781 + id?: string; 782 + /** 783 + * The payload used to update the user. 833 784 */ 834 - data?: { 785 + changes_requested?: { 835 786 /** 836 - * The role of the service account. Is either `owner` or `member`. 787 + * The role of the user. Is either `owner` or `member`. 837 788 */ 838 789 role?: string; 839 790 }; 791 + }; 792 + /** 793 + * The details for events with this `type`. 794 + */ 795 + 'service_account.deleted'?: { 840 796 /** 841 797 * The service account ID. 842 798 */ 843 799 id?: string; 844 800 }; 845 801 /** 802 + * The ID of this log. 803 + */ 804 + id: string; 805 + /** 806 + * 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. 807 + */ 808 + project?: { 809 + /** 810 + * The project ID. 811 + */ 812 + id?: string; 813 + /** 814 + * The project title. 815 + */ 816 + name?: string; 817 + }; 818 + type: AuditLogEventType; 819 + /** 846 820 * The details for events with this `type`. 847 821 */ 848 - 'user.deleted'?: { 822 + 'login.failed'?: { 849 823 /** 850 - * The user ID. 824 + * The error code of the failure. 825 + */ 826 + error_code?: string; 827 + /** 828 + * The error message of the failure. 829 + */ 830 + error_message?: string; 831 + }; 832 + /** 833 + * The details for events with this `type`. 834 + */ 835 + 'invite.sent'?: { 836 + /** 837 + * The payload used to create the invite. 838 + */ 839 + data?: { 840 + /** 841 + * The email invited to the organization. 842 + */ 843 + email?: string; 844 + /** 845 + * The role the email was invited to be. Is either `owner` or `member`. 846 + */ 847 + role?: string; 848 + }; 849 + /** 850 + * The ID of the invite. 851 851 */ 852 852 id?: string; 853 853 }; ··· 1018 1018 finalizing_at?: number; 1019 1019 id: string; 1020 1020 /** 1021 - * The Unix timestamp (in seconds) for when the batch started processing. 1021 + * The ID of the file containing the outputs of successfully executed requests. 1022 1022 */ 1023 - in_progress_at?: number; 1023 + output_file_id?: string; 1024 1024 /** 1025 - * The ID of the input file for the batch. 1025 + * The Unix timestamp (in seconds) for when the batch started processing. 1026 1026 */ 1027 - input_file_id: string; 1027 + in_progress_at?: number; 1028 1028 metadata?: Metadata; 1029 1029 /** 1030 1030 * The object type, which is always `batch`. 1031 1031 */ 1032 1032 object: 'batch'; 1033 1033 /** 1034 - * The ID of the file containing the outputs of successfully executed requests. 1034 + * The ID of the input file for the batch. 1035 1035 */ 1036 - output_file_id?: string; 1036 + input_file_id: string; 1037 1037 request_counts?: BatchRequestCounts; 1038 1038 /** 1039 1039 * The current status of the batch. ··· 2910 2910 */ 2911 2911 model: ModelIdsShared; 2912 2912 /** 2913 - * 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. 2913 + * Web search 2914 + * 2915 + * This tool searches the web for relevant results to use in a response. 2916 + * Learn more about the [web search tool](https://platform.openai.com/docs/guides/tools-web-search?api-mode=chat). 2917 + * 2914 2918 */ 2915 - n?: number; 2919 + web_search_options?: { 2920 + /** 2921 + * Approximate location parameters for the search. 2922 + * 2923 + */ 2924 + user_location?: { 2925 + /** 2926 + * The type of location approximation. Always `approximate`. 2927 + * 2928 + */ 2929 + type: 'approximate'; 2930 + approximate: WebSearchLocation; 2931 + }; 2932 + search_context_size?: WebSearchContextSize; 2933 + }; 2916 2934 parallel_tool_calls?: ParallelToolCalls; 2917 2935 /** 2918 - * Configuration for a [Predicted Output](https://platform.openai.com/docs/guides/predicted-outputs), 2919 - * which can greatly improve response times when large parts of the model 2920 - * response are known ahead of time. This is most common when you are 2921 - * regenerating a file with only minor changes to most of the content. 2936 + * If set to true, the model response data will be streamed to the client 2937 + * 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). 2938 + * See the [Streaming section below](https://platform.openai.com/docs/api-reference/chat/streaming) 2939 + * for more information, along with the [streaming responses](https://platform.openai.com/docs/guides/streaming-responses) 2940 + * guide for more information on how to handle the streaming events. 2922 2941 * 2923 2942 */ 2924 - prediction?: { 2925 - type?: 'PredictionContent'; 2926 - } & PredictionContent; 2943 + stream?: boolean; 2927 2944 /** 2928 - * Number between -2.0 and 2.0. Positive values penalize new tokens based on 2929 - * whether they appear in the text so far, increasing the model's likelihood 2930 - * to talk about new topics. 2931 - * 2945 + * 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. 2932 2946 */ 2933 - presence_penalty?: number; 2947 + n?: number; 2934 2948 reasoning_effort?: ReasoningEffort; 2935 2949 /** 2936 2950 * An object specifying the format that the model must output. ··· 2969 2983 */ 2970 2984 store?: boolean; 2971 2985 /** 2972 - * If set to true, the model response data will be streamed to the client 2973 - * 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). 2974 - * See the [Streaming section below](https://platform.openai.com/docs/api-reference/chat/streaming) 2975 - * for more information, along with the [streaming responses](https://platform.openai.com/docs/guides/streaming-responses) 2976 - * guide for more information on how to handle the streaming events. 2986 + * Number between -2.0 and 2.0. Positive values penalize new tokens based on 2987 + * whether they appear in the text so far, increasing the model's likelihood 2988 + * to talk about new topics. 2977 2989 * 2978 2990 */ 2979 - stream?: boolean; 2991 + presence_penalty?: number; 2980 2992 stream_options?: ChatCompletionStreamOptions; 2981 2993 tool_choice?: ChatCompletionToolChoiceOption; 2982 2994 /** ··· 2994 3006 } & CustomToolChatCompletions) 2995 3007 >; 2996 3008 /** 3009 + * Configuration for a [Predicted Output](https://platform.openai.com/docs/guides/predicted-outputs), 3010 + * which can greatly improve response times when large parts of the model 3011 + * response are known ahead of time. This is most common when you are 3012 + * regenerating a file with only minor changes to most of the content. 3013 + * 3014 + */ 3015 + prediction?: { 3016 + type?: 'PredictionContent'; 3017 + } & PredictionContent; 3018 + /** 2997 3019 * An integer between 0 and 20 specifying the number of most likely tokens to 2998 3020 * return at each token position, each with an associated log probability. 2999 3021 * `logprobs` must be set to `true` if this parameter is used. ··· 3001 3023 */ 3002 3024 top_logprobs?: number; 3003 3025 verbosity?: Verbosity; 3004 - /** 3005 - * Web search 3006 - * 3007 - * This tool searches the web for relevant results to use in a response. 3008 - * Learn more about the [web search tool](https://platform.openai.com/docs/guides/tools-web-search?api-mode=chat). 3009 - * 3010 - */ 3011 - web_search_options?: { 3012 - search_context_size?: WebSearchContextSize; 3013 - /** 3014 - * Approximate location parameters for the search. 3015 - * 3016 - */ 3017 - user_location?: { 3018 - approximate: WebSearchLocation; 3019 - /** 3020 - * The type of location approximation. Always `approximate`. 3021 - * 3022 - */ 3023 - type: 'approximate'; 3024 - }; 3025 - }; 3026 3026 }; 3027 3027 3028 3028 /** ··· 5824 5824 */ 5825 5825 completion_tokens: number; 5826 5826 /** 5827 - * The number of invocations. 5828 - */ 5829 - invocation_count: number; 5830 - /** 5831 - * The name of the model. 5832 - */ 5833 - model_name: string; 5834 - /** 5835 5827 * The number of prompt tokens used. 5836 5828 */ 5837 5829 prompt_tokens: number; 5830 + /** 5831 + * The number of invocations. 5832 + */ 5833 + invocation_count: number; 5838 5834 /** 5839 5835 * The total number of tokens used. 5840 5836 */ 5841 5837 total_tokens: number; 5838 + /** 5839 + * The name of the model. 5840 + */ 5841 + model_name: string; 5842 5842 }>; 5843 5843 /** 5844 5844 * Results per testing criteria applied during the evaluation run. ··· 5870 5870 */ 5871 5871 errored: number; 5872 5872 /** 5873 + * Total number of executed output items. 5874 + */ 5875 + total: number; 5876 + /** 5873 5877 * Number of output items that failed to pass the evaluation. 5874 5878 */ 5875 5879 failed: number; ··· 5877 5881 * Number of output items that passed the evaluation. 5878 5882 */ 5879 5883 passed: number; 5880 - /** 5881 - * Total number of executed output items. 5882 - */ 5883 - total: number; 5884 5884 }; 5885 5885 /** 5886 5886 * The status of the evaluation run. ··· 6633 6633 */ 6634 6634 result_files: Array<string>; 6635 6635 /** 6636 + * 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. 6637 + */ 6638 + trained_tokens: number; 6639 + /** 6636 6640 * The seed used for the fine-tuning job. 6637 6641 */ 6638 6642 seed: number; ··· 6647 6651 | 'failed' 6648 6652 | 'cancelled'; 6649 6653 /** 6650 - * 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. 6654 + * 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). 6651 6655 */ 6652 - trained_tokens: number; 6656 + validation_file: string; 6653 6657 /** 6654 6658 * 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). 6655 6659 */ 6656 6660 training_file: string; 6657 - /** 6658 - * 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). 6659 - */ 6660 - validation_file: string; 6661 6661 }; 6662 6662 6663 6663 /** ··· 10146 10146 */ 10147 10147 error?: { 10148 10148 /** 10149 - * Error code, if any. 10150 - */ 10151 - code?: string; 10152 - /** 10153 10149 * The type of error. 10154 10150 */ 10155 10151 type?: string; 10152 + /** 10153 + * Error code, if any. 10154 + */ 10155 + code?: string; 10156 10156 }; 10157 10157 /** 10158 10158 * The reason the Response did not complete. For a `cancelled` Response, ··· 10192 10192 * Details about the input tokens used in the Response. 10193 10193 */ 10194 10194 input_token_details?: { 10195 - /** 10196 - * The number of audio tokens used in the Response. 10197 - */ 10198 - audio_tokens?: number; 10199 10195 /** 10200 10196 * The number of cached tokens used in the Response. 10201 10197 */ ··· 10204 10200 * The number of text tokens used in the Response. 10205 10201 */ 10206 10202 text_tokens?: number; 10203 + /** 10204 + * The number of audio tokens used in the Response. 10205 + */ 10206 + audio_tokens?: number; 10207 10207 }; 10208 10208 /** 10209 10209 * The number of input tokens used in the Response, including text and ··· 10212 10212 */ 10213 10213 input_tokens?: number; 10214 10214 /** 10215 + * The number of output tokens sent in the Response, including text and 10216 + * audio tokens. 10217 + * 10218 + */ 10219 + output_tokens?: number; 10220 + /** 10221 + * The total number of tokens in the Response including input and output 10222 + * text and audio tokens. 10223 + * 10224 + */ 10225 + total_tokens?: number; 10226 + /** 10215 10227 * Details about the output tokens used in the Response. 10216 10228 */ 10217 10229 output_token_details?: { ··· 10224 10236 */ 10225 10237 text_tokens?: number; 10226 10238 }; 10227 - /** 10228 - * The number of output tokens sent in the Response, including text and 10229 - * audio tokens. 10230 - * 10231 - */ 10232 - output_tokens?: number; 10233 - /** 10234 - * The total number of tokens in the Response including input and output 10235 - * text and audio tokens. 10236 - * 10237 - */ 10238 - total_tokens?: number; 10239 10239 }; 10240 10240 /** 10241 10241 * The voice the model used to respond. ··· 12996 12996 * 12997 12997 */ 12998 12998 export const ResponseErrorCode = { 12999 + IMAGE_TOO_LARGE: 'image_too_large', 13000 + IMAGE_PARSE_ERROR: 'image_parse_error', 13001 + INVALID_BASE64_IMAGE: 'invalid_base64_image', 13002 + IMAGE_CONTENT_POLICY_VIOLATION: 'image_content_policy_violation', 13003 + INVALID_IMAGE: 'invalid_image', 13004 + IMAGE_FILE_TOO_LARGE: 'image_file_too_large', 13005 + INVALID_PROMPT: 'invalid_prompt', 12999 13006 EMPTY_IMAGE_FILE: 'empty_image_file', 13007 + RATE_LIMIT_EXCEEDED: 'rate_limit_exceeded', 13000 13008 FAILED_TO_DOWNLOAD_IMAGE: 'failed_to_download_image', 13001 - IMAGE_CONTENT_POLICY_VIOLATION: 'image_content_policy_violation', 13009 + SERVER_ERROR: 'server_error', 13002 13010 IMAGE_FILE_NOT_FOUND: 'image_file_not_found', 13003 - IMAGE_FILE_TOO_LARGE: 'image_file_too_large', 13004 - IMAGE_PARSE_ERROR: 'image_parse_error', 13005 - IMAGE_TOO_LARGE: 'image_too_large', 13006 13011 IMAGE_TOO_SMALL: 'image_too_small', 13007 - INVALID_BASE64_IMAGE: 'invalid_base64_image', 13008 - INVALID_IMAGE: 'invalid_image', 13012 + VECTOR_STORE_TIMEOUT: 'vector_store_timeout', 13009 13013 INVALID_IMAGE_FORMAT: 'invalid_image_format', 13010 13014 INVALID_IMAGE_MODE: 'invalid_image_mode', 13011 13015 INVALID_IMAGE_URL: 'invalid_image_url', 13012 - INVALID_PROMPT: 'invalid_prompt', 13013 - RATE_LIMIT_EXCEEDED: 'rate_limit_exceeded', 13014 - SERVER_ERROR: 'server_error', 13015 13016 UNSUPPORTED_IMAGE_MEDIA_TYPE: 'unsupported_image_media_type', 13016 - VECTOR_STORE_TIMEOUT: 'vector_store_timeout', 13017 13017 } as const; 13018 13018 13019 13019 /** ··· 14719 14719 python_grader_runtime_error: boolean; 14720 14720 python_grader_runtime_error_details: string; 14721 14721 python_grader_server_error: boolean; 14722 - python_grader_server_error_type: string; 14723 14722 sample_parse_error: boolean; 14724 - truncated_observation_error: boolean; 14725 14723 unresponsive_reward_error: boolean; 14724 + truncated_observation_error: boolean; 14725 + python_grader_server_error_type: string; 14726 14726 }; 14727 14727 execution_time: number; 14728 14728 name: string; ··· 14803 14803 message: string; 14804 14804 }; 14805 14805 /** 14806 - * The maximum number of completion tokens specified to have been used over the course of the run. 14807 - * 14806 + * The Unix timestamp (in seconds) for when the run was started. 14808 14807 */ 14809 - max_completion_tokens: number; 14808 + started_at: number; 14810 14809 /** 14811 14810 * The maximum number of prompt tokens specified to have been used over the course of the run. 14812 14811 * ··· 14841 14840 type: 'submit_tool_outputs'; 14842 14841 }; 14843 14842 response_format: AssistantsApiResponseFormatOption; 14844 - /** 14845 - * The Unix timestamp (in seconds) for when the run was started. 14846 - */ 14847 - started_at: number; 14843 + usage: RunCompletionUsage; 14848 14844 status: RunStatus; 14849 14845 /** 14850 14846 * The sampling temperature used for this run. If not set, defaults to 1. 14851 14847 */ 14852 14848 temperature?: number; 14853 14849 /** 14854 - * The ID of the [thread](https://platform.openai.com/docs/api-reference/threads) that was executed on as a part of this run. 14850 + * The maximum number of completion tokens specified to have been used over the course of the run. 14851 + * 14855 14852 */ 14856 - thread_id: string; 14853 + max_completion_tokens: number; 14857 14854 tool_choice: AssistantsApiToolChoiceOption & unknown; 14855 + truncation_strategy: TruncationObject & unknown; 14856 + /** 14857 + * The nucleus sampling value used for this run. If not set, defaults to 1. 14858 + */ 14859 + top_p?: number; 14858 14860 /** 14859 14861 * The list of tools that the [assistant](https://platform.openai.com/docs/api-reference/assistants) used for this run. 14860 14862 */ 14861 14863 tools: Array<AssistantTool>; 14862 14864 /** 14863 - * The nucleus sampling value used for this run. If not set, defaults to 1. 14865 + * The ID of the [thread](https://platform.openai.com/docs/api-reference/threads) that was executed on as a part of this run. 14864 14866 */ 14865 - top_p?: number; 14866 - truncation_strategy: TruncationObject & unknown; 14867 - usage: RunCompletionUsage; 14867 + thread_id: string; 14868 14868 }; 14869 14869 14870 14870 /** ··· 15353 15353 type?: 'RunStepDetailsToolCallsObject'; 15354 15354 } & RunStepDetailsToolCallsObject); 15355 15355 /** 15356 - * The ID of the [thread](https://platform.openai.com/docs/api-reference/threads) that was run. 15357 - */ 15358 - thread_id: string; 15359 - /** 15360 15356 * The type of run step, which can be either `message_creation` or `tool_calls`. 15361 15357 */ 15362 15358 type: 'message_creation' | 'tool_calls'; 15359 + /** 15360 + * The ID of the [thread](https://platform.openai.com/docs/api-reference/threads) that was run. 15361 + */ 15362 + thread_id: string; 15363 15363 usage: RunStepCompletionUsage; 15364 15364 }; 15365 15365 ··· 18393 18393 export const ChatModel = { 18394 18394 GPT_4_1: 'gpt-4.1', 18395 18395 GPT_4_1_2025_04_14: 'gpt-4.1-2025-04-14', 18396 + GPT_5: 'gpt-5', 18396 18397 GPT_4_1_MINI: 'gpt-4.1-mini', 18398 + GPT_5_2025_08_07: 'gpt-5-2025-08-07', 18397 18399 GPT_4_1_MINI_2025_04_14: 'gpt-4.1-mini-2025-04-14', 18400 + GPT_5_CHAT_LATEST: 'gpt-5-chat-latest', 18398 18401 GPT_4_1_NANO: 'gpt-4.1-nano', 18399 - GPT_4O: 'gpt-4o', 18402 + GPT_5_MINI: 'gpt-5-mini', 18400 18403 GPT_4_1_NANO_2025_04_14: 'gpt-4.1-nano-2025-04-14', 18401 - GPT_4O_2024_08_06: 'gpt-4o-2024-08-06', 18402 - GPT_5: 'gpt-5', 18403 - GPT_4O_2024_05_13: 'gpt-4o-2024-05-13', 18404 - GPT_5_2025_08_07: 'gpt-5-2025-08-07', 18405 - GPT_4O_2024_11_20: 'gpt-4o-2024-11-20', 18406 - GPT_5_CHAT_LATEST: 'gpt-5-chat-latest', 18407 - GPT_4O_AUDIO_PREVIEW: 'gpt-4o-audio-preview', 18408 - GPT_5_MINI: 'gpt-5-mini', 18409 - GPT_4O_AUDIO_PREVIEW_2024_10_01: 'gpt-4o-audio-preview-2024-10-01', 18410 18404 GPT_5_MINI_2025_08_07: 'gpt-5-mini-2025-08-07', 18411 - GPT_4O_AUDIO_PREVIEW_2024_12_17: 'gpt-4o-audio-preview-2024-12-17', 18412 18405 GPT_5_NANO: 'gpt-5-nano', 18413 - GPT_4O_AUDIO_PREVIEW_2025_06_03: 'gpt-4o-audio-preview-2025-06-03', 18414 18406 GPT_5_NANO_2025_08_07: 'gpt-5-nano-2025-08-07', 18415 - CHATGPT_4O_LATEST: 'chatgpt-4o-latest', 18416 18407 O1: 'o1', 18417 - CODEX_MINI_LATEST: 'codex-mini-latest', 18418 18408 O1_2024_12_17: 'o1-2024-12-17', 18419 - GPT_4O_MINI: 'gpt-4o-mini', 18409 + GPT_4O: 'gpt-4o', 18420 18410 O1_MINI: 'o1-mini', 18421 - GPT_4O_MINI_2024_07_18: 'gpt-4o-mini-2024-07-18', 18411 + GPT_4O_2024_08_06: 'gpt-4o-2024-08-06', 18422 18412 O3: 'o3', 18423 - GPT_4: 'gpt-4', 18413 + GPT_4O_2024_05_13: 'gpt-4o-2024-05-13', 18424 18414 O3_2025_04_16: 'o3-2025-04-16', 18425 - GPT_4O_MINI_AUDIO_PREVIEW: 'gpt-4o-mini-audio-preview', 18415 + GPT_4O_2024_11_20: 'gpt-4o-2024-11-20', 18426 18416 O4_MINI: 'o4-mini', 18427 - GPT_4O_MINI_AUDIO_PREVIEW_2024_12_17: 'gpt-4o-mini-audio-preview-2024-12-17', 18417 + GPT_4O_AUDIO_PREVIEW: 'gpt-4o-audio-preview', 18428 18418 O4_MINI_2025_04_16: 'o4-mini-2025-04-16', 18429 - GPT_3_5_TURBO: 'gpt-3.5-turbo', 18419 + GPT_4O_AUDIO_PREVIEW_2024_10_01: 'gpt-4o-audio-preview-2024-10-01', 18430 18420 O3_MINI: 'o3-mini', 18431 - GPT_3_5_TURBO_0301: 'gpt-3.5-turbo-0301', 18421 + GPT_4O_AUDIO_PREVIEW_2024_12_17: 'gpt-4o-audio-preview-2024-12-17', 18432 18422 O3_MINI_2025_01_31: 'o3-mini-2025-01-31', 18433 - GPT_3_5_TURBO_0613: 'gpt-3.5-turbo-0613', 18423 + GPT_4O_AUDIO_PREVIEW_2025_06_03: 'gpt-4o-audio-preview-2025-06-03', 18434 18424 O1_PREVIEW: 'o1-preview', 18435 - GPT_3_5_TURBO_0125: 'gpt-3.5-turbo-0125', 18425 + CHATGPT_4O_LATEST: 'chatgpt-4o-latest', 18436 18426 O1_PREVIEW_2024_09_12: 'o1-preview-2024-09-12', 18437 - GPT_3_5_TURBO_1106: 'gpt-3.5-turbo-1106', 18427 + CODEX_MINI_LATEST: 'codex-mini-latest', 18438 18428 O1_MINI_2024_09_12: 'o1-mini-2024-09-12', 18439 - GPT_3_5_TURBO_16K: 'gpt-3.5-turbo-16k', 18429 + GPT_4O_MINI: 'gpt-4o-mini', 18430 + GPT_4O_MINI_2024_07_18: 'gpt-4o-mini-2024-07-18', 18431 + GPT_4O_MINI_AUDIO_PREVIEW: 'gpt-4o-mini-audio-preview', 18432 + GPT_4O_MINI_AUDIO_PREVIEW_2024_12_17: 'gpt-4o-mini-audio-preview-2024-12-17', 18433 + GPT_4: 'gpt-4', 18440 18434 GPT_4O_MINI_SEARCH_PREVIEW: 'gpt-4o-mini-search-preview', 18441 - GPT_3_5_TURBO_16K_0613: 'gpt-3.5-turbo-16k-0613', 18442 18435 GPT_4O_MINI_SEARCH_PREVIEW_2025_03_11: 18443 18436 'gpt-4o-mini-search-preview-2025-03-11', 18444 18437 GPT_4O_SEARCH_PREVIEW: 'gpt-4o-search-preview', 18445 18438 GPT_4O_SEARCH_PREVIEW_2025_03_11: 'gpt-4o-search-preview-2025-03-11', 18446 18439 GPT_4_0125_PREVIEW: 'gpt-4-0125-preview', 18440 + GPT_3_5_TURBO: 'gpt-3.5-turbo', 18447 18441 GPT_4_0314: 'gpt-4-0314', 18442 + GPT_3_5_TURBO_0301: 'gpt-3.5-turbo-0301', 18448 18443 GPT_4_0613: 'gpt-4-0613', 18444 + GPT_3_5_TURBO_0613: 'gpt-3.5-turbo-0613', 18449 18445 GPT_4_1106_PREVIEW: 'gpt-4-1106-preview', 18450 - GPT_4_32K: 'gpt-4-32k', 18451 - GPT_4_32K_0314: 'gpt-4-32k-0314', 18452 - GPT_4_32K_0613: 'gpt-4-32k-0613', 18446 + GPT_3_5_TURBO_0125: 'gpt-3.5-turbo-0125', 18453 18447 GPT_4_TURBO: 'gpt-4-turbo', 18448 + GPT_3_5_TURBO_1106: 'gpt-3.5-turbo-1106', 18454 18449 GPT_4_TURBO_2024_04_09: 'gpt-4-turbo-2024-04-09', 18450 + GPT_3_5_TURBO_16K: 'gpt-3.5-turbo-16k', 18455 18451 GPT_4_TURBO_PREVIEW: 'gpt-4-turbo-preview', 18452 + GPT_3_5_TURBO_16K_0613: 'gpt-3.5-turbo-16k-0613', 18456 18453 GPT_4_VISION_PREVIEW: 'gpt-4-vision-preview', 18454 + GPT_4_32K: 'gpt-4-32k', 18455 + GPT_4_32K_0314: 'gpt-4-32k-0314', 18456 + GPT_4_32K_0613: 'gpt-4-32k-0613', 18457 18457 } as const; 18458 18458 18459 18459 export type ChatModel = (typeof ChatModel)[keyof typeof ChatModel];