openai 0.130.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +36 -0
- data/README.md +39 -3
- data/lib/openai/client.rb +0 -4
- data/lib/openai/internal/type/union.rb +5 -1
- data/lib/openai/models/batch_create_params.rb +6 -19
- data/lib/openai/models/beta/beta_compacted_response.rb +3 -3
- data/lib/openai/models/beta/beta_response.rb +0 -18
- data/lib/openai/models/beta/beta_responses_client_event.rb +0 -26
- data/lib/openai/models/beta/response_compact_params.rb +0 -18
- data/lib/openai/models/beta/response_create_params.rb +0 -18
- data/lib/openai/models/chat/completion_create_params.rb +8 -6
- data/lib/openai/models/chat_model.rb +0 -12
- data/lib/openai/models/completion_create_params.rb +4 -2
- data/lib/openai/models/graders/multi_grader.rb +11 -15
- data/lib/openai/models/image_edit_completed_event.rb +9 -17
- data/lib/openai/models/image_edit_partial_image_event.rb +9 -17
- data/lib/openai/models/image_gen_completed_event.rb +9 -17
- data/lib/openai/models/image_gen_partial_image_event.rb +9 -17
- data/lib/openai/models/images_response.rb +8 -14
- data/lib/openai/models/live/responses_delegation_config.rb +47 -21
- data/lib/openai/models/live/responses_delegation_update_config.rb +47 -21
- data/lib/openai/models/responses/compacted_response.rb +3 -3
- data/lib/openai/models/responses/response_compact_params.rb +0 -18
- data/lib/openai/models.rb +0 -32
- data/lib/openai/providers/vertex.rb +9 -6
- data/lib/openai/resources/batches.rb +2 -6
- data/lib/openai/resources/beta.rb +0 -10
- data/lib/openai/resources/chat/completions.rb +8 -6
- data/lib/openai/resources/completions.rb +4 -2
- data/lib/openai/version.rb +1 -1
- data/lib/openai.rb +0 -114
- data/rbi/openai/client.rbi +0 -3
- data/rbi/openai/models/batch_create_params.rbi +6 -19
- data/rbi/openai/models/beta/beta_compacted_response.rbi +22 -20
- data/rbi/openai/models/beta/beta_response.rbi +0 -3
- data/rbi/openai/models/beta/beta_responses_client_event.rbi +0 -12
- data/rbi/openai/models/beta/response_compact_params.rbi +0 -9
- data/rbi/openai/models/beta/response_create_params.rbi +0 -6
- data/rbi/openai/models/chat/completion_create_params.rbi +8 -6
- data/rbi/openai/models/chat_model.rbi +0 -3
- data/rbi/openai/models/completion_create_params.rbi +4 -2
- data/rbi/openai/models/graders/multi_grader.rbi +32 -27
- data/rbi/openai/models/image_edit_completed_event.rbi +11 -8
- data/rbi/openai/models/image_edit_partial_image_event.rbi +11 -8
- data/rbi/openai/models/image_gen_completed_event.rbi +11 -8
- data/rbi/openai/models/image_gen_partial_image_event.rbi +11 -8
- data/rbi/openai/models/images_response.rbi +6 -6
- data/rbi/openai/models/live/responses_delegation_config.rbi +54 -30
- data/rbi/openai/models/live/responses_delegation_update_config.rbi +54 -30
- data/rbi/openai/models/responses/compacted_response.rbi +19 -17
- data/rbi/openai/models/responses/response_compact_params.rbi +0 -12
- data/rbi/openai/models.rbi +0 -32
- data/rbi/openai/resources/batches.rbi +2 -6
- data/rbi/openai/resources/beta.rbi +0 -8
- data/rbi/openai/resources/chat/completions.rbi +8 -6
- data/rbi/openai/resources/completions.rbi +4 -2
- data/sig/openai/client.rbs +0 -2
- data/sig/openai/models/batch_create_params.rbs +4 -14
- data/sig/openai/models/beta/beta_compacted_response.rbs +4 -4
- data/sig/openai/models/beta/beta_response.rbs +0 -6
- data/sig/openai/models/beta/beta_responses_client_event.rbs +0 -6
- data/sig/openai/models/beta/response_compact_params.rbs +0 -6
- data/sig/openai/models/beta/response_create_params.rbs +0 -6
- data/sig/openai/models/chat/completion_create_params.rbs +8 -6
- data/sig/openai/models/chat_model.rbs +0 -6
- data/sig/openai/models/completion_create_params.rbs +4 -2
- data/sig/openai/models/graders/multi_grader.rbs +7 -12
- data/sig/openai/models/image_edit_completed_event.rbs +11 -9
- data/sig/openai/models/image_edit_partial_image_event.rbs +11 -9
- data/sig/openai/models/image_gen_completed_event.rbs +11 -9
- data/sig/openai/models/image_gen_partial_image_event.rbs +11 -9
- data/sig/openai/models/images_response.rbs +5 -7
- data/sig/openai/models/live/responses_delegation_config.rbs +50 -18
- data/sig/openai/models/live/responses_delegation_update_config.rbs +50 -18
- data/sig/openai/models/responses/compacted_response.rbs +4 -4
- data/sig/openai/models/responses/response_compact_params.rbs +0 -6
- data/sig/openai/models.rbs +0 -32
- data/sig/openai/resources/beta.rbs +0 -4
- metadata +1 -343
- data/lib/openai/models/beta/assistant.rb +0 -270
- data/lib/openai/models/beta/assistant_create_params.rb +0 -448
- data/lib/openai/models/beta/assistant_delete_params.rb +0 -22
- data/lib/openai/models/beta/assistant_deleted.rb +0 -30
- data/lib/openai/models/beta/assistant_list_params.rb +0 -80
- data/lib/openai/models/beta/assistant_response_format_option.rb +0 -50
- data/lib/openai/models/beta/assistant_retrieve_params.rb +0 -22
- data/lib/openai/models/beta/assistant_stream_event.rb +0 -688
- data/lib/openai/models/beta/assistant_tool.rb +0 -22
- data/lib/openai/models/beta/assistant_tool_choice.rb +0 -43
- data/lib/openai/models/beta/assistant_tool_choice_function.rb +0 -19
- data/lib/openai/models/beta/assistant_tool_choice_option.rb +0 -42
- data/lib/openai/models/beta/assistant_update_params.rb +0 -450
- data/lib/openai/models/beta/code_interpreter_tool.rb +0 -19
- data/lib/openai/models/beta/file_search_tool.rb +0 -123
- data/lib/openai/models/beta/function_tool.rb +0 -26
- data/lib/openai/models/beta/message_stream_event.rb +0 -159
- data/lib/openai/models/beta/run_step_stream_event.rb +0 -201
- data/lib/openai/models/beta/run_stream_event.rb +0 -288
- data/lib/openai/models/beta/thread.rb +0 -133
- data/lib/openai/models/beta/thread_create_and_run_params.rb +0 -857
- data/lib/openai/models/beta/thread_create_params.rb +0 -443
- data/lib/openai/models/beta/thread_delete_params.rb +0 -22
- data/lib/openai/models/beta/thread_deleted.rb +0 -30
- data/lib/openai/models/beta/thread_retrieve_params.rb +0 -22
- data/lib/openai/models/beta/thread_stream_event.rb +0 -41
- data/lib/openai/models/beta/thread_update_params.rb +0 -114
- data/lib/openai/models/beta/threads/annotation.rb +0 -27
- data/lib/openai/models/beta/threads/annotation_delta.rb +0 -27
- data/lib/openai/models/beta/threads/file_citation_annotation.rb +0 -68
- data/lib/openai/models/beta/threads/file_citation_delta_annotation.rb +0 -86
- data/lib/openai/models/beta/threads/file_path_annotation.rb +0 -67
- data/lib/openai/models/beta/threads/file_path_delta_annotation.rb +0 -76
- data/lib/openai/models/beta/threads/image_file.rb +0 -51
- data/lib/openai/models/beta/threads/image_file_content_block.rb +0 -32
- data/lib/openai/models/beta/threads/image_file_delta.rb +0 -51
- data/lib/openai/models/beta/threads/image_file_delta_block.rb +0 -41
- data/lib/openai/models/beta/threads/image_url.rb +0 -49
- data/lib/openai/models/beta/threads/image_url_content_block.rb +0 -30
- data/lib/openai/models/beta/threads/image_url_delta.rb +0 -49
- data/lib/openai/models/beta/threads/image_url_delta_block.rb +0 -39
- data/lib/openai/models/beta/threads/message.rb +0 -272
- data/lib/openai/models/beta/threads/message_content.rb +0 -33
- data/lib/openai/models/beta/threads/message_content_delta.rb +0 -33
- data/lib/openai/models/beta/threads/message_content_part_param.rb +0 -30
- data/lib/openai/models/beta/threads/message_create_params.rb +0 -172
- data/lib/openai/models/beta/threads/message_delete_params.rb +0 -30
- data/lib/openai/models/beta/threads/message_deleted.rb +0 -32
- data/lib/openai/models/beta/threads/message_delta.rb +0 -48
- data/lib/openai/models/beta/threads/message_delta_event.rb +0 -42
- data/lib/openai/models/beta/threads/message_list_params.rb +0 -98
- data/lib/openai/models/beta/threads/message_retrieve_params.rb +0 -30
- data/lib/openai/models/beta/threads/message_update_params.rb +0 -51
- data/lib/openai/models/beta/threads/refusal_content_block.rb +0 -30
- data/lib/openai/models/beta/threads/refusal_delta_block.rb +0 -39
- data/lib/openai/models/beta/threads/required_action_function_tool_call.rb +0 -73
- data/lib/openai/models/beta/threads/run.rb +0 -557
- data/lib/openai/models/beta/threads/run_cancel_params.rb +0 -30
- data/lib/openai/models/beta/threads/run_create_params.rb +0 -565
- data/lib/openai/models/beta/threads/run_list_params.rb +0 -89
- data/lib/openai/models/beta/threads/run_retrieve_params.rb +0 -30
- data/lib/openai/models/beta/threads/run_status.rb +0 -29
- data/lib/openai/models/beta/threads/run_submit_tool_outputs_params.rb +0 -69
- data/lib/openai/models/beta/threads/run_update_params.rb +0 -51
- data/lib/openai/models/beta/threads/runs/code_interpreter_logs.rb +0 -43
- data/lib/openai/models/beta/threads/runs/code_interpreter_output_image.rb +0 -54
- data/lib/openai/models/beta/threads/runs/code_interpreter_tool_call.rb +0 -161
- data/lib/openai/models/beta/threads/runs/code_interpreter_tool_call_delta.rb +0 -107
- data/lib/openai/models/beta/threads/runs/file_search_tool_call.rb +0 -207
- data/lib/openai/models/beta/threads/runs/file_search_tool_call_delta.rb +0 -52
- data/lib/openai/models/beta/threads/runs/function_tool_call.rb +0 -78
- data/lib/openai/models/beta/threads/runs/function_tool_call_delta.rb +0 -87
- data/lib/openai/models/beta/threads/runs/message_creation_step_details.rb +0 -48
- data/lib/openai/models/beta/threads/runs/run_step.rb +0 -311
- data/lib/openai/models/beta/threads/runs/run_step_delta.rb +0 -45
- data/lib/openai/models/beta/threads/runs/run_step_delta_event.rb +0 -46
- data/lib/openai/models/beta/threads/runs/run_step_delta_message_delta.rb +0 -47
- data/lib/openai/models/beta/threads/runs/run_step_include.rb +0 -22
- data/lib/openai/models/beta/threads/runs/step_list_params.rb +0 -122
- data/lib/openai/models/beta/threads/runs/step_retrieve_params.rb +0 -65
- data/lib/openai/models/beta/threads/runs/tool_call.rb +0 -28
- data/lib/openai/models/beta/threads/runs/tool_call_delta.rb +0 -28
- data/lib/openai/models/beta/threads/runs/tool_call_delta_object.rb +0 -41
- data/lib/openai/models/beta/threads/runs/tool_calls_step_details.rb +0 -38
- data/lib/openai/models/beta/threads/text.rb +0 -28
- data/lib/openai/models/beta/threads/text_content_block.rb +0 -30
- data/lib/openai/models/beta/threads/text_content_block_param.rb +0 -32
- data/lib/openai/models/beta/threads/text_delta.rb +0 -31
- data/lib/openai/models/beta/threads/text_delta_block.rb +0 -39
- data/lib/openai/models/image_input_reference_param.rb +0 -24
- data/lib/openai/models/video.rb +0 -161
- data/lib/openai/models/video_create_character_params.rb +0 -40
- data/lib/openai/models/video_create_character_response.rb +0 -36
- data/lib/openai/models/video_create_error.rb +0 -166
- data/lib/openai/models/video_create_params.rb +0 -85
- data/lib/openai/models/video_delete_params.rb +0 -20
- data/lib/openai/models/video_delete_response.rb +0 -38
- data/lib/openai/models/video_download_content_params.rb +0 -42
- data/lib/openai/models/video_edit_params.rb +0 -68
- data/lib/openai/models/video_extend_params.rb +0 -79
- data/lib/openai/models/video_get_character_params.rb +0 -20
- data/lib/openai/models/video_get_character_response.rb +0 -36
- data/lib/openai/models/video_list_params.rb +0 -55
- data/lib/openai/models/video_model.rb +0 -38
- data/lib/openai/models/video_remix_params.rb +0 -30
- data/lib/openai/models/video_retrieve_params.rb +0 -20
- data/lib/openai/models/video_seconds.rb +0 -16
- data/lib/openai/models/video_size.rb +0 -17
- data/lib/openai/resources/beta/assistants.rb +0 -320
- data/lib/openai/resources/beta/threads/messages.rb +0 -236
- data/lib/openai/resources/beta/threads/runs/steps.rb +0 -141
- data/lib/openai/resources/beta/threads/runs.rb +0 -623
- data/lib/openai/resources/beta/threads.rb +0 -444
- data/lib/openai/resources/videos.rb +0 -354
- data/rbi/openai/models/beta/assistant.rbi +0 -411
- data/rbi/openai/models/beta/assistant_create_params.rbi +0 -776
- data/rbi/openai/models/beta/assistant_delete_params.rbi +0 -53
- data/rbi/openai/models/beta/assistant_deleted.rbi +0 -60
- data/rbi/openai/models/beta/assistant_list_params.rbi +0 -132
- data/rbi/openai/models/beta/assistant_response_format_option.rbi +0 -49
- data/rbi/openai/models/beta/assistant_retrieve_params.rbi +0 -53
- data/rbi/openai/models/beta/assistant_stream_event.rbi +0 -1277
- data/rbi/openai/models/beta/assistant_tool.rbi +0 -28
- data/rbi/openai/models/beta/assistant_tool_choice.rbi +0 -79
- data/rbi/openai/models/beta/assistant_tool_choice_function.rbi +0 -49
- data/rbi/openai/models/beta/assistant_tool_choice_option.rbi +0 -53
- data/rbi/openai/models/beta/assistant_update_params.rbi +0 -556
- data/rbi/openai/models/beta/code_interpreter_tool.rbi +0 -49
- data/rbi/openai/models/beta/file_search_tool.rbi +0 -223
- data/rbi/openai/models/beta/function_tool.rbi +0 -59
- data/rbi/openai/models/beta/message_stream_event.rbi +0 -288
- data/rbi/openai/models/beta/run_step_stream_event.rbi +0 -378
- data/rbi/openai/models/beta/run_stream_event.rbi +0 -537
- data/rbi/openai/models/beta/thread.rbi +0 -255
- data/rbi/openai/models/beta/thread_create_and_run_params.rbi +0 -1461
- data/rbi/openai/models/beta/thread_create_params.rbi +0 -823
- data/rbi/openai/models/beta/thread_delete_params.rbi +0 -53
- data/rbi/openai/models/beta/thread_deleted.rbi +0 -60
- data/rbi/openai/models/beta/thread_retrieve_params.rbi +0 -53
- data/rbi/openai/models/beta/thread_stream_event.rbi +0 -75
- data/rbi/openai/models/beta/thread_update_params.rbi +0 -240
- data/rbi/openai/models/beta/threads/annotation.rbi +0 -34
- data/rbi/openai/models/beta/threads/annotation_delta.rbi +0 -34
- data/rbi/openai/models/beta/threads/file_citation_annotation.rbi +0 -132
- data/rbi/openai/models/beta/threads/file_citation_delta_annotation.rbi +0 -166
- data/rbi/openai/models/beta/threads/file_path_annotation.rbi +0 -131
- data/rbi/openai/models/beta/threads/file_path_delta_annotation.rbi +0 -153
- data/rbi/openai/models/beta/threads/image_file.rbi +0 -88
- data/rbi/openai/models/beta/threads/image_file_content_block.rbi +0 -66
- data/rbi/openai/models/beta/threads/image_file_delta.rbi +0 -91
- data/rbi/openai/models/beta/threads/image_file_delta_block.rbi +0 -75
- data/rbi/openai/models/beta/threads/image_url.rbi +0 -86
- data/rbi/openai/models/beta/threads/image_url_content_block.rbi +0 -64
- data/rbi/openai/models/beta/threads/image_url_delta.rbi +0 -89
- data/rbi/openai/models/beta/threads/image_url_delta_block.rbi +0 -73
- data/rbi/openai/models/beta/threads/message.rbi +0 -433
- data/rbi/openai/models/beta/threads/message_content.rbi +0 -36
- data/rbi/openai/models/beta/threads/message_content_delta.rbi +0 -36
- data/rbi/openai/models/beta/threads/message_content_part_param.rbi +0 -35
- data/rbi/openai/models/beta/threads/message_create_params.rbi +0 -299
- data/rbi/openai/models/beta/threads/message_delete_params.rbi +0 -64
- data/rbi/openai/models/beta/threads/message_deleted.rbi +0 -64
- data/rbi/openai/models/beta/threads/message_delta.rbi +0 -106
- data/rbi/openai/models/beta/threads/message_delta_event.rbi +0 -76
- data/rbi/openai/models/beta/threads/message_list_params.rbi +0 -157
- data/rbi/openai/models/beta/threads/message_retrieve_params.rbi +0 -64
- data/rbi/openai/models/beta/threads/message_update_params.rbi +0 -88
- data/rbi/openai/models/beta/threads/refusal_content_block.rbi +0 -61
- data/rbi/openai/models/beta/threads/refusal_delta_block.rbi +0 -73
- data/rbi/openai/models/beta/threads/required_action_function_tool_call.rbi +0 -130
- data/rbi/openai/models/beta/threads/run.rbi +0 -803
- data/rbi/openai/models/beta/threads/run_cancel_params.rbi +0 -64
- data/rbi/openai/models/beta/threads/run_create_params.rbi +0 -825
- data/rbi/openai/models/beta/threads/run_list_params.rbi +0 -144
- data/rbi/openai/models/beta/threads/run_retrieve_params.rbi +0 -64
- data/rbi/openai/models/beta/threads/run_status.rbi +0 -39
- data/rbi/openai/models/beta/threads/run_submit_tool_outputs_params.rbi +0 -132
- data/rbi/openai/models/beta/threads/run_update_params.rbi +0 -88
- data/rbi/openai/models/beta/threads/runs/code_interpreter_logs.rbi +0 -79
- data/rbi/openai/models/beta/threads/runs/code_interpreter_output_image.rbi +0 -118
- data/rbi/openai/models/beta/threads/runs/code_interpreter_tool_call.rbi +0 -315
- data/rbi/openai/models/beta/threads/runs/code_interpreter_tool_call_delta.rbi +0 -210
- data/rbi/openai/models/beta/threads/runs/file_search_tool_call.rbi +0 -409
- data/rbi/openai/models/beta/threads/runs/file_search_tool_call_delta.rbi +0 -89
- data/rbi/openai/models/beta/threads/runs/function_tool_call.rbi +0 -138
- data/rbi/openai/models/beta/threads/runs/function_tool_call_delta.rbi +0 -161
- data/rbi/openai/models/beta/threads/runs/message_creation_step_details.rbi +0 -111
- data/rbi/openai/models/beta/threads/runs/run_step.rbi +0 -422
- data/rbi/openai/models/beta/threads/runs/run_step_delta.rbi +0 -91
- data/rbi/openai/models/beta/threads/runs/run_step_delta_event.rbi +0 -82
- data/rbi/openai/models/beta/threads/runs/run_step_delta_message_delta.rbi +0 -113
- data/rbi/openai/models/beta/threads/runs/run_step_include.rbi +0 -37
- data/rbi/openai/models/beta/threads/runs/step_list_params.rbi +0 -181
- data/rbi/openai/models/beta/threads/runs/step_retrieve_params.rbi +0 -105
- data/rbi/openai/models/beta/threads/runs/tool_call.rbi +0 -37
- data/rbi/openai/models/beta/threads/runs/tool_call_delta.rbi +0 -37
- data/rbi/openai/models/beta/threads/runs/tool_call_delta_object.rbi +0 -91
- data/rbi/openai/models/beta/threads/runs/tool_calls_step_details.rbi +0 -77
- data/rbi/openai/models/beta/threads/text.rbi +0 -65
- data/rbi/openai/models/beta/threads/text_content_block.rbi +0 -64
- data/rbi/openai/models/beta/threads/text_content_block_param.rbi +0 -63
- data/rbi/openai/models/beta/threads/text_delta.rbi +0 -81
- data/rbi/openai/models/beta/threads/text_delta_block.rbi +0 -73
- data/rbi/openai/models/image_input_reference_param.rbi +0 -58
- data/rbi/openai/models/video.rbi +0 -203
- data/rbi/openai/models/video_create_character_params.rbi +0 -68
- data/rbi/openai/models/video_create_character_response.rbi +0 -63
- data/rbi/openai/models/video_create_error.rbi +0 -255
- data/rbi/openai/models/video_create_params.rbi +0 -132
- data/rbi/openai/models/video_delete_params.rbi +0 -49
- data/rbi/openai/models/video_delete_response.rbi +0 -64
- data/rbi/openai/models/video_download_content_params.rbi +0 -81
- data/rbi/openai/models/video_edit_params.rbi +0 -122
- data/rbi/openai/models/video_extend_params.rbi +0 -134
- data/rbi/openai/models/video_get_character_params.rbi +0 -49
- data/rbi/openai/models/video_get_character_response.rbi +0 -63
- data/rbi/openai/models/video_list_params.rbi +0 -101
- data/rbi/openai/models/video_model.rbi +0 -35
- data/rbi/openai/models/video_remix_params.rbi +0 -58
- data/rbi/openai/models/video_retrieve_params.rbi +0 -49
- data/rbi/openai/models/video_seconds.rbi +0 -22
- data/rbi/openai/models/video_size.rbi +0 -23
- data/rbi/openai/resources/beta/assistants.rbi +0 -285
- data/rbi/openai/resources/beta/threads/messages.rbi +0 -161
- data/rbi/openai/resources/beta/threads/runs/steps.rbi +0 -107
- data/rbi/openai/resources/beta/threads/runs.rbi +0 -527
- data/rbi/openai/resources/beta/threads.rbi +0 -391
- data/rbi/openai/resources/videos.rbi +0 -205
- data/sig/openai/models/beta/assistant.rbs +0 -278
- data/sig/openai/models/beta/assistant_create_params.rbs +0 -485
- data/sig/openai/models/beta/assistant_delete_params.rbs +0 -25
- data/sig/openai/models/beta/assistant_deleted.rbs +0 -28
- data/sig/openai/models/beta/assistant_list_params.rbs +0 -104
- data/sig/openai/models/beta/assistant_response_format_option.rbs +0 -17
- data/sig/openai/models/beta/assistant_retrieve_params.rbs +0 -25
- data/sig/openai/models/beta/assistant_stream_event.rbs +0 -645
- data/sig/openai/models/beta/assistant_tool.rbs +0 -16
- data/sig/openai/models/beta/assistant_tool_choice.rbs +0 -46
- data/sig/openai/models/beta/assistant_tool_choice_function.rbs +0 -18
- data/sig/openai/models/beta/assistant_tool_choice_option.rbs +0 -27
- data/sig/openai/models/beta/assistant_update_params.rbs +0 -396
- data/sig/openai/models/beta/code_interpreter_tool.rbs +0 -18
- data/sig/openai/models/beta/file_search_tool.rbs +0 -159
- data/sig/openai/models/beta/function_tool.rbs +0 -27
- data/sig/openai/models/beta/message_stream_event.rbs +0 -153
- data/sig/openai/models/beta/run_step_stream_event.rbs +0 -197
- data/sig/openai/models/beta/run_stream_event.rbs +0 -269
- data/sig/openai/models/beta/thread.rbs +0 -150
- data/sig/openai/models/beta/thread_create_and_run_params.rbs +0 -885
- data/sig/openai/models/beta/thread_create_params.rbs +0 -492
- data/sig/openai/models/beta/thread_delete_params.rbs +0 -25
- data/sig/openai/models/beta/thread_deleted.rbs +0 -28
- data/sig/openai/models/beta/thread_retrieve_params.rbs +0 -25
- data/sig/openai/models/beta/thread_stream_event.rbs +0 -43
- data/sig/openai/models/beta/thread_update_params.rbs +0 -137
- data/sig/openai/models/beta/threads/annotation.rbs +0 -17
- data/sig/openai/models/beta/threads/annotation_delta.rbs +0 -17
- data/sig/openai/models/beta/threads/file_citation_annotation.rbs +0 -63
- data/sig/openai/models/beta/threads/file_citation_delta_annotation.rbs +0 -93
- data/sig/openai/models/beta/threads/file_path_annotation.rbs +0 -63
- data/sig/openai/models/beta/threads/file_path_delta_annotation.rbs +0 -85
- data/sig/openai/models/beta/threads/image_file.rbs +0 -59
- data/sig/openai/models/beta/threads/image_file_content_block.rbs +0 -29
- data/sig/openai/models/beta/threads/image_file_delta.rbs +0 -64
- data/sig/openai/models/beta/threads/image_file_delta_block.rbs +0 -44
- data/sig/openai/models/beta/threads/image_url.rbs +0 -57
- data/sig/openai/models/beta/threads/image_url_content_block.rbs +0 -29
- data/sig/openai/models/beta/threads/image_url_delta.rbs +0 -61
- data/sig/openai/models/beta/threads/image_url_delta_block.rbs +0 -44
- data/sig/openai/models/beta/threads/message.rbs +0 -275
- data/sig/openai/models/beta/threads/message_content.rbs +0 -19
- data/sig/openai/models/beta/threads/message_content_delta.rbs +0 -19
- data/sig/openai/models/beta/threads/message_content_part_param.rbs +0 -18
- data/sig/openai/models/beta/threads/message_create_params.rbs +0 -167
- data/sig/openai/models/beta/threads/message_delete_params.rbs +0 -35
- data/sig/openai/models/beta/threads/message_deleted.rbs +0 -30
- data/sig/openai/models/beta/threads/message_delta.rbs +0 -56
- data/sig/openai/models/beta/threads/message_delta_event.rbs +0 -43
- data/sig/openai/models/beta/threads/message_list_params.rbs +0 -122
- data/sig/openai/models/beta/threads/message_retrieve_params.rbs +0 -35
- data/sig/openai/models/beta/threads/message_update_params.rbs +0 -53
- data/sig/openai/models/beta/threads/refusal_content_block.rbs +0 -22
- data/sig/openai/models/beta/threads/refusal_delta_block.rbs +0 -34
- data/sig/openai/models/beta/threads/required_action_function_tool_call.rbs +0 -69
- data/sig/openai/models/beta/threads/run.rbs +0 -545
- data/sig/openai/models/beta/threads/run_cancel_params.rbs +0 -35
- data/sig/openai/models/beta/threads/run_create_params.rbs +0 -524
- data/sig/openai/models/beta/threads/run_list_params.rbs +0 -111
- data/sig/openai/models/beta/threads/run_retrieve_params.rbs +0 -35
- data/sig/openai/models/beta/threads/run_status.rbs +0 -34
- data/sig/openai/models/beta/threads/run_submit_tool_outputs_params.rbs +0 -70
- data/sig/openai/models/beta/threads/run_update_params.rbs +0 -53
- data/sig/openai/models/beta/threads/runs/code_interpreter_logs.rbs +0 -40
- data/sig/openai/models/beta/threads/runs/code_interpreter_output_image.rbs +0 -65
- data/sig/openai/models/beta/threads/runs/code_interpreter_tool_call.rbs +0 -147
- data/sig/openai/models/beta/threads/runs/code_interpreter_tool_call_delta.rbs +0 -115
- data/sig/openai/models/beta/threads/runs/file_search_tool_call.rbs +0 -228
- data/sig/openai/models/beta/threads/runs/file_search_tool_call_delta.rbs +0 -58
- data/sig/openai/models/beta/threads/runs/function_tool_call.rbs +0 -80
- data/sig/openai/models/beta/threads/runs/function_tool_call_delta.rbs +0 -103
- data/sig/openai/models/beta/threads/runs/message_creation_step_details.rbs +0 -47
- data/sig/openai/models/beta/threads/runs/run_step.rbs +0 -290
- data/sig/openai/models/beta/threads/runs/run_step_delta.rbs +0 -46
- data/sig/openai/models/beta/threads/runs/run_step_delta_event.rbs +0 -47
- data/sig/openai/models/beta/threads/runs/run_step_delta_message_delta.rbs +0 -56
- data/sig/openai/models/beta/threads/runs/run_step_include.rbs +0 -22
- data/sig/openai/models/beta/threads/runs/step_list_params.rbs +0 -149
- data/sig/openai/models/beta/threads/runs/step_retrieve_params.rbs +0 -73
- data/sig/openai/models/beta/threads/runs/tool_call.rbs +0 -20
- data/sig/openai/models/beta/threads/runs/tool_call_delta.rbs +0 -20
- data/sig/openai/models/beta/threads/runs/tool_call_delta_object.rbs +0 -48
- data/sig/openai/models/beta/threads/runs/tool_calls_step_details.rbs +0 -41
- data/sig/openai/models/beta/threads/text.rbs +0 -32
- data/sig/openai/models/beta/threads/text_content_block.rbs +0 -26
- data/sig/openai/models/beta/threads/text_content_block_param.rbs +0 -25
- data/sig/openai/models/beta/threads/text_delta.rbs +0 -39
- data/sig/openai/models/beta/threads/text_delta_block.rbs +0 -44
- data/sig/openai/models/image_input_reference_param.rbs +0 -23
- data/sig/openai/models/video.rbs +0 -142
- data/sig/openai/models/video_create_character_params.rbs +0 -45
- data/sig/openai/models/video_create_character_response.rbs +0 -27
- data/sig/openai/models/video_create_error.rbs +0 -163
- data/sig/openai/models/video_create_params.rbs +0 -104
- data/sig/openai/models/video_delete_params.rbs +0 -23
- data/sig/openai/models/video_delete_response.rbs +0 -31
- data/sig/openai/models/video_download_content_params.rbs +0 -51
- data/sig/openai/models/video_edit_params.rbs +0 -77
- data/sig/openai/models/video_extend_params.rbs +0 -87
- data/sig/openai/models/video_get_character_params.rbs +0 -23
- data/sig/openai/models/video_get_character_response.rbs +0 -27
- data/sig/openai/models/video_list_params.rbs +0 -70
- data/sig/openai/models/video_model.rbs +0 -23
- data/sig/openai/models/video_remix_params.rbs +0 -34
- data/sig/openai/models/video_retrieve_params.rbs +0 -23
- data/sig/openai/models/video_seconds.rbs +0 -15
- data/sig/openai/models/video_size.rbs +0 -16
- data/sig/openai/resources/beta/assistants.rbs +0 -58
- data/sig/openai/resources/beta/threads/messages.rbs +0 -49
- data/sig/openai/resources/beta/threads/runs/steps.rbs +0 -32
- data/sig/openai/resources/beta/threads/runs.rbs +0 -99
- data/sig/openai/resources/beta/threads.rbs +0 -75
- data/sig/openai/resources/videos.rbs +0 -69
|
@@ -249,7 +249,6 @@ module OpenAI
|
|
|
249
249
|
| :"gpt-4-0125-preview"
|
|
250
250
|
| :"gpt-4-turbo-preview"
|
|
251
251
|
| :"gpt-4-1106-preview"
|
|
252
|
-
| :"gpt-4-vision-preview"
|
|
253
252
|
| :"gpt-4"
|
|
254
253
|
| :"gpt-4-0314"
|
|
255
254
|
| :"gpt-4-0613"
|
|
@@ -259,10 +258,8 @@ module OpenAI
|
|
|
259
258
|
| :"gpt-3.5-turbo"
|
|
260
259
|
| :"gpt-3.5-turbo-16k"
|
|
261
260
|
| :"gpt-3.5-turbo-0301"
|
|
262
|
-
| :"gpt-3.5-turbo-0613"
|
|
263
261
|
| :"gpt-3.5-turbo-1106"
|
|
264
262
|
| :"gpt-3.5-turbo-0125"
|
|
265
|
-
| :"gpt-3.5-turbo-16k-0613"
|
|
266
263
|
| :"o1-pro"
|
|
267
264
|
| :"o1-pro-2025-03-19"
|
|
268
265
|
| :"o3-pro"
|
|
@@ -371,7 +368,6 @@ module OpenAI
|
|
|
371
368
|
GPT_4_0125_PREVIEW: :"gpt-4-0125-preview"
|
|
372
369
|
GPT_4_TURBO_PREVIEW: :"gpt-4-turbo-preview"
|
|
373
370
|
GPT_4_1106_PREVIEW: :"gpt-4-1106-preview"
|
|
374
|
-
GPT_4_VISION_PREVIEW: :"gpt-4-vision-preview"
|
|
375
371
|
GPT_4: :"gpt-4"
|
|
376
372
|
GPT_4_0314: :"gpt-4-0314"
|
|
377
373
|
GPT_4_0613: :"gpt-4-0613"
|
|
@@ -381,10 +377,8 @@ module OpenAI
|
|
|
381
377
|
GPT_3_5_TURBO: :"gpt-3.5-turbo"
|
|
382
378
|
GPT_3_5_TURBO_16K: :"gpt-3.5-turbo-16k"
|
|
383
379
|
GPT_3_5_TURBO_0301: :"gpt-3.5-turbo-0301"
|
|
384
|
-
GPT_3_5_TURBO_0613: :"gpt-3.5-turbo-0613"
|
|
385
380
|
GPT_3_5_TURBO_1106: :"gpt-3.5-turbo-1106"
|
|
386
381
|
GPT_3_5_TURBO_0125: :"gpt-3.5-turbo-0125"
|
|
387
|
-
GPT_3_5_TURBO_16K_0613: :"gpt-3.5-turbo-16k-0613"
|
|
388
382
|
O1_PRO: :"o1-pro"
|
|
389
383
|
O1_PRO_2025_03_19: :"o1-pro-2025-03-19"
|
|
390
384
|
O3_PRO: :"o3-pro"
|
|
@@ -993,7 +993,6 @@ module OpenAI
|
|
|
993
993
|
| :"gpt-4-0125-preview"
|
|
994
994
|
| :"gpt-4-turbo-preview"
|
|
995
995
|
| :"gpt-4-1106-preview"
|
|
996
|
-
| :"gpt-4-vision-preview"
|
|
997
996
|
| :"gpt-4"
|
|
998
997
|
| :"gpt-4-0314"
|
|
999
998
|
| :"gpt-4-0613"
|
|
@@ -1003,10 +1002,8 @@ module OpenAI
|
|
|
1003
1002
|
| :"gpt-3.5-turbo"
|
|
1004
1003
|
| :"gpt-3.5-turbo-16k"
|
|
1005
1004
|
| :"gpt-3.5-turbo-0301"
|
|
1006
|
-
| :"gpt-3.5-turbo-0613"
|
|
1007
1005
|
| :"gpt-3.5-turbo-1106"
|
|
1008
1006
|
| :"gpt-3.5-turbo-0125"
|
|
1009
|
-
| :"gpt-3.5-turbo-16k-0613"
|
|
1010
1007
|
| :"o1-pro"
|
|
1011
1008
|
| :"o1-pro-2025-03-19"
|
|
1012
1009
|
| :"o3-pro"
|
|
@@ -1115,7 +1112,6 @@ module OpenAI
|
|
|
1115
1112
|
GPT_4_0125_PREVIEW: :"gpt-4-0125-preview"
|
|
1116
1113
|
GPT_4_TURBO_PREVIEW: :"gpt-4-turbo-preview"
|
|
1117
1114
|
GPT_4_1106_PREVIEW: :"gpt-4-1106-preview"
|
|
1118
|
-
GPT_4_VISION_PREVIEW: :"gpt-4-vision-preview"
|
|
1119
1115
|
GPT_4: :"gpt-4"
|
|
1120
1116
|
GPT_4_0314: :"gpt-4-0314"
|
|
1121
1117
|
GPT_4_0613: :"gpt-4-0613"
|
|
@@ -1125,10 +1121,8 @@ module OpenAI
|
|
|
1125
1121
|
GPT_3_5_TURBO: :"gpt-3.5-turbo"
|
|
1126
1122
|
GPT_3_5_TURBO_16K: :"gpt-3.5-turbo-16k"
|
|
1127
1123
|
GPT_3_5_TURBO_0301: :"gpt-3.5-turbo-0301"
|
|
1128
|
-
GPT_3_5_TURBO_0613: :"gpt-3.5-turbo-0613"
|
|
1129
1124
|
GPT_3_5_TURBO_1106: :"gpt-3.5-turbo-1106"
|
|
1130
1125
|
GPT_3_5_TURBO_0125: :"gpt-3.5-turbo-0125"
|
|
1131
|
-
GPT_3_5_TURBO_16K_0613: :"gpt-3.5-turbo-16k-0613"
|
|
1132
1126
|
O1_PRO: :"o1-pro"
|
|
1133
1127
|
O1_PRO_2025_03_19: :"o1-pro-2025-03-19"
|
|
1134
1128
|
O3_PRO: :"o3-pro"
|
|
@@ -169,9 +169,10 @@ module OpenAI
|
|
|
169
169
|
# Configuration for running moderation on the request input and generated output.
|
|
170
170
|
attr_accessor moderation: OpenAI::Chat::CompletionCreateParams::Moderation?
|
|
171
171
|
|
|
172
|
-
# How many chat completion choices to generate for each input message.
|
|
173
|
-
#
|
|
174
|
-
# choices
|
|
172
|
+
# How many chat completion choices to generate for each input message. Omit `n` to
|
|
173
|
+
# generate one choice. Newer models reject an explicit `n`, even `n=1`. When
|
|
174
|
+
# requesting multiple choices, you are billed for generated tokens across all
|
|
175
|
+
# choices.
|
|
175
176
|
attr_accessor n: Integer?
|
|
176
177
|
|
|
177
178
|
# Whether to enable
|
|
@@ -509,9 +510,10 @@ module OpenAI
|
|
|
509
510
|
# @param moderation
|
|
510
511
|
# Configuration for running moderation on the request input and generated output.
|
|
511
512
|
# @param n
|
|
512
|
-
# How many chat completion choices to generate for each input message.
|
|
513
|
-
#
|
|
514
|
-
# choices
|
|
513
|
+
# How many chat completion choices to generate for each input message. Omit `n` to
|
|
514
|
+
# generate one choice. Newer models reject an explicit `n`, even `n=1`. When
|
|
515
|
+
# requesting multiple choices, you are billed for generated tokens across all
|
|
516
|
+
# choices.
|
|
515
517
|
# @param parallel_tool_calls
|
|
516
518
|
# Whether to enable
|
|
517
519
|
# [parallel function calling](https://developers.openai.com/api/docs/guides/function-calling#parallel-function-calling)
|
|
@@ -79,7 +79,6 @@ module OpenAI
|
|
|
79
79
|
| :"gpt-4-0125-preview"
|
|
80
80
|
| :"gpt-4-turbo-preview"
|
|
81
81
|
| :"gpt-4-1106-preview"
|
|
82
|
-
| :"gpt-4-vision-preview"
|
|
83
82
|
| :"gpt-4"
|
|
84
83
|
| :"gpt-4-0314"
|
|
85
84
|
| :"gpt-4-0613"
|
|
@@ -89,10 +88,8 @@ module OpenAI
|
|
|
89
88
|
| :"gpt-3.5-turbo"
|
|
90
89
|
| :"gpt-3.5-turbo-16k"
|
|
91
90
|
| :"gpt-3.5-turbo-0301"
|
|
92
|
-
| :"gpt-3.5-turbo-0613"
|
|
93
91
|
| :"gpt-3.5-turbo-1106"
|
|
94
92
|
| :"gpt-3.5-turbo-0125"
|
|
95
|
-
| :"gpt-3.5-turbo-16k-0613"
|
|
96
93
|
|
|
97
94
|
module ChatModel
|
|
98
95
|
extend OpenAI::Internal::Type::Enum
|
|
@@ -175,7 +172,6 @@ module OpenAI
|
|
|
175
172
|
GPT_4_0125_PREVIEW: :"gpt-4-0125-preview"
|
|
176
173
|
GPT_4_TURBO_PREVIEW: :"gpt-4-turbo-preview"
|
|
177
174
|
GPT_4_1106_PREVIEW: :"gpt-4-1106-preview"
|
|
178
|
-
GPT_4_VISION_PREVIEW: :"gpt-4-vision-preview"
|
|
179
175
|
GPT_4: :"gpt-4"
|
|
180
176
|
GPT_4_0314: :"gpt-4-0314"
|
|
181
177
|
GPT_4_0613: :"gpt-4-0613"
|
|
@@ -185,10 +181,8 @@ module OpenAI
|
|
|
185
181
|
GPT_3_5_TURBO: :"gpt-3.5-turbo"
|
|
186
182
|
GPT_3_5_TURBO_16K: :"gpt-3.5-turbo-16k"
|
|
187
183
|
GPT_3_5_TURBO_0301: :"gpt-3.5-turbo-0301"
|
|
188
|
-
GPT_3_5_TURBO_0613: :"gpt-3.5-turbo-0613"
|
|
189
184
|
GPT_3_5_TURBO_1106: :"gpt-3.5-turbo-1106"
|
|
190
185
|
GPT_3_5_TURBO_0125: :"gpt-3.5-turbo-0125"
|
|
191
|
-
GPT_3_5_TURBO_16K_0613: :"gpt-3.5-turbo-16k-0613"
|
|
192
186
|
|
|
193
187
|
def self?.values: -> ::Array[OpenAI::Models::chat_model]
|
|
194
188
|
end
|
|
@@ -94,7 +94,8 @@ module OpenAI
|
|
|
94
94
|
# for counting tokens.
|
|
95
95
|
attr_accessor max_tokens: Integer?
|
|
96
96
|
|
|
97
|
-
# How many completions to generate for each prompt.
|
|
97
|
+
# How many completions to generate for each prompt. Omit `n` to generate one
|
|
98
|
+
# completion per prompt.
|
|
98
99
|
#
|
|
99
100
|
# **Note:** Because this parameter generates many completions, it can quickly
|
|
100
101
|
# consume your token quota. Use carefully and ensure that you have reasonable
|
|
@@ -215,7 +216,8 @@ module OpenAI
|
|
|
215
216
|
# [Example Python code](https://cookbook.openai.com/examples/how_to_count_tokens_with_tiktoken)
|
|
216
217
|
# for counting tokens.
|
|
217
218
|
# @param n
|
|
218
|
-
# How many completions to generate for each prompt.
|
|
219
|
+
# How many completions to generate for each prompt. Omit `n` to generate one
|
|
220
|
+
# completion per prompt.
|
|
219
221
|
#
|
|
220
222
|
# **Note:** Because this parameter generates many completions, it can quickly
|
|
221
223
|
# consume your token quota. Use carefully and ensure that you have reasonable
|
|
@@ -6,7 +6,7 @@ module OpenAI
|
|
|
6
6
|
type multi_grader =
|
|
7
7
|
{
|
|
8
8
|
calculate_output: String,
|
|
9
|
-
graders: OpenAI::Models::Graders::MultiGrader::
|
|
9
|
+
graders: ::Hash[Symbol, OpenAI::Models::Graders::MultiGrader::grader],
|
|
10
10
|
name: String,
|
|
11
11
|
?type: :multi
|
|
12
12
|
}
|
|
@@ -15,9 +15,7 @@ module OpenAI
|
|
|
15
15
|
# A formula to calculate the output based on grader results.
|
|
16
16
|
attr_accessor calculate_output: String
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
# reference using a specified operation.
|
|
20
|
-
attr_accessor graders: OpenAI::Models::Graders::MultiGrader::graders
|
|
18
|
+
attr_accessor graders: ::Hash[Symbol, OpenAI::Models::Graders::MultiGrader::grader]
|
|
21
19
|
|
|
22
20
|
# The name of the grader.
|
|
23
21
|
attr_accessor name: String
|
|
@@ -27,38 +25,35 @@ module OpenAI
|
|
|
27
25
|
|
|
28
26
|
# @param calculate_output
|
|
29
27
|
# A formula to calculate the output based on grader results.
|
|
30
|
-
# @param graders
|
|
31
|
-
# A StringCheckGrader object that performs a string comparison between input and
|
|
32
|
-
# reference using a specified operation.
|
|
33
28
|
# @param name
|
|
34
29
|
# The name of the grader.
|
|
35
30
|
# @param type
|
|
36
31
|
# The object type, which is always `multi`.
|
|
37
32
|
def initialize: (
|
|
38
33
|
calculate_output: String,
|
|
39
|
-
graders: OpenAI::Models::Graders::MultiGrader::
|
|
34
|
+
graders: ::Hash[Symbol, OpenAI::Models::Graders::MultiGrader::grader],
|
|
40
35
|
name: String,
|
|
41
36
|
?type: :multi
|
|
42
37
|
) -> void
|
|
43
38
|
|
|
44
39
|
def to_hash: -> {
|
|
45
40
|
calculate_output: String,
|
|
46
|
-
graders: OpenAI::Models::Graders::MultiGrader::
|
|
41
|
+
graders: ::Hash[Symbol, OpenAI::Models::Graders::MultiGrader::grader],
|
|
47
42
|
name: String,
|
|
48
43
|
?type: :multi
|
|
49
44
|
}
|
|
50
45
|
|
|
51
|
-
type
|
|
46
|
+
type grader =
|
|
52
47
|
OpenAI::Graders::StringCheckGrader
|
|
53
48
|
| OpenAI::Graders::TextSimilarityGrader
|
|
54
49
|
| OpenAI::Graders::PythonGrader
|
|
55
50
|
| OpenAI::Graders::ScoreModelGrader
|
|
56
51
|
| OpenAI::Graders::LabelModelGrader
|
|
57
52
|
|
|
58
|
-
module
|
|
53
|
+
module Grader
|
|
59
54
|
extend OpenAI::Internal::Type::Union
|
|
60
55
|
|
|
61
|
-
def self?.variants: -> ::Array[OpenAI::Models::Graders::MultiGrader::
|
|
56
|
+
def self?.variants: -> ::Array[OpenAI::Models::Graders::MultiGrader::grader]
|
|
62
57
|
end
|
|
63
58
|
end
|
|
64
59
|
end
|
|
@@ -30,7 +30,12 @@ module OpenAI
|
|
|
30
30
|
attr_accessor quality: OpenAI::Models::ImageEditCompletedEvent::quality
|
|
31
31
|
|
|
32
32
|
# The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.
|
|
33
|
-
|
|
33
|
+
attr_reader size: String
|
|
34
|
+
|
|
35
|
+
# The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.
|
|
36
|
+
def size=: (
|
|
37
|
+
OpenAI::Models::ImageEditCompletedEvent::size
|
|
38
|
+
) -> OpenAI::Models::ImageEditCompletedEvent::size
|
|
34
39
|
|
|
35
40
|
# The type of the event. Always `image_edit.completed`.
|
|
36
41
|
attr_accessor type: :"image_edit.completed"
|
|
@@ -135,15 +140,12 @@ module OpenAI
|
|
|
135
140
|
|
|
136
141
|
def self?.variants: -> ::Array[OpenAI::Models::ImageEditCompletedEvent::size]
|
|
137
142
|
|
|
138
|
-
SIZE_1024X1024:
|
|
139
|
-
SIZE_1024X1536:
|
|
140
|
-
SIZE_1536X1024:
|
|
141
|
-
AUTO:
|
|
143
|
+
SIZE_1024X1024: "1024x1024"
|
|
144
|
+
SIZE_1024X1536: "1024x1536"
|
|
145
|
+
SIZE_1536X1024: "1536x1024"
|
|
146
|
+
AUTO: "auto"
|
|
142
147
|
|
|
143
|
-
def self?.values: -> ::Array[
|
|
144
|
-
| :"1024x1536"
|
|
145
|
-
| :"1536x1024"
|
|
146
|
-
| :auto)]
|
|
148
|
+
def self?.values: -> ::Array[String]
|
|
147
149
|
end
|
|
148
150
|
|
|
149
151
|
type usage =
|
|
@@ -32,7 +32,12 @@ module OpenAI
|
|
|
32
32
|
attr_accessor quality: OpenAI::Models::ImageEditPartialImageEvent::quality
|
|
33
33
|
|
|
34
34
|
# The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.
|
|
35
|
-
|
|
35
|
+
attr_reader size: String
|
|
36
|
+
|
|
37
|
+
# The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.
|
|
38
|
+
def size=: (
|
|
39
|
+
OpenAI::Models::ImageEditPartialImageEvent::size
|
|
40
|
+
) -> OpenAI::Models::ImageEditPartialImageEvent::size
|
|
36
41
|
|
|
37
42
|
# The type of the event. Always `image_edit.partial_image`.
|
|
38
43
|
attr_accessor type: :"image_edit.partial_image"
|
|
@@ -121,15 +126,12 @@ module OpenAI
|
|
|
121
126
|
|
|
122
127
|
def self?.variants: -> ::Array[OpenAI::Models::ImageEditPartialImageEvent::size]
|
|
123
128
|
|
|
124
|
-
SIZE_1024X1024:
|
|
125
|
-
SIZE_1024X1536:
|
|
126
|
-
SIZE_1536X1024:
|
|
127
|
-
AUTO:
|
|
129
|
+
SIZE_1024X1024: "1024x1024"
|
|
130
|
+
SIZE_1024X1536: "1024x1536"
|
|
131
|
+
SIZE_1536X1024: "1536x1024"
|
|
132
|
+
AUTO: "auto"
|
|
128
133
|
|
|
129
|
-
def self?.values: -> ::Array[
|
|
130
|
-
| :"1024x1536"
|
|
131
|
-
| :"1536x1024"
|
|
132
|
-
| :auto)]
|
|
134
|
+
def self?.values: -> ::Array[String]
|
|
133
135
|
end
|
|
134
136
|
end
|
|
135
137
|
end
|
|
@@ -30,7 +30,12 @@ module OpenAI
|
|
|
30
30
|
attr_accessor quality: OpenAI::Models::ImageGenCompletedEvent::quality
|
|
31
31
|
|
|
32
32
|
# The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.
|
|
33
|
-
|
|
33
|
+
attr_reader size: String
|
|
34
|
+
|
|
35
|
+
# The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.
|
|
36
|
+
def size=: (
|
|
37
|
+
OpenAI::Models::ImageGenCompletedEvent::size
|
|
38
|
+
) -> OpenAI::Models::ImageGenCompletedEvent::size
|
|
34
39
|
|
|
35
40
|
# The type of the event. Always `image_generation.completed`.
|
|
36
41
|
attr_accessor type: :"image_generation.completed"
|
|
@@ -135,15 +140,12 @@ module OpenAI
|
|
|
135
140
|
|
|
136
141
|
def self?.variants: -> ::Array[OpenAI::Models::ImageGenCompletedEvent::size]
|
|
137
142
|
|
|
138
|
-
SIZE_1024X1024:
|
|
139
|
-
SIZE_1024X1536:
|
|
140
|
-
SIZE_1536X1024:
|
|
141
|
-
AUTO:
|
|
143
|
+
SIZE_1024X1024: "1024x1024"
|
|
144
|
+
SIZE_1024X1536: "1024x1536"
|
|
145
|
+
SIZE_1536X1024: "1536x1024"
|
|
146
|
+
AUTO: "auto"
|
|
142
147
|
|
|
143
|
-
def self?.values: -> ::Array[
|
|
144
|
-
| :"1024x1536"
|
|
145
|
-
| :"1536x1024"
|
|
146
|
-
| :auto)]
|
|
148
|
+
def self?.values: -> ::Array[String]
|
|
147
149
|
end
|
|
148
150
|
|
|
149
151
|
type usage =
|
|
@@ -32,7 +32,12 @@ module OpenAI
|
|
|
32
32
|
attr_accessor quality: OpenAI::Models::ImageGenPartialImageEvent::quality
|
|
33
33
|
|
|
34
34
|
# The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.
|
|
35
|
-
|
|
35
|
+
attr_reader size: String
|
|
36
|
+
|
|
37
|
+
# The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.
|
|
38
|
+
def size=: (
|
|
39
|
+
OpenAI::Models::ImageGenPartialImageEvent::size
|
|
40
|
+
) -> OpenAI::Models::ImageGenPartialImageEvent::size
|
|
36
41
|
|
|
37
42
|
# The type of the event. Always `image_generation.partial_image`.
|
|
38
43
|
attr_accessor type: :"image_generation.partial_image"
|
|
@@ -121,15 +126,12 @@ module OpenAI
|
|
|
121
126
|
|
|
122
127
|
def self?.variants: -> ::Array[OpenAI::Models::ImageGenPartialImageEvent::size]
|
|
123
128
|
|
|
124
|
-
SIZE_1024X1024:
|
|
125
|
-
SIZE_1024X1536:
|
|
126
|
-
SIZE_1536X1024:
|
|
127
|
-
AUTO:
|
|
129
|
+
SIZE_1024X1024: "1024x1024"
|
|
130
|
+
SIZE_1024X1536: "1024x1536"
|
|
131
|
+
SIZE_1536X1024: "1536x1024"
|
|
132
|
+
AUTO: "auto"
|
|
128
133
|
|
|
129
|
-
def self?.values: -> ::Array[
|
|
130
|
-
| :"1024x1536"
|
|
131
|
-
| :"1536x1024"
|
|
132
|
-
| :auto)]
|
|
134
|
+
def self?.values: -> ::Array[String]
|
|
133
135
|
end
|
|
134
136
|
end
|
|
135
137
|
end
|
|
@@ -57,7 +57,7 @@ module OpenAI
|
|
|
57
57
|
attr_accessor safety_identifier: String?
|
|
58
58
|
|
|
59
59
|
# The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.
|
|
60
|
-
attr_reader size:
|
|
60
|
+
attr_reader size: String?
|
|
61
61
|
|
|
62
62
|
# The image dimensions as a `WIDTHxHEIGHT` string, for example `1536x864`.
|
|
63
63
|
def size=: (
|
|
@@ -172,13 +172,11 @@ module OpenAI
|
|
|
172
172
|
|
|
173
173
|
def self?.variants: -> ::Array[OpenAI::Models::ImagesResponse::size]
|
|
174
174
|
|
|
175
|
-
SIZE_1024X1024:
|
|
176
|
-
SIZE_1024X1536:
|
|
177
|
-
SIZE_1536X1024:
|
|
175
|
+
SIZE_1024X1024: "1024x1024"
|
|
176
|
+
SIZE_1024X1536: "1024x1536"
|
|
177
|
+
SIZE_1536X1024: "1536x1024"
|
|
178
178
|
|
|
179
|
-
def self?.values: -> ::Array[
|
|
180
|
-
| :"1024x1536"
|
|
181
|
-
| :"1536x1024")]
|
|
179
|
+
def self?.values: -> ::Array[String]
|
|
182
180
|
end
|
|
183
181
|
|
|
184
182
|
type svg_usage =
|
|
@@ -222,8 +222,8 @@ module OpenAI
|
|
|
222
222
|
|
|
223
223
|
type tool_choice =
|
|
224
224
|
OpenAI::Models::Live::ResponsesDelegationConfig::ToolChoice::live_tool_choice_enum
|
|
225
|
-
| OpenAI::Live::ResponsesDelegationConfig::ToolChoice::
|
|
226
|
-
| OpenAI::Live::ResponsesDelegationConfig::ToolChoice::
|
|
225
|
+
| OpenAI::Live::ResponsesDelegationConfig::ToolChoice::Function
|
|
226
|
+
| OpenAI::Live::ResponsesDelegationConfig::ToolChoice::Mcp
|
|
227
227
|
| OpenAI::Live::ResponsesDelegationConfig::ToolChoice::FileSearch
|
|
228
228
|
| OpenAI::Live::ResponsesDelegationConfig::ToolChoice::WebSearch
|
|
229
229
|
| OpenAI::Live::ResponsesDelegationConfig::ToolChoice::WebSearchPreview
|
|
@@ -251,36 +251,53 @@ module OpenAI
|
|
|
251
251
|
def self?.values: -> ::Array[OpenAI::Models::Live::ResponsesDelegationConfig::ToolChoice::live_tool_choice_enum]
|
|
252
252
|
end
|
|
253
253
|
|
|
254
|
-
type
|
|
255
|
-
{ name: String, ?type: :function }
|
|
254
|
+
type function = { name: String, ?type: :function }
|
|
256
255
|
|
|
257
|
-
class
|
|
256
|
+
class Function < OpenAI::Internal::Type::BaseModel
|
|
257
|
+
# The name of the function tool to call.
|
|
258
258
|
attr_accessor name: String
|
|
259
259
|
|
|
260
|
+
# The tool to call. Always `function`.
|
|
260
261
|
attr_accessor type: :function
|
|
261
262
|
|
|
263
|
+
# @param name
|
|
264
|
+
# The name of the function tool to call.
|
|
265
|
+
# @param type
|
|
266
|
+
# The tool to call. Always `function`.
|
|
262
267
|
def initialize: (name: String, ?type: :function) -> void
|
|
263
268
|
|
|
264
269
|
def to_hash: -> { name: String, ?type: :function }
|
|
265
270
|
end
|
|
266
271
|
|
|
267
|
-
type
|
|
268
|
-
{ name: String, server_label: String, ?type: :mcp }
|
|
269
|
-
|
|
270
|
-
class LiveMCPToolChoiceParam < OpenAI::Internal::Type::BaseModel
|
|
271
|
-
attr_accessor name: String
|
|
272
|
+
type mcp = { server_label: String, ?type: :mcp, ?name: String? }
|
|
272
273
|
|
|
274
|
+
class Mcp < OpenAI::Internal::Type::BaseModel
|
|
275
|
+
# The label of the MCP server to call.
|
|
273
276
|
attr_accessor server_label: String
|
|
274
277
|
|
|
278
|
+
# The tool to call. Always `mcp`.
|
|
275
279
|
attr_accessor type: :mcp
|
|
276
280
|
|
|
281
|
+
# The name of the MCP tool to call. If omitted, the server may choose a default.
|
|
282
|
+
attr_accessor name: String?
|
|
283
|
+
|
|
284
|
+
# @param server_label
|
|
285
|
+
# The label of the MCP server to call.
|
|
286
|
+
# @param name
|
|
287
|
+
# The name of the MCP tool to call. If omitted, the server may choose a default.
|
|
288
|
+
# @param type
|
|
289
|
+
# The tool to call. Always `mcp`.
|
|
277
290
|
def initialize: (
|
|
278
|
-
name: String,
|
|
279
291
|
server_label: String,
|
|
292
|
+
?name: String?,
|
|
280
293
|
?type: :mcp
|
|
281
294
|
) -> void
|
|
282
295
|
|
|
283
|
-
def to_hash: -> {
|
|
296
|
+
def to_hash: -> {
|
|
297
|
+
server_label: String,
|
|
298
|
+
?type: :mcp,
|
|
299
|
+
?name: String?
|
|
300
|
+
}
|
|
284
301
|
end
|
|
285
302
|
|
|
286
303
|
type file_search = { ?type: :file_search }
|
|
@@ -473,34 +490,49 @@ module OpenAI
|
|
|
473
490
|
type function = { name: String, ?type: :function }
|
|
474
491
|
|
|
475
492
|
class Function < OpenAI::Internal::Type::BaseModel
|
|
493
|
+
# The name of the function tool to call.
|
|
476
494
|
attr_accessor name: String
|
|
477
495
|
|
|
496
|
+
# The tool to call. Always `function`.
|
|
478
497
|
attr_accessor type: :function
|
|
479
498
|
|
|
499
|
+
# @param name
|
|
500
|
+
# The name of the function tool to call.
|
|
501
|
+
# @param type
|
|
502
|
+
# The tool to call. Always `function`.
|
|
480
503
|
def initialize: (name: String, ?type: :function) -> void
|
|
481
504
|
|
|
482
505
|
def to_hash: -> { name: String, ?type: :function }
|
|
483
506
|
end
|
|
484
507
|
|
|
485
|
-
type mcp = {
|
|
508
|
+
type mcp = { server_label: String, ?type: :mcp, ?name: String? }
|
|
486
509
|
|
|
487
510
|
class Mcp < OpenAI::Internal::Type::BaseModel
|
|
488
|
-
|
|
489
|
-
|
|
511
|
+
# The label of the MCP server to call.
|
|
490
512
|
attr_accessor server_label: String
|
|
491
513
|
|
|
514
|
+
# The tool to call. Always `mcp`.
|
|
492
515
|
attr_accessor type: :mcp
|
|
493
516
|
|
|
517
|
+
# The name of the MCP tool to call. If omitted, the server may choose a default.
|
|
518
|
+
attr_accessor name: String?
|
|
519
|
+
|
|
520
|
+
# @param server_label
|
|
521
|
+
# The label of the MCP server to call.
|
|
522
|
+
# @param name
|
|
523
|
+
# The name of the MCP tool to call. If omitted, the server may choose a default.
|
|
524
|
+
# @param type
|
|
525
|
+
# The tool to call. Always `mcp`.
|
|
494
526
|
def initialize: (
|
|
495
|
-
name: String,
|
|
496
527
|
server_label: String,
|
|
528
|
+
?name: String?,
|
|
497
529
|
?type: :mcp
|
|
498
530
|
) -> void
|
|
499
531
|
|
|
500
532
|
def to_hash: -> {
|
|
501
|
-
name: String,
|
|
502
533
|
server_label: String,
|
|
503
|
-
?type: :mcp
|
|
534
|
+
?type: :mcp,
|
|
535
|
+
?name: String?
|
|
504
536
|
}
|
|
505
537
|
end
|
|
506
538
|
|
|
@@ -228,8 +228,8 @@ module OpenAI
|
|
|
228
228
|
|
|
229
229
|
type tool_choice =
|
|
230
230
|
OpenAI::Models::Live::ResponsesDelegationUpdateConfig::ToolChoice::live_tool_choice_enum
|
|
231
|
-
| OpenAI::Live::ResponsesDelegationUpdateConfig::ToolChoice::
|
|
232
|
-
| OpenAI::Live::ResponsesDelegationUpdateConfig::ToolChoice::
|
|
231
|
+
| OpenAI::Live::ResponsesDelegationUpdateConfig::ToolChoice::Function
|
|
232
|
+
| OpenAI::Live::ResponsesDelegationUpdateConfig::ToolChoice::Mcp
|
|
233
233
|
| OpenAI::Live::ResponsesDelegationUpdateConfig::ToolChoice::FileSearch
|
|
234
234
|
| OpenAI::Live::ResponsesDelegationUpdateConfig::ToolChoice::WebSearch
|
|
235
235
|
| OpenAI::Live::ResponsesDelegationUpdateConfig::ToolChoice::WebSearchPreview
|
|
@@ -257,36 +257,53 @@ module OpenAI
|
|
|
257
257
|
def self?.values: -> ::Array[OpenAI::Models::Live::ResponsesDelegationUpdateConfig::ToolChoice::live_tool_choice_enum]
|
|
258
258
|
end
|
|
259
259
|
|
|
260
|
-
type
|
|
261
|
-
{ name: String, ?type: :function }
|
|
260
|
+
type function = { name: String, ?type: :function }
|
|
262
261
|
|
|
263
|
-
class
|
|
262
|
+
class Function < OpenAI::Internal::Type::BaseModel
|
|
263
|
+
# The name of the function tool to call.
|
|
264
264
|
attr_accessor name: String
|
|
265
265
|
|
|
266
|
+
# The tool to call. Always `function`.
|
|
266
267
|
attr_accessor type: :function
|
|
267
268
|
|
|
269
|
+
# @param name
|
|
270
|
+
# The name of the function tool to call.
|
|
271
|
+
# @param type
|
|
272
|
+
# The tool to call. Always `function`.
|
|
268
273
|
def initialize: (name: String, ?type: :function) -> void
|
|
269
274
|
|
|
270
275
|
def to_hash: -> { name: String, ?type: :function }
|
|
271
276
|
end
|
|
272
277
|
|
|
273
|
-
type
|
|
274
|
-
{ name: String, server_label: String, ?type: :mcp }
|
|
275
|
-
|
|
276
|
-
class LiveMCPToolChoiceParam < OpenAI::Internal::Type::BaseModel
|
|
277
|
-
attr_accessor name: String
|
|
278
|
+
type mcp = { server_label: String, ?type: :mcp, ?name: String? }
|
|
278
279
|
|
|
280
|
+
class Mcp < OpenAI::Internal::Type::BaseModel
|
|
281
|
+
# The label of the MCP server to call.
|
|
279
282
|
attr_accessor server_label: String
|
|
280
283
|
|
|
284
|
+
# The tool to call. Always `mcp`.
|
|
281
285
|
attr_accessor type: :mcp
|
|
282
286
|
|
|
287
|
+
# The name of the MCP tool to call. If omitted, the server may choose a default.
|
|
288
|
+
attr_accessor name: String?
|
|
289
|
+
|
|
290
|
+
# @param server_label
|
|
291
|
+
# The label of the MCP server to call.
|
|
292
|
+
# @param name
|
|
293
|
+
# The name of the MCP tool to call. If omitted, the server may choose a default.
|
|
294
|
+
# @param type
|
|
295
|
+
# The tool to call. Always `mcp`.
|
|
283
296
|
def initialize: (
|
|
284
|
-
name: String,
|
|
285
297
|
server_label: String,
|
|
298
|
+
?name: String?,
|
|
286
299
|
?type: :mcp
|
|
287
300
|
) -> void
|
|
288
301
|
|
|
289
|
-
def to_hash: -> {
|
|
302
|
+
def to_hash: -> {
|
|
303
|
+
server_label: String,
|
|
304
|
+
?type: :mcp,
|
|
305
|
+
?name: String?
|
|
306
|
+
}
|
|
290
307
|
end
|
|
291
308
|
|
|
292
309
|
type file_search = { ?type: :file_search }
|
|
@@ -479,34 +496,49 @@ module OpenAI
|
|
|
479
496
|
type function = { name: String, ?type: :function }
|
|
480
497
|
|
|
481
498
|
class Function < OpenAI::Internal::Type::BaseModel
|
|
499
|
+
# The name of the function tool to call.
|
|
482
500
|
attr_accessor name: String
|
|
483
501
|
|
|
502
|
+
# The tool to call. Always `function`.
|
|
484
503
|
attr_accessor type: :function
|
|
485
504
|
|
|
505
|
+
# @param name
|
|
506
|
+
# The name of the function tool to call.
|
|
507
|
+
# @param type
|
|
508
|
+
# The tool to call. Always `function`.
|
|
486
509
|
def initialize: (name: String, ?type: :function) -> void
|
|
487
510
|
|
|
488
511
|
def to_hash: -> { name: String, ?type: :function }
|
|
489
512
|
end
|
|
490
513
|
|
|
491
|
-
type mcp = {
|
|
514
|
+
type mcp = { server_label: String, ?type: :mcp, ?name: String? }
|
|
492
515
|
|
|
493
516
|
class Mcp < OpenAI::Internal::Type::BaseModel
|
|
494
|
-
|
|
495
|
-
|
|
517
|
+
# The label of the MCP server to call.
|
|
496
518
|
attr_accessor server_label: String
|
|
497
519
|
|
|
520
|
+
# The tool to call. Always `mcp`.
|
|
498
521
|
attr_accessor type: :mcp
|
|
499
522
|
|
|
523
|
+
# The name of the MCP tool to call. If omitted, the server may choose a default.
|
|
524
|
+
attr_accessor name: String?
|
|
525
|
+
|
|
526
|
+
# @param server_label
|
|
527
|
+
# The label of the MCP server to call.
|
|
528
|
+
# @param name
|
|
529
|
+
# The name of the MCP tool to call. If omitted, the server may choose a default.
|
|
530
|
+
# @param type
|
|
531
|
+
# The tool to call. Always `mcp`.
|
|
500
532
|
def initialize: (
|
|
501
|
-
name: String,
|
|
502
533
|
server_label: String,
|
|
534
|
+
?name: String?,
|
|
503
535
|
?type: :mcp
|
|
504
536
|
) -> void
|
|
505
537
|
|
|
506
538
|
def to_hash: -> {
|
|
507
|
-
name: String,
|
|
508
539
|
server_label: String,
|
|
509
|
-
?type: :mcp
|
|
540
|
+
?type: :mcp,
|
|
541
|
+
?name: String?
|
|
510
542
|
}
|
|
511
543
|
end
|
|
512
544
|
|