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,137 +0,0 @@
|
|
|
1
|
-
module OpenAI
|
|
2
|
-
module Models
|
|
3
|
-
module Beta
|
|
4
|
-
type thread_update_params =
|
|
5
|
-
{
|
|
6
|
-
thread_id: String,
|
|
7
|
-
?metadata: OpenAI::Models::metadata?,
|
|
8
|
-
?tool_resources: OpenAI::Beta::ThreadUpdateParams::ToolResources?,
|
|
9
|
-
?request_options: OpenAI::request_opts
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
class ThreadUpdateParams < OpenAI::Internal::Type::BaseModel
|
|
13
|
-
extend OpenAI::Internal::Type::RequestParameters::Converter
|
|
14
|
-
include OpenAI::Internal::Type::RequestParameters
|
|
15
|
-
|
|
16
|
-
attr_accessor thread_id: String
|
|
17
|
-
|
|
18
|
-
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
19
|
-
# for storing additional information about the object in a structured format, and
|
|
20
|
-
# querying for objects via API or the dashboard.
|
|
21
|
-
#
|
|
22
|
-
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
23
|
-
# a maximum length of 512 characters.
|
|
24
|
-
attr_accessor metadata: OpenAI::Models::metadata?
|
|
25
|
-
|
|
26
|
-
# A set of resources that are made available to the assistant's tools in this
|
|
27
|
-
# thread. The resources are specific to the type of tool. For example, the
|
|
28
|
-
# `code_interpreter` tool requires a list of file IDs, while the `file_search`
|
|
29
|
-
# tool requires a list of vector store IDs.
|
|
30
|
-
attr_accessor tool_resources: OpenAI::Beta::ThreadUpdateParams::ToolResources?
|
|
31
|
-
|
|
32
|
-
# @param metadata
|
|
33
|
-
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
34
|
-
# for storing additional information about the object in a structured format, and
|
|
35
|
-
# querying for objects via API or the dashboard.
|
|
36
|
-
#
|
|
37
|
-
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
38
|
-
# a maximum length of 512 characters.
|
|
39
|
-
# @param tool_resources
|
|
40
|
-
# A set of resources that are made available to the assistant's tools in this
|
|
41
|
-
# thread. The resources are specific to the type of tool. For example, the
|
|
42
|
-
# `code_interpreter` tool requires a list of file IDs, while the `file_search`
|
|
43
|
-
# tool requires a list of vector store IDs.
|
|
44
|
-
def initialize: (
|
|
45
|
-
thread_id: String,
|
|
46
|
-
?metadata: OpenAI::Models::metadata?,
|
|
47
|
-
?tool_resources: OpenAI::Beta::ThreadUpdateParams::ToolResources?,
|
|
48
|
-
?request_options: OpenAI::request_opts
|
|
49
|
-
) -> void
|
|
50
|
-
|
|
51
|
-
def to_hash: -> {
|
|
52
|
-
thread_id: String,
|
|
53
|
-
?metadata: OpenAI::Models::metadata?,
|
|
54
|
-
?tool_resources: OpenAI::Beta::ThreadUpdateParams::ToolResources?,
|
|
55
|
-
?request_options: OpenAI::RequestOptions
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
type tool_resources =
|
|
59
|
-
{
|
|
60
|
-
?code_interpreter: OpenAI::Beta::ThreadUpdateParams::ToolResources::CodeInterpreter,
|
|
61
|
-
?file_search: OpenAI::Beta::ThreadUpdateParams::ToolResources::FileSearch
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
class ToolResources < OpenAI::Internal::Type::BaseModel
|
|
65
|
-
attr_reader code_interpreter: OpenAI::Beta::ThreadUpdateParams::ToolResources::CodeInterpreter?
|
|
66
|
-
|
|
67
|
-
def code_interpreter=: (
|
|
68
|
-
OpenAI::Beta::ThreadUpdateParams::ToolResources::CodeInterpreter
|
|
69
|
-
) -> OpenAI::Beta::ThreadUpdateParams::ToolResources::CodeInterpreter
|
|
70
|
-
|
|
71
|
-
attr_reader file_search: OpenAI::Beta::ThreadUpdateParams::ToolResources::FileSearch?
|
|
72
|
-
|
|
73
|
-
def file_search=: (
|
|
74
|
-
OpenAI::Beta::ThreadUpdateParams::ToolResources::FileSearch
|
|
75
|
-
) -> OpenAI::Beta::ThreadUpdateParams::ToolResources::FileSearch
|
|
76
|
-
|
|
77
|
-
def initialize: (
|
|
78
|
-
?code_interpreter: OpenAI::Beta::ThreadUpdateParams::ToolResources::CodeInterpreter,
|
|
79
|
-
?file_search: OpenAI::Beta::ThreadUpdateParams::ToolResources::FileSearch
|
|
80
|
-
) -> void
|
|
81
|
-
|
|
82
|
-
def to_hash: -> {
|
|
83
|
-
?code_interpreter: OpenAI::Beta::ThreadUpdateParams::ToolResources::CodeInterpreter,
|
|
84
|
-
?file_search: OpenAI::Beta::ThreadUpdateParams::ToolResources::FileSearch
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
type code_interpreter = { ?file_ids: ::Array[String] }
|
|
88
|
-
|
|
89
|
-
class CodeInterpreter < OpenAI::Internal::Type::BaseModel
|
|
90
|
-
# A list of [file](https://developers.openai.com/api/reference/resources/files)
|
|
91
|
-
# IDs made available to the `code_interpreter` tool. There can be a maximum of 20
|
|
92
|
-
# files associated with the tool.
|
|
93
|
-
attr_reader file_ids: ::Array[String]?
|
|
94
|
-
|
|
95
|
-
# A list of [file](https://developers.openai.com/api/reference/resources/files)
|
|
96
|
-
# IDs made available to the `code_interpreter` tool. There can be a maximum of 20
|
|
97
|
-
# files associated with the tool.
|
|
98
|
-
def file_ids=: (::Array[String]) -> ::Array[String]
|
|
99
|
-
|
|
100
|
-
# @param file_ids
|
|
101
|
-
# A list of [file](https://developers.openai.com/api/reference/resources/files)
|
|
102
|
-
# IDs made available to the `code_interpreter` tool. There can be a maximum of 20
|
|
103
|
-
# files associated with the tool.
|
|
104
|
-
def initialize: (?file_ids: ::Array[String]) -> void
|
|
105
|
-
|
|
106
|
-
def to_hash: -> { ?file_ids: ::Array[String] }
|
|
107
|
-
end
|
|
108
|
-
|
|
109
|
-
type file_search = { ?vector_store_ids: ::Array[String] }
|
|
110
|
-
|
|
111
|
-
class FileSearch < OpenAI::Internal::Type::BaseModel
|
|
112
|
-
# The
|
|
113
|
-
# [vector store](https://developers.openai.com/api/reference/resources/vector_stores)
|
|
114
|
-
# attached to this thread. There can be a maximum of 1 vector store attached to
|
|
115
|
-
# the thread.
|
|
116
|
-
attr_reader vector_store_ids: ::Array[String]?
|
|
117
|
-
|
|
118
|
-
# The
|
|
119
|
-
# [vector store](https://developers.openai.com/api/reference/resources/vector_stores)
|
|
120
|
-
# attached to this thread. There can be a maximum of 1 vector store attached to
|
|
121
|
-
# the thread.
|
|
122
|
-
def vector_store_ids=: (::Array[String]) -> ::Array[String]
|
|
123
|
-
|
|
124
|
-
# @param vector_store_ids
|
|
125
|
-
# The
|
|
126
|
-
# [vector store](https://developers.openai.com/api/reference/resources/vector_stores)
|
|
127
|
-
# attached to this thread. There can be a maximum of 1 vector store attached to
|
|
128
|
-
# the thread.
|
|
129
|
-
def initialize: (?vector_store_ids: ::Array[String]) -> void
|
|
130
|
-
|
|
131
|
-
def to_hash: -> { ?vector_store_ids: ::Array[String] }
|
|
132
|
-
end
|
|
133
|
-
end
|
|
134
|
-
end
|
|
135
|
-
end
|
|
136
|
-
end
|
|
137
|
-
end
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
module OpenAI
|
|
2
|
-
module Models
|
|
3
|
-
module Beta
|
|
4
|
-
module Threads
|
|
5
|
-
type annotation =
|
|
6
|
-
OpenAI::Beta::Threads::FileCitationAnnotation
|
|
7
|
-
| OpenAI::Beta::Threads::FilePathAnnotation
|
|
8
|
-
|
|
9
|
-
module Annotation
|
|
10
|
-
extend OpenAI::Internal::Type::Union
|
|
11
|
-
|
|
12
|
-
def self?.variants: -> ::Array[OpenAI::Models::Beta::Threads::annotation]
|
|
13
|
-
end
|
|
14
|
-
end
|
|
15
|
-
end
|
|
16
|
-
end
|
|
17
|
-
end
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
module OpenAI
|
|
2
|
-
module Models
|
|
3
|
-
module Beta
|
|
4
|
-
module Threads
|
|
5
|
-
type annotation_delta =
|
|
6
|
-
OpenAI::Beta::Threads::FileCitationDeltaAnnotation
|
|
7
|
-
| OpenAI::Beta::Threads::FilePathDeltaAnnotation
|
|
8
|
-
|
|
9
|
-
module AnnotationDelta
|
|
10
|
-
extend OpenAI::Internal::Type::Union
|
|
11
|
-
|
|
12
|
-
def self?.variants: -> ::Array[OpenAI::Models::Beta::Threads::annotation_delta]
|
|
13
|
-
end
|
|
14
|
-
end
|
|
15
|
-
end
|
|
16
|
-
end
|
|
17
|
-
end
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
module OpenAI
|
|
2
|
-
module Models
|
|
3
|
-
module Beta
|
|
4
|
-
module Threads
|
|
5
|
-
type file_citation_annotation =
|
|
6
|
-
{
|
|
7
|
-
end_index: Integer,
|
|
8
|
-
file_citation: OpenAI::Beta::Threads::FileCitationAnnotation::FileCitation,
|
|
9
|
-
start_index: Integer,
|
|
10
|
-
text: String,
|
|
11
|
-
?type: :file_citation
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
class FileCitationAnnotation < OpenAI::Internal::Type::BaseModel
|
|
15
|
-
attr_accessor end_index: Integer
|
|
16
|
-
|
|
17
|
-
attr_accessor file_citation: OpenAI::Beta::Threads::FileCitationAnnotation::FileCitation
|
|
18
|
-
|
|
19
|
-
attr_accessor start_index: Integer
|
|
20
|
-
|
|
21
|
-
# The text in the message content that needs to be replaced.
|
|
22
|
-
attr_accessor text: String
|
|
23
|
-
|
|
24
|
-
# Always `file_citation`.
|
|
25
|
-
attr_accessor type: :file_citation
|
|
26
|
-
|
|
27
|
-
# @param text
|
|
28
|
-
# The text in the message content that needs to be replaced.
|
|
29
|
-
# @param type
|
|
30
|
-
# Always `file_citation`.
|
|
31
|
-
def initialize: (
|
|
32
|
-
end_index: Integer,
|
|
33
|
-
file_citation: OpenAI::Beta::Threads::FileCitationAnnotation::FileCitation,
|
|
34
|
-
start_index: Integer,
|
|
35
|
-
text: String,
|
|
36
|
-
?type: :file_citation
|
|
37
|
-
) -> void
|
|
38
|
-
|
|
39
|
-
def to_hash: -> {
|
|
40
|
-
end_index: Integer,
|
|
41
|
-
file_citation: OpenAI::Beta::Threads::FileCitationAnnotation::FileCitation,
|
|
42
|
-
start_index: Integer,
|
|
43
|
-
text: String,
|
|
44
|
-
?type: :file_citation
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
type file_citation = { file_id: String }
|
|
48
|
-
|
|
49
|
-
class FileCitation < OpenAI::Internal::Type::BaseModel
|
|
50
|
-
# The ID of the specific File the citation is from.
|
|
51
|
-
attr_accessor file_id: String
|
|
52
|
-
|
|
53
|
-
# @param file_id
|
|
54
|
-
# The ID of the specific File the citation is from.
|
|
55
|
-
def initialize: (file_id: String) -> void
|
|
56
|
-
|
|
57
|
-
def to_hash: -> { file_id: String }
|
|
58
|
-
end
|
|
59
|
-
end
|
|
60
|
-
end
|
|
61
|
-
end
|
|
62
|
-
end
|
|
63
|
-
end
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
module OpenAI
|
|
2
|
-
module Models
|
|
3
|
-
module Beta
|
|
4
|
-
module Threads
|
|
5
|
-
type file_citation_delta_annotation =
|
|
6
|
-
{
|
|
7
|
-
index: Integer,
|
|
8
|
-
?type: :file_citation,
|
|
9
|
-
?end_index: Integer,
|
|
10
|
-
?file_citation: OpenAI::Beta::Threads::FileCitationDeltaAnnotation::FileCitation,
|
|
11
|
-
?start_index: Integer,
|
|
12
|
-
?text: String
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
class FileCitationDeltaAnnotation < OpenAI::Internal::Type::BaseModel
|
|
16
|
-
# The index of the annotation in the text content part.
|
|
17
|
-
attr_accessor index: Integer
|
|
18
|
-
|
|
19
|
-
# Always `file_citation`.
|
|
20
|
-
attr_accessor type: :file_citation
|
|
21
|
-
|
|
22
|
-
attr_reader end_index: Integer?
|
|
23
|
-
|
|
24
|
-
def end_index=: (Integer) -> Integer
|
|
25
|
-
|
|
26
|
-
attr_reader file_citation: OpenAI::Beta::Threads::FileCitationDeltaAnnotation::FileCitation?
|
|
27
|
-
|
|
28
|
-
def file_citation=: (
|
|
29
|
-
OpenAI::Beta::Threads::FileCitationDeltaAnnotation::FileCitation
|
|
30
|
-
) -> OpenAI::Beta::Threads::FileCitationDeltaAnnotation::FileCitation
|
|
31
|
-
|
|
32
|
-
attr_reader start_index: Integer?
|
|
33
|
-
|
|
34
|
-
def start_index=: (Integer) -> Integer
|
|
35
|
-
|
|
36
|
-
# The text in the message content that needs to be replaced.
|
|
37
|
-
attr_reader text: String?
|
|
38
|
-
|
|
39
|
-
# The text in the message content that needs to be replaced.
|
|
40
|
-
def text=: (String) -> String
|
|
41
|
-
|
|
42
|
-
# @param index
|
|
43
|
-
# The index of the annotation in the text content part.
|
|
44
|
-
# @param text
|
|
45
|
-
# The text in the message content that needs to be replaced.
|
|
46
|
-
# @param type
|
|
47
|
-
# Always `file_citation`.
|
|
48
|
-
def initialize: (
|
|
49
|
-
index: Integer,
|
|
50
|
-
?end_index: Integer,
|
|
51
|
-
?file_citation: OpenAI::Beta::Threads::FileCitationDeltaAnnotation::FileCitation,
|
|
52
|
-
?start_index: Integer,
|
|
53
|
-
?text: String,
|
|
54
|
-
?type: :file_citation
|
|
55
|
-
) -> void
|
|
56
|
-
|
|
57
|
-
def to_hash: -> {
|
|
58
|
-
index: Integer,
|
|
59
|
-
?type: :file_citation,
|
|
60
|
-
?end_index: Integer,
|
|
61
|
-
?file_citation: OpenAI::Beta::Threads::FileCitationDeltaAnnotation::FileCitation,
|
|
62
|
-
?start_index: Integer,
|
|
63
|
-
?text: String
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
type file_citation = { ?file_id: String, ?quote: String }
|
|
67
|
-
|
|
68
|
-
class FileCitation < OpenAI::Internal::Type::BaseModel
|
|
69
|
-
# The ID of the specific File the citation is from.
|
|
70
|
-
attr_reader file_id: String?
|
|
71
|
-
|
|
72
|
-
# The ID of the specific File the citation is from.
|
|
73
|
-
def file_id=: (String) -> String
|
|
74
|
-
|
|
75
|
-
# The specific quote in the file.
|
|
76
|
-
attr_reader quote: String?
|
|
77
|
-
|
|
78
|
-
# The specific quote in the file.
|
|
79
|
-
def quote=: (String) -> String
|
|
80
|
-
|
|
81
|
-
# @param file_id
|
|
82
|
-
# The ID of the specific File the citation is from.
|
|
83
|
-
# @param quote
|
|
84
|
-
# The specific quote in the file.
|
|
85
|
-
def initialize: (?file_id: String, ?quote: String) -> void
|
|
86
|
-
|
|
87
|
-
def to_hash: -> { ?file_id: String, ?quote: String }
|
|
88
|
-
end
|
|
89
|
-
end
|
|
90
|
-
end
|
|
91
|
-
end
|
|
92
|
-
end
|
|
93
|
-
end
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
module OpenAI
|
|
2
|
-
module Models
|
|
3
|
-
module Beta
|
|
4
|
-
module Threads
|
|
5
|
-
type file_path_annotation =
|
|
6
|
-
{
|
|
7
|
-
end_index: Integer,
|
|
8
|
-
file_path: OpenAI::Beta::Threads::FilePathAnnotation::FilePath,
|
|
9
|
-
start_index: Integer,
|
|
10
|
-
text: String,
|
|
11
|
-
?type: :file_path
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
class FilePathAnnotation < OpenAI::Internal::Type::BaseModel
|
|
15
|
-
attr_accessor end_index: Integer
|
|
16
|
-
|
|
17
|
-
attr_accessor file_path: OpenAI::Beta::Threads::FilePathAnnotation::FilePath
|
|
18
|
-
|
|
19
|
-
attr_accessor start_index: Integer
|
|
20
|
-
|
|
21
|
-
# The text in the message content that needs to be replaced.
|
|
22
|
-
attr_accessor text: String
|
|
23
|
-
|
|
24
|
-
# Always `file_path`.
|
|
25
|
-
attr_accessor type: :file_path
|
|
26
|
-
|
|
27
|
-
# @param text
|
|
28
|
-
# The text in the message content that needs to be replaced.
|
|
29
|
-
# @param type
|
|
30
|
-
# Always `file_path`.
|
|
31
|
-
def initialize: (
|
|
32
|
-
end_index: Integer,
|
|
33
|
-
file_path: OpenAI::Beta::Threads::FilePathAnnotation::FilePath,
|
|
34
|
-
start_index: Integer,
|
|
35
|
-
text: String,
|
|
36
|
-
?type: :file_path
|
|
37
|
-
) -> void
|
|
38
|
-
|
|
39
|
-
def to_hash: -> {
|
|
40
|
-
end_index: Integer,
|
|
41
|
-
file_path: OpenAI::Beta::Threads::FilePathAnnotation::FilePath,
|
|
42
|
-
start_index: Integer,
|
|
43
|
-
text: String,
|
|
44
|
-
?type: :file_path
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
type file_path = { file_id: String }
|
|
48
|
-
|
|
49
|
-
class FilePath < OpenAI::Internal::Type::BaseModel
|
|
50
|
-
# The ID of the file that was generated.
|
|
51
|
-
attr_accessor file_id: String
|
|
52
|
-
|
|
53
|
-
# @param file_id
|
|
54
|
-
# The ID of the file that was generated.
|
|
55
|
-
def initialize: (file_id: String) -> void
|
|
56
|
-
|
|
57
|
-
def to_hash: -> { file_id: String }
|
|
58
|
-
end
|
|
59
|
-
end
|
|
60
|
-
end
|
|
61
|
-
end
|
|
62
|
-
end
|
|
63
|
-
end
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
module OpenAI
|
|
2
|
-
module Models
|
|
3
|
-
module Beta
|
|
4
|
-
module Threads
|
|
5
|
-
type file_path_delta_annotation =
|
|
6
|
-
{
|
|
7
|
-
index: Integer,
|
|
8
|
-
?type: :file_path,
|
|
9
|
-
?end_index: Integer,
|
|
10
|
-
?file_path: OpenAI::Beta::Threads::FilePathDeltaAnnotation::FilePath,
|
|
11
|
-
?start_index: Integer,
|
|
12
|
-
?text: String
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
class FilePathDeltaAnnotation < OpenAI::Internal::Type::BaseModel
|
|
16
|
-
# The index of the annotation in the text content part.
|
|
17
|
-
attr_accessor index: Integer
|
|
18
|
-
|
|
19
|
-
# Always `file_path`.
|
|
20
|
-
attr_accessor type: :file_path
|
|
21
|
-
|
|
22
|
-
attr_reader end_index: Integer?
|
|
23
|
-
|
|
24
|
-
def end_index=: (Integer) -> Integer
|
|
25
|
-
|
|
26
|
-
attr_reader file_path: OpenAI::Beta::Threads::FilePathDeltaAnnotation::FilePath?
|
|
27
|
-
|
|
28
|
-
def file_path=: (
|
|
29
|
-
OpenAI::Beta::Threads::FilePathDeltaAnnotation::FilePath
|
|
30
|
-
) -> OpenAI::Beta::Threads::FilePathDeltaAnnotation::FilePath
|
|
31
|
-
|
|
32
|
-
attr_reader start_index: Integer?
|
|
33
|
-
|
|
34
|
-
def start_index=: (Integer) -> Integer
|
|
35
|
-
|
|
36
|
-
# The text in the message content that needs to be replaced.
|
|
37
|
-
attr_reader text: String?
|
|
38
|
-
|
|
39
|
-
# The text in the message content that needs to be replaced.
|
|
40
|
-
def text=: (String) -> String
|
|
41
|
-
|
|
42
|
-
# @param index
|
|
43
|
-
# The index of the annotation in the text content part.
|
|
44
|
-
# @param text
|
|
45
|
-
# The text in the message content that needs to be replaced.
|
|
46
|
-
# @param type
|
|
47
|
-
# Always `file_path`.
|
|
48
|
-
def initialize: (
|
|
49
|
-
index: Integer,
|
|
50
|
-
?end_index: Integer,
|
|
51
|
-
?file_path: OpenAI::Beta::Threads::FilePathDeltaAnnotation::FilePath,
|
|
52
|
-
?start_index: Integer,
|
|
53
|
-
?text: String,
|
|
54
|
-
?type: :file_path
|
|
55
|
-
) -> void
|
|
56
|
-
|
|
57
|
-
def to_hash: -> {
|
|
58
|
-
index: Integer,
|
|
59
|
-
?type: :file_path,
|
|
60
|
-
?end_index: Integer,
|
|
61
|
-
?file_path: OpenAI::Beta::Threads::FilePathDeltaAnnotation::FilePath,
|
|
62
|
-
?start_index: Integer,
|
|
63
|
-
?text: String
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
type file_path = { ?file_id: String }
|
|
67
|
-
|
|
68
|
-
class FilePath < OpenAI::Internal::Type::BaseModel
|
|
69
|
-
# The ID of the file that was generated.
|
|
70
|
-
attr_reader file_id: String?
|
|
71
|
-
|
|
72
|
-
# The ID of the file that was generated.
|
|
73
|
-
def file_id=: (String) -> String
|
|
74
|
-
|
|
75
|
-
# @param file_id
|
|
76
|
-
# The ID of the file that was generated.
|
|
77
|
-
def initialize: (?file_id: String) -> void
|
|
78
|
-
|
|
79
|
-
def to_hash: -> { ?file_id: String }
|
|
80
|
-
end
|
|
81
|
-
end
|
|
82
|
-
end
|
|
83
|
-
end
|
|
84
|
-
end
|
|
85
|
-
end
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
module OpenAI
|
|
2
|
-
module Models
|
|
3
|
-
module Beta
|
|
4
|
-
module Threads
|
|
5
|
-
type image_file =
|
|
6
|
-
{
|
|
7
|
-
file_id: String,
|
|
8
|
-
?detail: OpenAI::Models::Beta::Threads::ImageFile::detail
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
class ImageFile < OpenAI::Internal::Type::BaseModel
|
|
12
|
-
# The [File](https://developers.openai.com/api/reference/resources/files) ID of
|
|
13
|
-
# the image in the message content. Set `purpose="vision"` when uploading the File
|
|
14
|
-
# if you need to later display the file content.
|
|
15
|
-
attr_accessor file_id: String
|
|
16
|
-
|
|
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
|
-
attr_reader detail: OpenAI::Models::Beta::Threads::ImageFile::detail?
|
|
20
|
-
|
|
21
|
-
# Specifies the detail level of the image if specified by the user. `low` uses
|
|
22
|
-
# fewer tokens, you can opt in to high resolution using `high`.
|
|
23
|
-
def detail=: (
|
|
24
|
-
OpenAI::Models::Beta::Threads::ImageFile::detail
|
|
25
|
-
) -> OpenAI::Models::Beta::Threads::ImageFile::detail
|
|
26
|
-
|
|
27
|
-
# @param file_id
|
|
28
|
-
# The [File](https://developers.openai.com/api/reference/resources/files) ID of
|
|
29
|
-
# the image in the message content. Set `purpose="vision"` when uploading the File
|
|
30
|
-
# if you need to later display the file content.
|
|
31
|
-
# @param detail
|
|
32
|
-
# Specifies the detail level of the image if specified by the user. `low` uses
|
|
33
|
-
# fewer tokens, you can opt in to high resolution using `high`.
|
|
34
|
-
def initialize: (
|
|
35
|
-
file_id: String,
|
|
36
|
-
?detail: OpenAI::Models::Beta::Threads::ImageFile::detail
|
|
37
|
-
) -> void
|
|
38
|
-
|
|
39
|
-
def to_hash: -> {
|
|
40
|
-
file_id: String,
|
|
41
|
-
?detail: OpenAI::Models::Beta::Threads::ImageFile::detail
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
type detail = :auto | :low | :high
|
|
45
|
-
|
|
46
|
-
module Detail
|
|
47
|
-
extend OpenAI::Internal::Type::Enum
|
|
48
|
-
|
|
49
|
-
AUTO: :auto
|
|
50
|
-
LOW: :low
|
|
51
|
-
HIGH: :high
|
|
52
|
-
|
|
53
|
-
def self?.values: -> ::Array[OpenAI::Models::Beta::Threads::ImageFile::detail]
|
|
54
|
-
end
|
|
55
|
-
end
|
|
56
|
-
end
|
|
57
|
-
end
|
|
58
|
-
end
|
|
59
|
-
end
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
module OpenAI
|
|
2
|
-
module Models
|
|
3
|
-
module Beta
|
|
4
|
-
module Threads
|
|
5
|
-
type image_file_content_block =
|
|
6
|
-
{ image_file: OpenAI::Beta::Threads::ImageFile, ?type: :image_file }
|
|
7
|
-
|
|
8
|
-
class ImageFileContentBlock < OpenAI::Internal::Type::BaseModel
|
|
9
|
-
attr_accessor image_file: OpenAI::Beta::Threads::ImageFile
|
|
10
|
-
|
|
11
|
-
# Always `image_file`.
|
|
12
|
-
attr_accessor type: :image_file
|
|
13
|
-
|
|
14
|
-
# @param type
|
|
15
|
-
# Always `image_file`.
|
|
16
|
-
def initialize: (
|
|
17
|
-
image_file: OpenAI::Beta::Threads::ImageFile,
|
|
18
|
-
?type: :image_file
|
|
19
|
-
) -> void
|
|
20
|
-
|
|
21
|
-
def to_hash: -> {
|
|
22
|
-
image_file: OpenAI::Beta::Threads::ImageFile,
|
|
23
|
-
?type: :image_file
|
|
24
|
-
}
|
|
25
|
-
end
|
|
26
|
-
end
|
|
27
|
-
end
|
|
28
|
-
end
|
|
29
|
-
end
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
module OpenAI
|
|
2
|
-
module Models
|
|
3
|
-
module Beta
|
|
4
|
-
module Threads
|
|
5
|
-
type image_file_delta =
|
|
6
|
-
{
|
|
7
|
-
?detail: OpenAI::Models::Beta::Threads::ImageFileDelta::detail,
|
|
8
|
-
?file_id: String
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
class ImageFileDelta < OpenAI::Internal::Type::BaseModel
|
|
12
|
-
# Specifies the detail level of the image if specified by the user. `low` uses
|
|
13
|
-
# fewer tokens, you can opt in to high resolution using `high`.
|
|
14
|
-
attr_reader detail: OpenAI::Models::Beta::Threads::ImageFileDelta::detail?
|
|
15
|
-
|
|
16
|
-
# Specifies the detail level of the image if specified by the user. `low` uses
|
|
17
|
-
# fewer tokens, you can opt in to high resolution using `high`.
|
|
18
|
-
def detail=: (
|
|
19
|
-
OpenAI::Models::Beta::Threads::ImageFileDelta::detail
|
|
20
|
-
) -> OpenAI::Models::Beta::Threads::ImageFileDelta::detail
|
|
21
|
-
|
|
22
|
-
# The [File](https://developers.openai.com/api/reference/resources/files) ID of
|
|
23
|
-
# the image in the message content. Set `purpose="vision"` when uploading the File
|
|
24
|
-
# if you need to later display the file content.
|
|
25
|
-
attr_reader file_id: String?
|
|
26
|
-
|
|
27
|
-
# The [File](https://developers.openai.com/api/reference/resources/files) ID of
|
|
28
|
-
# the image in the message content. Set `purpose="vision"` when uploading the File
|
|
29
|
-
# if you need to later display the file content.
|
|
30
|
-
def file_id=: (String) -> String
|
|
31
|
-
|
|
32
|
-
# @param detail
|
|
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
|
-
# @param file_id
|
|
36
|
-
# The [File](https://developers.openai.com/api/reference/resources/files) ID of
|
|
37
|
-
# the image in the message content. Set `purpose="vision"` when uploading the File
|
|
38
|
-
# if you need to later display the file content.
|
|
39
|
-
def initialize: (
|
|
40
|
-
?detail: OpenAI::Models::Beta::Threads::ImageFileDelta::detail,
|
|
41
|
-
?file_id: String
|
|
42
|
-
) -> void
|
|
43
|
-
|
|
44
|
-
def to_hash: -> {
|
|
45
|
-
?detail: OpenAI::Models::Beta::Threads::ImageFileDelta::detail,
|
|
46
|
-
?file_id: String
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
type detail = :auto | :low | :high
|
|
50
|
-
|
|
51
|
-
module Detail
|
|
52
|
-
extend OpenAI::Internal::Type::Enum
|
|
53
|
-
|
|
54
|
-
AUTO: :auto
|
|
55
|
-
LOW: :low
|
|
56
|
-
HIGH: :high
|
|
57
|
-
|
|
58
|
-
def self?.values: -> ::Array[OpenAI::Models::Beta::Threads::ImageFileDelta::detail]
|
|
59
|
-
end
|
|
60
|
-
end
|
|
61
|
-
end
|
|
62
|
-
end
|
|
63
|
-
end
|
|
64
|
-
end
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
module OpenAI
|
|
2
|
-
module Models
|
|
3
|
-
module Beta
|
|
4
|
-
module Threads
|
|
5
|
-
type image_file_delta_block =
|
|
6
|
-
{
|
|
7
|
-
index: Integer,
|
|
8
|
-
?type: :image_file,
|
|
9
|
-
?image_file: OpenAI::Beta::Threads::ImageFileDelta
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
class ImageFileDeltaBlock < OpenAI::Internal::Type::BaseModel
|
|
13
|
-
# The index of the content part in the message.
|
|
14
|
-
attr_accessor index: Integer
|
|
15
|
-
|
|
16
|
-
# Always `image_file`.
|
|
17
|
-
attr_accessor type: :image_file
|
|
18
|
-
|
|
19
|
-
attr_reader image_file: OpenAI::Beta::Threads::ImageFileDelta?
|
|
20
|
-
|
|
21
|
-
def image_file=: (
|
|
22
|
-
OpenAI::Beta::Threads::ImageFileDelta
|
|
23
|
-
) -> OpenAI::Beta::Threads::ImageFileDelta
|
|
24
|
-
|
|
25
|
-
# @param index
|
|
26
|
-
# The index of the content part in the message.
|
|
27
|
-
# @param type
|
|
28
|
-
# Always `image_file`.
|
|
29
|
-
def initialize: (
|
|
30
|
-
index: Integer,
|
|
31
|
-
?image_file: OpenAI::Beta::Threads::ImageFileDelta,
|
|
32
|
-
?type: :image_file
|
|
33
|
-
) -> void
|
|
34
|
-
|
|
35
|
-
def to_hash: -> {
|
|
36
|
-
index: Integer,
|
|
37
|
-
?type: :image_file,
|
|
38
|
-
?image_file: OpenAI::Beta::Threads::ImageFileDelta
|
|
39
|
-
}
|
|
40
|
-
end
|
|
41
|
-
end
|
|
42
|
-
end
|
|
43
|
-
end
|
|
44
|
-
end
|