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
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module OpenAI
|
|
4
|
-
module Models
|
|
5
|
-
module Beta
|
|
6
|
-
module Threads
|
|
7
|
-
# A citation within the message that points to a specific quote from a specific
|
|
8
|
-
# File associated with the assistant or the message. Generated when the assistant
|
|
9
|
-
# uses the "file_search" tool to search files.
|
|
10
|
-
module Annotation
|
|
11
|
-
extend OpenAI::Internal::Type::Union
|
|
12
|
-
|
|
13
|
-
discriminator :type
|
|
14
|
-
|
|
15
|
-
# A citation within the message that points to a specific quote from a specific File associated with the assistant or the message. Generated when the assistant uses the "file_search" tool to search files.
|
|
16
|
-
variant :file_citation, -> { OpenAI::Beta::Threads::FileCitationAnnotation }
|
|
17
|
-
|
|
18
|
-
# A URL for the file that's generated when the assistant used the `code_interpreter` tool to generate a file.
|
|
19
|
-
variant :file_path, -> { OpenAI::Beta::Threads::FilePathAnnotation }
|
|
20
|
-
|
|
21
|
-
# @!method self.variants
|
|
22
|
-
# @return [Array(OpenAI::Models::Beta::Threads::FileCitationAnnotation, OpenAI::Models::Beta::Threads::FilePathAnnotation)]
|
|
23
|
-
end
|
|
24
|
-
end
|
|
25
|
-
end
|
|
26
|
-
end
|
|
27
|
-
end
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module OpenAI
|
|
4
|
-
module Models
|
|
5
|
-
module Beta
|
|
6
|
-
module Threads
|
|
7
|
-
# A citation within the message that points to a specific quote from a specific
|
|
8
|
-
# File associated with the assistant or the message. Generated when the assistant
|
|
9
|
-
# uses the "file_search" tool to search files.
|
|
10
|
-
module AnnotationDelta
|
|
11
|
-
extend OpenAI::Internal::Type::Union
|
|
12
|
-
|
|
13
|
-
discriminator :type
|
|
14
|
-
|
|
15
|
-
# A citation within the message that points to a specific quote from a specific File associated with the assistant or the message. Generated when the assistant uses the "file_search" tool to search files.
|
|
16
|
-
variant :file_citation, -> { OpenAI::Beta::Threads::FileCitationDeltaAnnotation }
|
|
17
|
-
|
|
18
|
-
# A URL for the file that's generated when the assistant used the `code_interpreter` tool to generate a file.
|
|
19
|
-
variant :file_path, -> { OpenAI::Beta::Threads::FilePathDeltaAnnotation }
|
|
20
|
-
|
|
21
|
-
# @!method self.variants
|
|
22
|
-
# @return [Array(OpenAI::Models::Beta::Threads::FileCitationDeltaAnnotation, OpenAI::Models::Beta::Threads::FilePathDeltaAnnotation)]
|
|
23
|
-
end
|
|
24
|
-
end
|
|
25
|
-
end
|
|
26
|
-
end
|
|
27
|
-
end
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module OpenAI
|
|
4
|
-
module Models
|
|
5
|
-
module Beta
|
|
6
|
-
module Threads
|
|
7
|
-
class FileCitationAnnotation < OpenAI::Internal::Type::BaseModel
|
|
8
|
-
# @!attribute end_index
|
|
9
|
-
#
|
|
10
|
-
# @return [Integer]
|
|
11
|
-
required :end_index, Integer
|
|
12
|
-
|
|
13
|
-
# @!attribute file_citation
|
|
14
|
-
#
|
|
15
|
-
# @return [OpenAI::Models::Beta::Threads::FileCitationAnnotation::FileCitation]
|
|
16
|
-
required :file_citation, -> { OpenAI::Beta::Threads::FileCitationAnnotation::FileCitation }
|
|
17
|
-
|
|
18
|
-
# @!attribute start_index
|
|
19
|
-
#
|
|
20
|
-
# @return [Integer]
|
|
21
|
-
required :start_index, Integer
|
|
22
|
-
|
|
23
|
-
# @!attribute text
|
|
24
|
-
# The text in the message content that needs to be replaced.
|
|
25
|
-
#
|
|
26
|
-
# @return [String]
|
|
27
|
-
required :text, String
|
|
28
|
-
|
|
29
|
-
# @!attribute type
|
|
30
|
-
# Always `file_citation`.
|
|
31
|
-
#
|
|
32
|
-
# @return [Symbol, :file_citation]
|
|
33
|
-
required :type, const: :file_citation
|
|
34
|
-
|
|
35
|
-
# @!method initialize(end_index:, file_citation:, start_index:, text:, type: :file_citation)
|
|
36
|
-
# A citation within the message that points to a specific quote from a specific
|
|
37
|
-
# File associated with the assistant or the message. Generated when the assistant
|
|
38
|
-
# uses the "file_search" tool to search files.
|
|
39
|
-
#
|
|
40
|
-
# @param end_index [Integer]
|
|
41
|
-
#
|
|
42
|
-
# @param file_citation [OpenAI::Models::Beta::Threads::FileCitationAnnotation::FileCitation]
|
|
43
|
-
#
|
|
44
|
-
# @param start_index [Integer]
|
|
45
|
-
#
|
|
46
|
-
# @param text [String]
|
|
47
|
-
# The text in the message content that needs to be replaced.
|
|
48
|
-
#
|
|
49
|
-
# @param type [Symbol, :file_citation]
|
|
50
|
-
# Always `file_citation`.
|
|
51
|
-
|
|
52
|
-
# @see OpenAI::Models::Beta::Threads::FileCitationAnnotation#file_citation
|
|
53
|
-
class FileCitation < OpenAI::Internal::Type::BaseModel
|
|
54
|
-
# @!attribute file_id
|
|
55
|
-
# The ID of the specific File the citation is from.
|
|
56
|
-
#
|
|
57
|
-
# @return [String]
|
|
58
|
-
required :file_id, String
|
|
59
|
-
|
|
60
|
-
# @!method initialize(file_id:)
|
|
61
|
-
# @param file_id [String]
|
|
62
|
-
# The ID of the specific File the citation is from.
|
|
63
|
-
end
|
|
64
|
-
end
|
|
65
|
-
end
|
|
66
|
-
end
|
|
67
|
-
end
|
|
68
|
-
end
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module OpenAI
|
|
4
|
-
module Models
|
|
5
|
-
module Beta
|
|
6
|
-
module Threads
|
|
7
|
-
class FileCitationDeltaAnnotation < OpenAI::Internal::Type::BaseModel
|
|
8
|
-
# @!attribute index
|
|
9
|
-
# The index of the annotation in the text content part.
|
|
10
|
-
#
|
|
11
|
-
# @return [Integer]
|
|
12
|
-
required :index, Integer
|
|
13
|
-
|
|
14
|
-
# @!attribute type
|
|
15
|
-
# Always `file_citation`.
|
|
16
|
-
#
|
|
17
|
-
# @return [Symbol, :file_citation]
|
|
18
|
-
required :type, const: :file_citation
|
|
19
|
-
|
|
20
|
-
# @!attribute end_index
|
|
21
|
-
#
|
|
22
|
-
# @return [Integer, nil]
|
|
23
|
-
optional :end_index, Integer
|
|
24
|
-
|
|
25
|
-
# @!attribute file_citation
|
|
26
|
-
#
|
|
27
|
-
# @return [OpenAI::Models::Beta::Threads::FileCitationDeltaAnnotation::FileCitation, nil]
|
|
28
|
-
optional :file_citation, -> { OpenAI::Beta::Threads::FileCitationDeltaAnnotation::FileCitation }
|
|
29
|
-
|
|
30
|
-
# @!attribute start_index
|
|
31
|
-
#
|
|
32
|
-
# @return [Integer, nil]
|
|
33
|
-
optional :start_index, Integer
|
|
34
|
-
|
|
35
|
-
# @!attribute text
|
|
36
|
-
# The text in the message content that needs to be replaced.
|
|
37
|
-
#
|
|
38
|
-
# @return [String, nil]
|
|
39
|
-
optional :text, String
|
|
40
|
-
|
|
41
|
-
# @!method initialize(index:, end_index: nil, file_citation: nil, start_index: nil, text: nil, type: :file_citation)
|
|
42
|
-
# A citation within the message that points to a specific quote from a specific
|
|
43
|
-
# File associated with the assistant or the message. Generated when the assistant
|
|
44
|
-
# uses the "file_search" tool to search files.
|
|
45
|
-
#
|
|
46
|
-
# @param index [Integer]
|
|
47
|
-
# The index of the annotation in the text content part.
|
|
48
|
-
#
|
|
49
|
-
# @param end_index [Integer]
|
|
50
|
-
#
|
|
51
|
-
# @param file_citation [OpenAI::Models::Beta::Threads::FileCitationDeltaAnnotation::FileCitation]
|
|
52
|
-
#
|
|
53
|
-
# @param start_index [Integer]
|
|
54
|
-
#
|
|
55
|
-
# @param text [String]
|
|
56
|
-
# The text in the message content that needs to be replaced.
|
|
57
|
-
#
|
|
58
|
-
# @param type [Symbol, :file_citation]
|
|
59
|
-
# Always `file_citation`.
|
|
60
|
-
|
|
61
|
-
# @see OpenAI::Models::Beta::Threads::FileCitationDeltaAnnotation#file_citation
|
|
62
|
-
class FileCitation < OpenAI::Internal::Type::BaseModel
|
|
63
|
-
# @!attribute file_id
|
|
64
|
-
# The ID of the specific File the citation is from.
|
|
65
|
-
#
|
|
66
|
-
# @return [String, nil]
|
|
67
|
-
optional :file_id, String
|
|
68
|
-
|
|
69
|
-
# @!attribute quote
|
|
70
|
-
# The specific quote in the file.
|
|
71
|
-
#
|
|
72
|
-
# @return [String, nil]
|
|
73
|
-
optional :quote, String
|
|
74
|
-
|
|
75
|
-
# @!method initialize(file_id: nil, quote: nil)
|
|
76
|
-
# @param file_id [String]
|
|
77
|
-
# The ID of the specific File the citation is from.
|
|
78
|
-
#
|
|
79
|
-
# @param quote [String]
|
|
80
|
-
# The specific quote in the file.
|
|
81
|
-
end
|
|
82
|
-
end
|
|
83
|
-
end
|
|
84
|
-
end
|
|
85
|
-
end
|
|
86
|
-
end
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module OpenAI
|
|
4
|
-
module Models
|
|
5
|
-
module Beta
|
|
6
|
-
module Threads
|
|
7
|
-
class FilePathAnnotation < OpenAI::Internal::Type::BaseModel
|
|
8
|
-
# @!attribute end_index
|
|
9
|
-
#
|
|
10
|
-
# @return [Integer]
|
|
11
|
-
required :end_index, Integer
|
|
12
|
-
|
|
13
|
-
# @!attribute file_path
|
|
14
|
-
#
|
|
15
|
-
# @return [OpenAI::Models::Beta::Threads::FilePathAnnotation::FilePath]
|
|
16
|
-
required :file_path, -> { OpenAI::Beta::Threads::FilePathAnnotation::FilePath }
|
|
17
|
-
|
|
18
|
-
# @!attribute start_index
|
|
19
|
-
#
|
|
20
|
-
# @return [Integer]
|
|
21
|
-
required :start_index, Integer
|
|
22
|
-
|
|
23
|
-
# @!attribute text
|
|
24
|
-
# The text in the message content that needs to be replaced.
|
|
25
|
-
#
|
|
26
|
-
# @return [String]
|
|
27
|
-
required :text, String
|
|
28
|
-
|
|
29
|
-
# @!attribute type
|
|
30
|
-
# Always `file_path`.
|
|
31
|
-
#
|
|
32
|
-
# @return [Symbol, :file_path]
|
|
33
|
-
required :type, const: :file_path
|
|
34
|
-
|
|
35
|
-
# @!method initialize(end_index:, file_path:, start_index:, text:, type: :file_path)
|
|
36
|
-
# A URL for the file that's generated when the assistant used the
|
|
37
|
-
# `code_interpreter` tool to generate a file.
|
|
38
|
-
#
|
|
39
|
-
# @param end_index [Integer]
|
|
40
|
-
#
|
|
41
|
-
# @param file_path [OpenAI::Models::Beta::Threads::FilePathAnnotation::FilePath]
|
|
42
|
-
#
|
|
43
|
-
# @param start_index [Integer]
|
|
44
|
-
#
|
|
45
|
-
# @param text [String]
|
|
46
|
-
# The text in the message content that needs to be replaced.
|
|
47
|
-
#
|
|
48
|
-
# @param type [Symbol, :file_path]
|
|
49
|
-
# Always `file_path`.
|
|
50
|
-
|
|
51
|
-
# @see OpenAI::Models::Beta::Threads::FilePathAnnotation#file_path
|
|
52
|
-
class FilePath < OpenAI::Internal::Type::BaseModel
|
|
53
|
-
# @!attribute file_id
|
|
54
|
-
# The ID of the file that was generated.
|
|
55
|
-
#
|
|
56
|
-
# @return [String]
|
|
57
|
-
required :file_id, String
|
|
58
|
-
|
|
59
|
-
# @!method initialize(file_id:)
|
|
60
|
-
# @param file_id [String]
|
|
61
|
-
# The ID of the file that was generated.
|
|
62
|
-
end
|
|
63
|
-
end
|
|
64
|
-
end
|
|
65
|
-
end
|
|
66
|
-
end
|
|
67
|
-
end
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module OpenAI
|
|
4
|
-
module Models
|
|
5
|
-
module Beta
|
|
6
|
-
module Threads
|
|
7
|
-
class FilePathDeltaAnnotation < OpenAI::Internal::Type::BaseModel
|
|
8
|
-
# @!attribute index
|
|
9
|
-
# The index of the annotation in the text content part.
|
|
10
|
-
#
|
|
11
|
-
# @return [Integer]
|
|
12
|
-
required :index, Integer
|
|
13
|
-
|
|
14
|
-
# @!attribute type
|
|
15
|
-
# Always `file_path`.
|
|
16
|
-
#
|
|
17
|
-
# @return [Symbol, :file_path]
|
|
18
|
-
required :type, const: :file_path
|
|
19
|
-
|
|
20
|
-
# @!attribute end_index
|
|
21
|
-
#
|
|
22
|
-
# @return [Integer, nil]
|
|
23
|
-
optional :end_index, Integer
|
|
24
|
-
|
|
25
|
-
# @!attribute file_path
|
|
26
|
-
#
|
|
27
|
-
# @return [OpenAI::Models::Beta::Threads::FilePathDeltaAnnotation::FilePath, nil]
|
|
28
|
-
optional :file_path, -> { OpenAI::Beta::Threads::FilePathDeltaAnnotation::FilePath }
|
|
29
|
-
|
|
30
|
-
# @!attribute start_index
|
|
31
|
-
#
|
|
32
|
-
# @return [Integer, nil]
|
|
33
|
-
optional :start_index, Integer
|
|
34
|
-
|
|
35
|
-
# @!attribute text
|
|
36
|
-
# The text in the message content that needs to be replaced.
|
|
37
|
-
#
|
|
38
|
-
# @return [String, nil]
|
|
39
|
-
optional :text, String
|
|
40
|
-
|
|
41
|
-
# @!method initialize(index:, end_index: nil, file_path: nil, start_index: nil, text: nil, type: :file_path)
|
|
42
|
-
# A URL for the file that's generated when the assistant used the
|
|
43
|
-
# `code_interpreter` tool to generate a file.
|
|
44
|
-
#
|
|
45
|
-
# @param index [Integer]
|
|
46
|
-
# The index of the annotation in the text content part.
|
|
47
|
-
#
|
|
48
|
-
# @param end_index [Integer]
|
|
49
|
-
#
|
|
50
|
-
# @param file_path [OpenAI::Models::Beta::Threads::FilePathDeltaAnnotation::FilePath]
|
|
51
|
-
#
|
|
52
|
-
# @param start_index [Integer]
|
|
53
|
-
#
|
|
54
|
-
# @param text [String]
|
|
55
|
-
# The text in the message content that needs to be replaced.
|
|
56
|
-
#
|
|
57
|
-
# @param type [Symbol, :file_path]
|
|
58
|
-
# Always `file_path`.
|
|
59
|
-
|
|
60
|
-
# @see OpenAI::Models::Beta::Threads::FilePathDeltaAnnotation#file_path
|
|
61
|
-
class FilePath < OpenAI::Internal::Type::BaseModel
|
|
62
|
-
# @!attribute file_id
|
|
63
|
-
# The ID of the file that was generated.
|
|
64
|
-
#
|
|
65
|
-
# @return [String, nil]
|
|
66
|
-
optional :file_id, String
|
|
67
|
-
|
|
68
|
-
# @!method initialize(file_id: nil)
|
|
69
|
-
# @param file_id [String]
|
|
70
|
-
# The ID of the file that was generated.
|
|
71
|
-
end
|
|
72
|
-
end
|
|
73
|
-
end
|
|
74
|
-
end
|
|
75
|
-
end
|
|
76
|
-
end
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module OpenAI
|
|
4
|
-
module Models
|
|
5
|
-
module Beta
|
|
6
|
-
module Threads
|
|
7
|
-
class ImageFile < OpenAI::Internal::Type::BaseModel
|
|
8
|
-
# @!attribute file_id
|
|
9
|
-
# The [File](https://developers.openai.com/api/reference/resources/files) ID of
|
|
10
|
-
# the image in the message content. Set `purpose="vision"` when uploading the File
|
|
11
|
-
# if you need to later display the file content.
|
|
12
|
-
#
|
|
13
|
-
# @return [String]
|
|
14
|
-
required :file_id, String
|
|
15
|
-
|
|
16
|
-
# @!attribute detail
|
|
17
|
-
# Specifies the detail level of the image if specified by the user. `low` uses
|
|
18
|
-
# fewer tokens, you can opt in to high resolution using `high`.
|
|
19
|
-
#
|
|
20
|
-
# @return [Symbol, OpenAI::Models::Beta::Threads::ImageFile::Detail, nil]
|
|
21
|
-
optional :detail, enum: -> { OpenAI::Beta::Threads::ImageFile::Detail }
|
|
22
|
-
|
|
23
|
-
# @!method initialize(file_id:, detail: nil)
|
|
24
|
-
# @param file_id [String]
|
|
25
|
-
# The [File](https://developers.openai.com/api/reference/resources/files) ID of
|
|
26
|
-
# the image in the message content. Set `purpose="vision"` when uploading the File
|
|
27
|
-
# if you need to later display the file content.
|
|
28
|
-
#
|
|
29
|
-
# @param detail [Symbol, OpenAI::Models::Beta::Threads::ImageFile::Detail]
|
|
30
|
-
# Specifies the detail level of the image if specified by the user. `low` uses
|
|
31
|
-
# fewer tokens, you can opt in to high resolution using `high`.
|
|
32
|
-
|
|
33
|
-
# Specifies the detail level of the image if specified by the user. `low` uses
|
|
34
|
-
# fewer tokens, you can opt in to high resolution using `high`.
|
|
35
|
-
#
|
|
36
|
-
# @see OpenAI::Models::Beta::Threads::ImageFile#detail
|
|
37
|
-
module Detail
|
|
38
|
-
extend OpenAI::Internal::Type::Enum
|
|
39
|
-
|
|
40
|
-
AUTO = :auto
|
|
41
|
-
LOW = :low
|
|
42
|
-
HIGH = :high
|
|
43
|
-
|
|
44
|
-
# @!method self.values
|
|
45
|
-
# @return [Array<Symbol>]
|
|
46
|
-
end
|
|
47
|
-
end
|
|
48
|
-
end
|
|
49
|
-
end
|
|
50
|
-
end
|
|
51
|
-
end
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module OpenAI
|
|
4
|
-
module Models
|
|
5
|
-
module Beta
|
|
6
|
-
module Threads
|
|
7
|
-
class ImageFileContentBlock < OpenAI::Internal::Type::BaseModel
|
|
8
|
-
# @!attribute image_file
|
|
9
|
-
#
|
|
10
|
-
# @return [OpenAI::Models::Beta::Threads::ImageFile]
|
|
11
|
-
required :image_file, -> { OpenAI::Beta::Threads::ImageFile }
|
|
12
|
-
|
|
13
|
-
# @!attribute type
|
|
14
|
-
# Always `image_file`.
|
|
15
|
-
#
|
|
16
|
-
# @return [Symbol, :image_file]
|
|
17
|
-
required :type, const: :image_file
|
|
18
|
-
|
|
19
|
-
# @!method initialize(image_file:, type: :image_file)
|
|
20
|
-
# References an image
|
|
21
|
-
# [File](https://developers.openai.com/api/reference/resources/files) in the
|
|
22
|
-
# content of a message.
|
|
23
|
-
#
|
|
24
|
-
# @param image_file [OpenAI::Models::Beta::Threads::ImageFile]
|
|
25
|
-
#
|
|
26
|
-
# @param type [Symbol, :image_file]
|
|
27
|
-
# Always `image_file`.
|
|
28
|
-
end
|
|
29
|
-
end
|
|
30
|
-
end
|
|
31
|
-
end
|
|
32
|
-
end
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module OpenAI
|
|
4
|
-
module Models
|
|
5
|
-
module Beta
|
|
6
|
-
module Threads
|
|
7
|
-
class ImageFileDelta < OpenAI::Internal::Type::BaseModel
|
|
8
|
-
# @!attribute detail
|
|
9
|
-
# Specifies the detail level of the image if specified by the user. `low` uses
|
|
10
|
-
# fewer tokens, you can opt in to high resolution using `high`.
|
|
11
|
-
#
|
|
12
|
-
# @return [Symbol, OpenAI::Models::Beta::Threads::ImageFileDelta::Detail, nil]
|
|
13
|
-
optional :detail, enum: -> { OpenAI::Beta::Threads::ImageFileDelta::Detail }
|
|
14
|
-
|
|
15
|
-
# @!attribute file_id
|
|
16
|
-
# The [File](https://developers.openai.com/api/reference/resources/files) ID of
|
|
17
|
-
# the image in the message content. Set `purpose="vision"` when uploading the File
|
|
18
|
-
# if you need to later display the file content.
|
|
19
|
-
#
|
|
20
|
-
# @return [String, nil]
|
|
21
|
-
optional :file_id, String
|
|
22
|
-
|
|
23
|
-
# @!method initialize(detail: nil, file_id: nil)
|
|
24
|
-
# @param detail [Symbol, OpenAI::Models::Beta::Threads::ImageFileDelta::Detail]
|
|
25
|
-
# Specifies the detail level of the image if specified by the user. `low` uses
|
|
26
|
-
# fewer tokens, you can opt in to high resolution using `high`.
|
|
27
|
-
#
|
|
28
|
-
# @param file_id [String]
|
|
29
|
-
# The [File](https://developers.openai.com/api/reference/resources/files) ID of
|
|
30
|
-
# the image in the message content. Set `purpose="vision"` when uploading the File
|
|
31
|
-
# if you need to later display the file content.
|
|
32
|
-
|
|
33
|
-
# Specifies the detail level of the image if specified by the user. `low` uses
|
|
34
|
-
# fewer tokens, you can opt in to high resolution using `high`.
|
|
35
|
-
#
|
|
36
|
-
# @see OpenAI::Models::Beta::Threads::ImageFileDelta#detail
|
|
37
|
-
module Detail
|
|
38
|
-
extend OpenAI::Internal::Type::Enum
|
|
39
|
-
|
|
40
|
-
AUTO = :auto
|
|
41
|
-
LOW = :low
|
|
42
|
-
HIGH = :high
|
|
43
|
-
|
|
44
|
-
# @!method self.values
|
|
45
|
-
# @return [Array<Symbol>]
|
|
46
|
-
end
|
|
47
|
-
end
|
|
48
|
-
end
|
|
49
|
-
end
|
|
50
|
-
end
|
|
51
|
-
end
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module OpenAI
|
|
4
|
-
module Models
|
|
5
|
-
module Beta
|
|
6
|
-
module Threads
|
|
7
|
-
class ImageFileDeltaBlock < OpenAI::Internal::Type::BaseModel
|
|
8
|
-
# @!attribute index
|
|
9
|
-
# The index of the content part in the message.
|
|
10
|
-
#
|
|
11
|
-
# @return [Integer]
|
|
12
|
-
required :index, Integer
|
|
13
|
-
|
|
14
|
-
# @!attribute type
|
|
15
|
-
# Always `image_file`.
|
|
16
|
-
#
|
|
17
|
-
# @return [Symbol, :image_file]
|
|
18
|
-
required :type, const: :image_file
|
|
19
|
-
|
|
20
|
-
# @!attribute image_file
|
|
21
|
-
#
|
|
22
|
-
# @return [OpenAI::Models::Beta::Threads::ImageFileDelta, nil]
|
|
23
|
-
optional :image_file, -> { OpenAI::Beta::Threads::ImageFileDelta }
|
|
24
|
-
|
|
25
|
-
# @!method initialize(index:, image_file: nil, type: :image_file)
|
|
26
|
-
# References an image
|
|
27
|
-
# [File](https://developers.openai.com/api/reference/resources/files) in the
|
|
28
|
-
# content of a message.
|
|
29
|
-
#
|
|
30
|
-
# @param index [Integer]
|
|
31
|
-
# The index of the content part in the message.
|
|
32
|
-
#
|
|
33
|
-
# @param image_file [OpenAI::Models::Beta::Threads::ImageFileDelta]
|
|
34
|
-
#
|
|
35
|
-
# @param type [Symbol, :image_file]
|
|
36
|
-
# Always `image_file`.
|
|
37
|
-
end
|
|
38
|
-
end
|
|
39
|
-
end
|
|
40
|
-
end
|
|
41
|
-
end
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module OpenAI
|
|
4
|
-
module Models
|
|
5
|
-
module Beta
|
|
6
|
-
module Threads
|
|
7
|
-
class ImageURL < OpenAI::Internal::Type::BaseModel
|
|
8
|
-
# @!attribute url
|
|
9
|
-
# The external URL of the image, must be a supported image types: jpeg, jpg, png,
|
|
10
|
-
# gif, webp.
|
|
11
|
-
#
|
|
12
|
-
# @return [String]
|
|
13
|
-
required :url, String
|
|
14
|
-
|
|
15
|
-
# @!attribute detail
|
|
16
|
-
# Specifies the detail level of the image. `low` uses fewer tokens, you can opt in
|
|
17
|
-
# to high resolution using `high`. Default value is `auto`
|
|
18
|
-
#
|
|
19
|
-
# @return [Symbol, OpenAI::Models::Beta::Threads::ImageURL::Detail, nil]
|
|
20
|
-
optional :detail, enum: -> { OpenAI::Beta::Threads::ImageURL::Detail }
|
|
21
|
-
|
|
22
|
-
# @!method initialize(url:, detail: nil)
|
|
23
|
-
# @param url [String]
|
|
24
|
-
# The external URL of the image, must be a supported image types: jpeg, jpg, png,
|
|
25
|
-
# gif, webp.
|
|
26
|
-
#
|
|
27
|
-
# @param detail [Symbol, OpenAI::Models::Beta::Threads::ImageURL::Detail]
|
|
28
|
-
# Specifies the detail level of the image. `low` uses fewer tokens, you can opt in
|
|
29
|
-
# to high resolution using `high`. Default value is `auto`
|
|
30
|
-
|
|
31
|
-
# Specifies the detail level of the image. `low` uses fewer tokens, you can opt in
|
|
32
|
-
# to high resolution using `high`. Default value is `auto`
|
|
33
|
-
#
|
|
34
|
-
# @see OpenAI::Models::Beta::Threads::ImageURL#detail
|
|
35
|
-
module Detail
|
|
36
|
-
extend OpenAI::Internal::Type::Enum
|
|
37
|
-
|
|
38
|
-
AUTO = :auto
|
|
39
|
-
LOW = :low
|
|
40
|
-
HIGH = :high
|
|
41
|
-
|
|
42
|
-
# @!method self.values
|
|
43
|
-
# @return [Array<Symbol>]
|
|
44
|
-
end
|
|
45
|
-
end
|
|
46
|
-
end
|
|
47
|
-
end
|
|
48
|
-
end
|
|
49
|
-
end
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module OpenAI
|
|
4
|
-
module Models
|
|
5
|
-
module Beta
|
|
6
|
-
module Threads
|
|
7
|
-
class ImageURLContentBlock < OpenAI::Internal::Type::BaseModel
|
|
8
|
-
# @!attribute image_url
|
|
9
|
-
#
|
|
10
|
-
# @return [OpenAI::Models::Beta::Threads::ImageURL]
|
|
11
|
-
required :image_url, -> { OpenAI::Beta::Threads::ImageURL }
|
|
12
|
-
|
|
13
|
-
# @!attribute type
|
|
14
|
-
# The type of the content part.
|
|
15
|
-
#
|
|
16
|
-
# @return [Symbol, :image_url]
|
|
17
|
-
required :type, const: :image_url
|
|
18
|
-
|
|
19
|
-
# @!method initialize(image_url:, type: :image_url)
|
|
20
|
-
# References an image URL in the content of a message.
|
|
21
|
-
#
|
|
22
|
-
# @param image_url [OpenAI::Models::Beta::Threads::ImageURL]
|
|
23
|
-
#
|
|
24
|
-
# @param type [Symbol, :image_url]
|
|
25
|
-
# The type of the content part.
|
|
26
|
-
end
|
|
27
|
-
end
|
|
28
|
-
end
|
|
29
|
-
end
|
|
30
|
-
end
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module OpenAI
|
|
4
|
-
module Models
|
|
5
|
-
module Beta
|
|
6
|
-
module Threads
|
|
7
|
-
class ImageURLDelta < OpenAI::Internal::Type::BaseModel
|
|
8
|
-
# @!attribute detail
|
|
9
|
-
# Specifies the detail level of the image. `low` uses fewer tokens, you can opt in
|
|
10
|
-
# to high resolution using `high`.
|
|
11
|
-
#
|
|
12
|
-
# @return [Symbol, OpenAI::Models::Beta::Threads::ImageURLDelta::Detail, nil]
|
|
13
|
-
optional :detail, enum: -> { OpenAI::Beta::Threads::ImageURLDelta::Detail }
|
|
14
|
-
|
|
15
|
-
# @!attribute url
|
|
16
|
-
# The URL of the image, must be a supported image types: jpeg, jpg, png, gif,
|
|
17
|
-
# webp.
|
|
18
|
-
#
|
|
19
|
-
# @return [String, nil]
|
|
20
|
-
optional :url, String
|
|
21
|
-
|
|
22
|
-
# @!method initialize(detail: nil, url: nil)
|
|
23
|
-
# @param detail [Symbol, OpenAI::Models::Beta::Threads::ImageURLDelta::Detail]
|
|
24
|
-
# Specifies the detail level of the image. `low` uses fewer tokens, you can opt in
|
|
25
|
-
# to high resolution using `high`.
|
|
26
|
-
#
|
|
27
|
-
# @param url [String]
|
|
28
|
-
# The URL of the image, must be a supported image types: jpeg, jpg, png, gif,
|
|
29
|
-
# webp.
|
|
30
|
-
|
|
31
|
-
# Specifies the detail level of the image. `low` uses fewer tokens, you can opt in
|
|
32
|
-
# to high resolution using `high`.
|
|
33
|
-
#
|
|
34
|
-
# @see OpenAI::Models::Beta::Threads::ImageURLDelta#detail
|
|
35
|
-
module Detail
|
|
36
|
-
extend OpenAI::Internal::Type::Enum
|
|
37
|
-
|
|
38
|
-
AUTO = :auto
|
|
39
|
-
LOW = :low
|
|
40
|
-
HIGH = :high
|
|
41
|
-
|
|
42
|
-
# @!method self.values
|
|
43
|
-
# @return [Array<Symbol>]
|
|
44
|
-
end
|
|
45
|
-
end
|
|
46
|
-
end
|
|
47
|
-
end
|
|
48
|
-
end
|
|
49
|
-
end
|