openai 0.92.0 → 0.94.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 +43 -0
- data/README.md +1 -1
- data/lib/openai/client.rb +1 -0
- data/lib/openai/models/admin/organization/audit_log_list_params.rb +2 -0
- data/lib/openai/models/admin/organization/audit_log_list_response.rb +116 -1
- data/lib/openai/models/admin/organization/aws_external_storage_provider.rb +49 -0
- data/lib/openai/models/admin/organization/azure_external_storage_provider.rb +55 -0
- data/lib/openai/models/admin/organization/external_storage_configuration.rb +82 -0
- data/lib/openai/models/admin/organization/external_storage_create_params.rb +105 -0
- data/lib/openai/models/admin/organization/external_storage_delete_params.rb +24 -0
- data/lib/openai/models/admin/organization/external_storage_deleted.rb +32 -0
- data/lib/openai/models/admin/organization/external_storage_list_params.rb +58 -0
- data/lib/openai/models/admin/organization/external_storage_retrieve_params.rb +24 -0
- data/lib/openai/models/admin/organization/external_storage_validate_params.rb +24 -0
- data/lib/openai/models/beta/agent_create_params.rb +13 -9
- data/lib/openai/models/beta/agent_reasoning.rb +9 -6
- data/lib/openai/models/beta/agent_reasoning_item.rb +2 -2
- data/lib/openai/models/beta/agent_reasoning_param.rb +9 -6
- data/lib/openai/models/beta/agent_session.rb +4 -2
- data/lib/openai/models/beta/agent_session_assistant_message.rb +3 -3
- data/lib/openai/models/beta/agent_session_environment_reset_event.rb +67 -0
- data/lib/openai/models/beta/agent_session_environment_state.rb +3 -3
- data/lib/openai/models/beta/agent_session_event.rb +4 -1
- data/lib/openai/models/beta/agent_session_input_param.rb +2 -2
- data/lib/openai/models/beta/agent_session_item.rb +2 -2
- data/lib/openai/models/beta/agent_session_message.rb +3 -3
- data/lib/openai/models/beta/agent_session_turn_cancelled_event.rb +2 -2
- data/lib/openai/models/beta/agent_session_turn_completed_event.rb +2 -2
- data/lib/openai/models/beta/agent_session_turn_failed_event.rb +2 -2
- data/lib/openai/models/beta/agent_text_param.rb +8 -5
- data/lib/openai/models/beta/agent_tool.rb +3 -3
- data/lib/openai/models/beta/agent_tool_param.rb +18 -12
- data/lib/openai/models/beta/agent_update_params.rb +6 -4
- data/lib/openai/models/beta/agent_web_search_call_item.rb +2 -2
- data/lib/openai/models/beta/agents/environments/template_create_params.rb +10 -7
- data/lib/openai/models/beta/agents/environments/template_update_params.rb +13 -7
- data/lib/openai/models/beta/agents/session_create_params.rb +18 -7
- data/lib/openai/models/beta/agents/session_update_params.rb +6 -6
- data/lib/openai/models/beta/agents/sessions/turn.rb +6 -4
- data/lib/openai/models/beta/agents/vault.rb +1 -2
- data/lib/openai/models/beta/agents/vaults/credential.rb +5 -5
- data/lib/openai/models/beta/agents/vaults/credential_auth.rb +45 -9
- data/lib/openai/models/beta/agents/vaults/credential_auth_create_param.rb +69 -5
- data/lib/openai/models/beta/agents/vaults/credential_auth_rotate_param.rb +42 -10
- data/lib/openai/models/beta/agents/vaults/credential_create_params.rb +4 -4
- data/lib/openai/models/beta/agents/vaults/credential_networking.rb +72 -0
- data/lib/openai/models/beta/agents/vaults/credential_networking_param.rb +72 -0
- data/lib/openai/models/beta/agents/vaults/credential_update_params.rb +2 -2
- data/lib/openai/models/beta/beta_response.rb +9 -3
- data/lib/openai/models/beta/beta_response_output_text_annotation_added_event.rb +3 -3
- data/lib/openai/models/beta/beta_responses_client_event.rb +9 -3
- data/lib/openai/models/beta/beta_responses_server_event.rb +1 -1
- data/lib/openai/models/beta/beta_tool.rb +9 -12
- data/lib/openai/models/beta/environment_param.rb +10 -7
- data/lib/openai/models/beta/persisted_agent_tool.rb +3 -3
- data/lib/openai/models/beta/persisted_agent_tool_param.rb +12 -12
- data/lib/openai/models/beta/response_compact_params.rb +9 -3
- data/lib/openai/models/beta/response_create_params.rb +9 -3
- data/lib/openai/models/chat/completion_create_params.rb +10 -4
- data/lib/openai/models/chat_model.rb +3 -1
- data/lib/openai/models/conversations/conversation_update_params.rb +6 -8
- data/lib/openai/models/image_edit_params.rb +9 -12
- data/lib/openai/models/realtime/conversation_item_create_event.rb +3 -2
- data/lib/openai/models/realtime/realtime_client_event.rb +3 -2
- data/lib/openai/models/responses/response_compact_params.rb +9 -3
- data/lib/openai/models/responses/response_output_text_annotation_added_event.rb +3 -3
- data/lib/openai/models/responses/responses_server_event.rb +1 -1
- data/lib/openai/models/responses/tool.rb +9 -12
- data/lib/openai/models/safety/case_retrieve_params.rb +25 -0
- data/lib/openai/models/safety/safety_case.rb +72 -0
- data/lib/openai/models/webhooks/live_call_incoming_webhook_event.rb +51 -1
- data/lib/openai/models/webhooks/live_transport_incoming_webhook_event.rb +55 -1
- data/lib/openai/models/webhooks/realtime_call_incoming_webhook_event.rb +55 -1
- data/lib/openai/models/webhooks/safety_deactivation_issued_webhook_event.rb +68 -0
- data/lib/openai/models/webhooks/safety_warning_issued_webhook_event.rb +68 -0
- data/lib/openai/models/webhooks/unwrap_webhook_event.rb +7 -1
- data/lib/openai/resources/admin/organization/external_storage.rb +136 -0
- data/lib/openai/resources/admin/organization.rb +4 -0
- data/lib/openai/resources/beta/agents/environments/templates.rb +7 -4
- data/lib/openai/resources/beta/agents/sessions/events.rb +5 -2
- data/lib/openai/resources/beta/agents/sessions.rb +12 -4
- data/lib/openai/resources/beta/agents/vaults/credentials.rb +3 -3
- data/lib/openai/resources/beta/agents.rb +9 -6
- data/lib/openai/resources/beta/responses/input_items.rb +1 -0
- data/lib/openai/resources/beta/responses/input_tokens.rb +1 -0
- data/lib/openai/resources/beta/responses.rb +3 -0
- data/lib/openai/resources/beta.rb +1 -0
- data/lib/openai/resources/chat/completions.rb +10 -4
- data/lib/openai/resources/conversations.rb +3 -4
- data/lib/openai/resources/images.rb +6 -8
- data/lib/openai/resources/responses/input_items.rb +1 -0
- data/lib/openai/resources/responses/input_tokens.rb +1 -0
- data/lib/openai/resources/responses.rb +3 -0
- data/lib/openai/resources/safety/cases.rb +38 -0
- data/lib/openai/resources/safety.rb +4 -0
- data/lib/openai/resources/webhooks.rb +1 -1
- data/lib/openai/version.rb +1 -1
- data/lib/openai.rb +19 -1
- data/rbi/openai/client.rbi +1 -0
- data/rbi/openai/models/admin/organization/audit_log_list_params.rbi +8 -0
- data/rbi/openai/models/admin/organization/audit_log_list_response.rbi +246 -0
- data/rbi/openai/models/admin/organization/aws_external_storage_provider.rbi +85 -0
- data/rbi/openai/models/admin/organization/azure_external_storage_provider.rbi +100 -0
- data/rbi/openai/models/admin/organization/external_storage_configuration.rbi +148 -0
- data/rbi/openai/models/admin/organization/external_storage_create_params.rbi +223 -0
- data/rbi/openai/models/admin/organization/external_storage_delete_params.rbi +57 -0
- data/rbi/openai/models/admin/organization/external_storage_deleted.rbi +64 -0
- data/rbi/openai/models/admin/organization/external_storage_list_params.rbi +110 -0
- data/rbi/openai/models/admin/organization/external_storage_retrieve_params.rbi +57 -0
- data/rbi/openai/models/admin/organization/external_storage_validate_params.rbi +57 -0
- data/rbi/openai/models/beta/agent_create_params.rbi +13 -9
- data/rbi/openai/models/beta/agent_reasoning.rbi +9 -6
- data/rbi/openai/models/beta/agent_reasoning_item.rbi +2 -2
- data/rbi/openai/models/beta/agent_reasoning_param.rbi +9 -6
- data/rbi/openai/models/beta/agent_session.rbi +4 -2
- data/rbi/openai/models/beta/agent_session_assistant_message.rbi +3 -3
- data/rbi/openai/models/beta/agent_session_environment_reset_event.rbi +103 -0
- data/rbi/openai/models/beta/agent_session_environment_state.rbi +3 -3
- data/rbi/openai/models/beta/agent_session_event.rbi +1 -0
- data/rbi/openai/models/beta/agent_session_input_param.rbi +2 -2
- data/rbi/openai/models/beta/agent_session_item.rbi +2 -2
- data/rbi/openai/models/beta/agent_session_message.rbi +3 -3
- data/rbi/openai/models/beta/agent_session_turn_cancelled_event.rbi +2 -2
- data/rbi/openai/models/beta/agent_session_turn_completed_event.rbi +2 -2
- data/rbi/openai/models/beta/agent_session_turn_failed_event.rbi +2 -2
- data/rbi/openai/models/beta/agent_text_param.rbi +8 -5
- data/rbi/openai/models/beta/agent_tool.rbi +3 -3
- data/rbi/openai/models/beta/agent_tool_param.rbi +18 -12
- data/rbi/openai/models/beta/agent_update_params.rbi +6 -4
- data/rbi/openai/models/beta/agent_web_search_call_item.rbi +2 -2
- data/rbi/openai/models/beta/agents/environments/template_create_params.rbi +10 -7
- data/rbi/openai/models/beta/agents/environments/template_update_params.rbi +13 -7
- data/rbi/openai/models/beta/agents/session_create_params.rbi +18 -7
- data/rbi/openai/models/beta/agents/session_update_params.rbi +6 -6
- data/rbi/openai/models/beta/agents/sessions/turn.rbi +6 -4
- data/rbi/openai/models/beta/agents/vault.rbi +1 -2
- data/rbi/openai/models/beta/agents/vaults/credential.rbi +5 -4
- data/rbi/openai/models/beta/agents/vaults/credential_auth.rbi +74 -9
- data/rbi/openai/models/beta/agents/vaults/credential_auth_create_param.rbi +106 -5
- data/rbi/openai/models/beta/agents/vaults/credential_auth_rotate_param.rbi +61 -10
- data/rbi/openai/models/beta/agents/vaults/credential_create_params.rbi +8 -5
- data/rbi/openai/models/beta/agents/vaults/credential_networking.rbi +129 -0
- data/rbi/openai/models/beta/agents/vaults/credential_networking_param.rbi +129 -0
- data/rbi/openai/models/beta/agents/vaults/credential_update_params.rbi +6 -3
- data/rbi/openai/models/beta/beta_response.rbi +3 -1
- data/rbi/openai/models/beta/beta_response_output_text_annotation_added_event.rbi +3 -3
- data/rbi/openai/models/beta/beta_responses_client_event.rbi +9 -4
- data/rbi/openai/models/beta/beta_responses_server_event.rbi +1 -1
- data/rbi/openai/models/beta/beta_tool.rbi +9 -12
- data/rbi/openai/models/beta/environment_param.rbi +10 -7
- data/rbi/openai/models/beta/persisted_agent_tool.rbi +3 -3
- data/rbi/openai/models/beta/persisted_agent_tool_param.rbi +12 -12
- data/rbi/openai/models/beta/response_compact_params.rbi +3 -1
- data/rbi/openai/models/beta/response_create_params.rbi +3 -1
- data/rbi/openai/models/chat/completion_create_params.rbi +10 -4
- data/rbi/openai/models/chat_model.rbi +3 -1
- data/rbi/openai/models/conversations/conversation_update_params.rbi +6 -8
- data/rbi/openai/models/image_edit_params.rbi +9 -12
- data/rbi/openai/models/realtime/conversation_item_create_event.rbi +3 -2
- data/rbi/openai/models/responses/response_compact_params.rbi +3 -1
- data/rbi/openai/models/responses/response_output_text_annotation_added_event.rbi +3 -3
- data/rbi/openai/models/responses/responses_server_event.rbi +1 -1
- data/rbi/openai/models/responses/tool.rbi +9 -12
- data/rbi/openai/models/safety/case_retrieve_params.rbi +55 -0
- data/rbi/openai/models/safety/safety_case.rbi +140 -0
- data/rbi/openai/models/webhooks/live_call_incoming_webhook_event.rbi +70 -3
- data/rbi/openai/models/webhooks/live_transport_incoming_webhook_event.rbi +73 -1
- data/rbi/openai/models/webhooks/realtime_call_incoming_webhook_event.rbi +75 -3
- data/rbi/openai/models/webhooks/safety_deactivation_issued_webhook_event.rbi +130 -0
- data/rbi/openai/models/webhooks/safety_warning_issued_webhook_event.rbi +130 -0
- data/rbi/openai/models/webhooks/unwrap_webhook_event.rbi +3 -1
- data/rbi/openai/resources/admin/organization/external_storage.rbi +89 -0
- data/rbi/openai/resources/admin/organization.rbi +3 -0
- data/rbi/openai/resources/beta/agents/environments/templates.rbi +7 -4
- data/rbi/openai/resources/beta/agents/sessions/events.rbi +4 -1
- data/rbi/openai/resources/beta/agents/sessions.rbi +11 -3
- data/rbi/openai/resources/beta/agents/vaults/credentials.rbi +5 -3
- data/rbi/openai/resources/beta/agents.rbi +9 -6
- data/rbi/openai/resources/beta/responses/input_items.rbi +1 -0
- data/rbi/openai/resources/beta/responses/input_tokens.rbi +1 -0
- data/rbi/openai/resources/beta/responses.rbi +3 -0
- data/rbi/openai/resources/beta.rbi +1 -0
- data/rbi/openai/resources/chat/completions.rbi +10 -4
- data/rbi/openai/resources/conversations.rbi +3 -4
- data/rbi/openai/resources/images.rbi +6 -8
- data/rbi/openai/resources/responses/input_items.rbi +1 -0
- data/rbi/openai/resources/responses/input_tokens.rbi +1 -0
- data/rbi/openai/resources/responses.rbi +3 -0
- data/rbi/openai/resources/safety/cases.rbi +28 -0
- data/rbi/openai/resources/safety.rbi +3 -0
- data/rbi/openai/resources/webhooks.rbi +3 -1
- data/sig/openai/models/admin/organization/admin_api_key.rbs +45 -0
- data/sig/openai/models/admin/organization/admin_api_key_create_params.rbs +7 -0
- data/sig/openai/models/admin/organization/admin_api_key_create_response.rbs +18 -0
- data/sig/openai/models/admin/organization/admin_api_key_delete_params.rbs +3 -0
- data/sig/openai/models/admin/organization/admin_api_key_list_params.rbs +11 -0
- data/sig/openai/models/admin/organization/admin_api_key_retrieve_params.rbs +3 -0
- data/sig/openai/models/admin/organization/audit_log_list_params.rbs +114 -0
- data/sig/openai/models/admin/organization/audit_log_list_response.rbs +1108 -0
- data/sig/openai/models/admin/organization/aws_external_storage_provider.rbs +49 -0
- data/sig/openai/models/admin/organization/azure_external_storage_provider.rbs +54 -0
- data/sig/openai/models/admin/organization/certificate.rbs +45 -0
- data/sig/openai/models/admin/organization/certificate_activate_response.rbs +23 -0
- data/sig/openai/models/admin/organization/certificate_create_params.rbs +7 -0
- data/sig/openai/models/admin/organization/certificate_deactivate_response.rbs +23 -0
- data/sig/openai/models/admin/organization/certificate_delete_response.rbs +6 -0
- data/sig/openai/models/admin/organization/certificate_list_params.rbs +27 -0
- data/sig/openai/models/admin/organization/certificate_list_response.rbs +23 -0
- data/sig/openai/models/admin/organization/certificate_retrieve_params.rbs +7 -0
- data/sig/openai/models/admin/organization/certificate_update_params.rbs +4 -0
- data/sig/openai/models/admin/organization/data_retention_update_params.rbs +3 -0
- data/sig/openai/models/admin/organization/external_storage_configuration.rbs +76 -0
- data/sig/openai/models/admin/organization/external_storage_create_params.rbs +105 -0
- data/sig/openai/models/admin/organization/external_storage_delete_params.rbs +30 -0
- data/sig/openai/models/admin/organization/external_storage_deleted.rbs +34 -0
- data/sig/openai/models/admin/organization/external_storage_list_params.rbs +65 -0
- data/sig/openai/models/admin/organization/external_storage_retrieve_params.rbs +30 -0
- data/sig/openai/models/admin/organization/external_storage_validate_params.rbs +30 -0
- data/sig/openai/models/admin/organization/group.rbs +17 -0
- data/sig/openai/models/admin/organization/group_create_params.rbs +3 -0
- data/sig/openai/models/admin/organization/group_delete_response.rbs +9 -0
- data/sig/openai/models/admin/organization/group_list_params.rbs +24 -0
- data/sig/openai/models/admin/organization/group_update_params.rbs +3 -0
- data/sig/openai/models/admin/organization/group_update_response.rbs +14 -0
- data/sig/openai/models/admin/organization/groups/organization_group_user.rbs +9 -0
- data/sig/openai/models/admin/organization/groups/role_create_params.rbs +3 -0
- data/sig/openai/models/admin/organization/groups/role_create_response.rbs +24 -0
- data/sig/openai/models/admin/organization/groups/role_delete_response.rbs +8 -0
- data/sig/openai/models/admin/organization/groups/role_list_params.rbs +15 -0
- data/sig/openai/models/admin/organization/groups/role_list_response.rbs +36 -0
- data/sig/openai/models/admin/organization/groups/role_retrieve_response.rbs +36 -0
- data/sig/openai/models/admin/organization/groups/user_create_params.rbs +3 -0
- data/sig/openai/models/admin/organization/groups/user_create_response.rbs +9 -0
- data/sig/openai/models/admin/organization/groups/user_delete_response.rbs +6 -0
- data/sig/openai/models/admin/organization/groups/user_list_params.rbs +18 -0
- data/sig/openai/models/admin/organization/groups/user_retrieve_response.rbs +18 -0
- data/sig/openai/models/admin/organization/invite.rbs +33 -0
- data/sig/openai/models/admin/organization/invite_create_params.rbs +25 -0
- data/sig/openai/models/admin/organization/invite_delete_response.rbs +3 -0
- data/sig/openai/models/admin/organization/invite_list_params.rbs +20 -0
- data/sig/openai/models/admin/organization/organization_data_retention.rbs +6 -0
- data/sig/openai/models/admin/organization/organization_spend_alert.rbs +27 -0
- data/sig/openai/models/admin/organization/organization_spend_alert_deleted.rbs +9 -0
- data/sig/openai/models/admin/organization/organization_spend_limit.rbs +20 -0
- data/sig/openai/models/admin/organization/organization_spend_limit_deleted.rbs +6 -0
- data/sig/openai/models/admin/organization/organization_user.rbs +53 -0
- data/sig/openai/models/admin/organization/project.rbs +25 -0
- data/sig/openai/models/admin/organization/project_create_params.rbs +28 -0
- data/sig/openai/models/admin/organization/project_list_params.rbs +27 -0
- data/sig/openai/models/admin/organization/project_update_params.rbs +11 -0
- data/sig/openai/models/admin/organization/projects/api_key_list_params.rbs +36 -0
- data/sig/openai/models/admin/organization/projects/certificate_activate_response.rbs +23 -0
- data/sig/openai/models/admin/organization/projects/certificate_deactivate_response.rbs +23 -0
- data/sig/openai/models/admin/organization/projects/certificate_list_params.rbs +27 -0
- data/sig/openai/models/admin/organization/projects/certificate_list_response.rbs +23 -0
- data/sig/openai/models/admin/organization/projects/data_retention_update_params.rbs +3 -0
- data/sig/openai/models/admin/organization/projects/group_create_params.rbs +6 -0
- data/sig/openai/models/admin/organization/projects/group_delete_response.rbs +6 -0
- data/sig/openai/models/admin/organization/projects/group_list_params.rbs +15 -0
- data/sig/openai/models/admin/organization/projects/group_retrieve_params.rbs +4 -0
- data/sig/openai/models/admin/organization/projects/groups/role_create_params.rbs +3 -0
- data/sig/openai/models/admin/organization/projects/groups/role_create_response.rbs +24 -0
- data/sig/openai/models/admin/organization/projects/groups/role_delete_response.rbs +8 -0
- data/sig/openai/models/admin/organization/projects/groups/role_list_params.rbs +15 -0
- data/sig/openai/models/admin/organization/projects/groups/role_list_response.rbs +36 -0
- data/sig/openai/models/admin/organization/projects/groups/role_retrieve_response.rbs +36 -0
- data/sig/openai/models/admin/organization/projects/hosted_tool_permission_update_params.rbs +30 -0
- data/sig/openai/models/admin/organization/projects/model_permission_update_params.rbs +6 -0
- data/sig/openai/models/admin/organization/projects/project_api_key.rbs +65 -0
- data/sig/openai/models/admin/organization/projects/project_data_retention.rbs +6 -0
- data/sig/openai/models/admin/organization/projects/project_group.rbs +18 -0
- data/sig/openai/models/admin/organization/projects/project_hosted_tool_permissions.rbs +30 -0
- data/sig/openai/models/admin/organization/projects/project_model_permissions.rbs +9 -0
- data/sig/openai/models/admin/organization/projects/project_model_permissions_deleted.rbs +6 -0
- data/sig/openai/models/admin/organization/projects/project_rate_limit.rbs +31 -0
- data/sig/openai/models/admin/organization/projects/project_service_account.rbs +15 -0
- data/sig/openai/models/admin/organization/projects/project_spend_alert.rbs +27 -0
- data/sig/openai/models/admin/organization/projects/project_spend_alert_deleted.rbs +9 -0
- data/sig/openai/models/admin/organization/projects/project_spend_limit.rbs +20 -0
- data/sig/openai/models/admin/organization/projects/project_spend_limit_deleted.rbs +6 -0
- data/sig/openai/models/admin/organization/projects/project_user.rbs +18 -0
- data/sig/openai/models/admin/organization/projects/rate_limit_list_rate_limits_params.rbs +30 -0
- data/sig/openai/models/admin/organization/projects/rate_limit_update_rate_limit_params.rbs +24 -0
- data/sig/openai/models/admin/organization/projects/role_create_params.rbs +9 -0
- data/sig/openai/models/admin/organization/projects/role_delete_response.rbs +9 -0
- data/sig/openai/models/admin/organization/projects/role_list_params.rbs +15 -0
- data/sig/openai/models/admin/organization/projects/role_update_params.rbs +9 -0
- data/sig/openai/models/admin/organization/projects/service_account_create_params.rbs +17 -0
- data/sig/openai/models/admin/organization/projects/service_account_create_response.rbs +13 -0
- data/sig/openai/models/admin/organization/projects/service_account_list_params.rbs +20 -0
- data/sig/openai/models/admin/organization/projects/service_account_update_params.rbs +8 -0
- data/sig/openai/models/admin/organization/projects/service_accounts/api_key_create_params.rbs +17 -0
- data/sig/openai/models/admin/organization/projects/service_accounts/api_key_create_response.rbs +20 -0
- data/sig/openai/models/admin/organization/projects/spend_alert_create_params.rbs +21 -0
- data/sig/openai/models/admin/organization/projects/spend_alert_list_params.rbs +22 -0
- data/sig/openai/models/admin/organization/projects/spend_alert_update_params.rbs +21 -0
- data/sig/openai/models/admin/organization/projects/spend_limit_update_params.rbs +11 -0
- data/sig/openai/models/admin/organization/projects/user_create_params.rbs +9 -0
- data/sig/openai/models/admin/organization/projects/user_list_params.rbs +20 -0
- data/sig/openai/models/admin/organization/projects/user_update_params.rbs +3 -0
- data/sig/openai/models/admin/organization/projects/users/role_create_params.rbs +3 -0
- data/sig/openai/models/admin/organization/projects/users/role_create_response.rbs +9 -0
- data/sig/openai/models/admin/organization/projects/users/role_delete_response.rbs +8 -0
- data/sig/openai/models/admin/organization/projects/users/role_list_params.rbs +15 -0
- data/sig/openai/models/admin/organization/projects/users/role_list_response.rbs +36 -0
- data/sig/openai/models/admin/organization/projects/users/role_retrieve_response.rbs +36 -0
- data/sig/openai/models/admin/organization/role.rbs +23 -0
- data/sig/openai/models/admin/organization/role_create_params.rbs +9 -0
- data/sig/openai/models/admin/organization/role_delete_response.rbs +9 -0
- data/sig/openai/models/admin/organization/role_list_params.rbs +15 -0
- data/sig/openai/models/admin/organization/role_update_params.rbs +9 -0
- data/sig/openai/models/admin/organization/spend_alert_create_params.rbs +21 -0
- data/sig/openai/models/admin/organization/spend_alert_list_params.rbs +22 -0
- data/sig/openai/models/admin/organization/spend_alert_update_params.rbs +21 -0
- data/sig/openai/models/admin/organization/spend_limit_update_params.rbs +11 -0
- data/sig/openai/models/admin/organization/usage_audio_speeches_params.rbs +60 -0
- data/sig/openai/models/admin/organization/usage_audio_speeches_response.rbs +351 -0
- data/sig/openai/models/admin/organization/usage_audio_transcriptions_params.rbs +60 -0
- data/sig/openai/models/admin/organization/usage_audio_transcriptions_response.rbs +351 -0
- data/sig/openai/models/admin/organization/usage_code_interpreter_sessions_params.rbs +48 -0
- data/sig/openai/models/admin/organization/usage_code_interpreter_sessions_response.rbs +351 -0
- data/sig/openai/models/admin/organization/usage_completions_params.rbs +70 -0
- data/sig/openai/models/admin/organization/usage_completions_response.rbs +351 -0
- data/sig/openai/models/admin/organization/usage_costs_params.rbs +50 -0
- data/sig/openai/models/admin/organization/usage_costs_response.rbs +351 -0
- data/sig/openai/models/admin/organization/usage_embeddings_params.rbs +60 -0
- data/sig/openai/models/admin/organization/usage_embeddings_response.rbs +351 -0
- data/sig/openai/models/admin/organization/usage_file_search_calls_params.rbs +63 -0
- data/sig/openai/models/admin/organization/usage_file_search_calls_response.rbs +351 -0
- data/sig/openai/models/admin/organization/usage_images_params.rbs +77 -0
- data/sig/openai/models/admin/organization/usage_images_response.rbs +351 -0
- data/sig/openai/models/admin/organization/usage_moderations_params.rbs +60 -0
- data/sig/openai/models/admin/organization/usage_moderations_response.rbs +351 -0
- data/sig/openai/models/admin/organization/usage_vector_stores_params.rbs +48 -0
- data/sig/openai/models/admin/organization/usage_vector_stores_response.rbs +351 -0
- data/sig/openai/models/admin/organization/usage_web_search_calls_params.rbs +67 -0
- data/sig/openai/models/admin/organization/usage_web_search_calls_response.rbs +351 -0
- data/sig/openai/models/admin/organization/user_list_params.rbs +24 -0
- data/sig/openai/models/admin/organization/user_update_params.rbs +12 -0
- data/sig/openai/models/admin/organization/users/role_create_params.rbs +3 -0
- data/sig/openai/models/admin/organization/users/role_create_response.rbs +9 -0
- data/sig/openai/models/admin/organization/users/role_delete_response.rbs +8 -0
- data/sig/openai/models/admin/organization/users/role_list_params.rbs +15 -0
- data/sig/openai/models/admin/organization/users/role_list_response.rbs +36 -0
- data/sig/openai/models/admin/organization/users/role_retrieve_response.rbs +36 -0
- data/sig/openai/models/audio/speech_create_params.rbs +54 -0
- data/sig/openai/models/audio/transcription.rbs +66 -0
- data/sig/openai/models/audio/transcription_create_params.rbs +205 -0
- data/sig/openai/models/audio/transcription_diarized.rbs +46 -0
- data/sig/openai/models/audio/transcription_diarized_segment.rbs +22 -0
- data/sig/openai/models/audio/transcription_language.rbs +3 -0
- data/sig/openai/models/audio/transcription_segment.rbs +36 -0
- data/sig/openai/models/audio/transcription_text_delta_event.rbs +35 -0
- data/sig/openai/models/audio/transcription_text_done_event.rbs +66 -0
- data/sig/openai/models/audio/transcription_text_segment_event.rbs +18 -0
- data/sig/openai/models/audio/transcription_verbose.rbs +27 -0
- data/sig/openai/models/audio/transcription_word.rbs +9 -0
- data/sig/openai/models/audio/translation_create_params.rbs +58 -0
- data/sig/openai/models/audio/translation_verbose.rbs +13 -0
- data/sig/openai/models/auto_file_chunking_strategy_param.rbs +3 -0
- data/sig/openai/models/batch.rbs +105 -0
- data/sig/openai/models/batch_create_params.rbs +71 -0
- data/sig/openai/models/batch_error.rbs +14 -0
- data/sig/openai/models/batch_list_params.rbs +20 -0
- data/sig/openai/models/batch_request_counts.rbs +9 -0
- data/sig/openai/models/batch_usage.rbs +23 -0
- data/sig/openai/models/beta/agent.rbs +41 -0
- data/sig/openai/models/beta/agent_close_subagent_call_item.rbs +18 -0
- data/sig/openai/models/beta/agent_command_execution_item.rbs +27 -0
- data/sig/openai/models/beta/agent_content.rbs +6 -0
- data/sig/openai/models/beta/agent_create_params.rbs +35 -0
- data/sig/openai/models/beta/agent_create_subagent_call_item.rbs +24 -0
- data/sig/openai/models/beta/agent_deleted.rbs +9 -0
- data/sig/openai/models/beta/agent_function_call_item.rbs +21 -0
- data/sig/openai/models/beta/agent_interrupt_subagent_call_item.rbs +18 -0
- data/sig/openai/models/beta/agent_list_params.rbs +11 -0
- data/sig/openai/models/beta/agent_mcp_call_item.rbs +27 -0
- data/sig/openai/models/beta/agent_output_command_execution_output_delta_event.rbs +21 -0
- data/sig/openai/models/beta/agent_reasoning.rbs +8 -0
- data/sig/openai/models/beta/agent_reasoning_item.rbs +15 -0
- data/sig/openai/models/beta/agent_reasoning_param.rbs +8 -0
- data/sig/openai/models/beta/agent_resume_subagent_call_item.rbs +18 -0
- data/sig/openai/models/beta/agent_send_subagent_input_call_item.rbs +21 -0
- data/sig/openai/models/beta/agent_session.rbs +88 -0
- data/sig/openai/models/beta/agent_session_assistant_message.rbs +21 -0
- data/sig/openai/models/beta/agent_session_created_event.rbs +9 -0
- data/sig/openai/models/beta/agent_session_deleted.rbs +11 -0
- data/sig/openai/models/beta/agent_session_environment_connected_event.rbs +15 -0
- data/sig/openai/models/beta/agent_session_environment_disconnected_event.rbs +15 -0
- data/sig/openai/models/beta/agent_session_environment_failed_event.rbs +15 -0
- data/sig/openai/models/beta/agent_session_environment_pending_event.rbs +15 -0
- data/sig/openai/models/beta/agent_session_environment_ready_event.rbs +15 -0
- data/sig/openai/models/beta/agent_session_environment_reset_event.rbs +65 -0
- data/sig/openai/models/beta/agent_session_environment_state.rbs +21 -0
- data/sig/openai/models/beta/agent_session_error_event.rbs +12 -0
- data/sig/openai/models/beta/agent_session_event.rbs +1 -0
- data/sig/openai/models/beta/agent_session_failed_event.rbs +9 -0
- data/sig/openai/models/beta/agent_session_idle_event.rbs +9 -0
- data/sig/openai/models/beta/agent_session_in_progress_event.rbs +9 -0
- data/sig/openai/models/beta/agent_session_input_message_param.rbs +10 -0
- data/sig/openai/models/beta/agent_session_input_param.rbs +27 -0
- data/sig/openai/models/beta/agent_session_item.rbs +39 -0
- data/sig/openai/models/beta/agent_session_message.rbs +23 -0
- data/sig/openai/models/beta/agent_session_message_content.rbs +20 -0
- data/sig/openai/models/beta/agent_session_requires_action_event.rbs +9 -0
- data/sig/openai/models/beta/agent_session_subagent_active_event.rbs +9 -0
- data/sig/openai/models/beta/agent_session_subagent_closed_event.rbs +9 -0
- data/sig/openai/models/beta/agent_session_subagent_created_event.rbs +9 -0
- data/sig/openai/models/beta/agent_session_turn_cancelled_event.rbs +18 -0
- data/sig/openai/models/beta/agent_session_turn_completed_event.rbs +18 -0
- data/sig/openai/models/beta/agent_session_turn_content_part_added_event.rbs +24 -0
- data/sig/openai/models/beta/agent_session_turn_content_part_done_event.rbs +24 -0
- data/sig/openai/models/beta/agent_session_turn_created_event.rbs +15 -0
- data/sig/openai/models/beta/agent_session_turn_failed_event.rbs +18 -0
- data/sig/openai/models/beta/agent_session_turn_in_progress_event.rbs +15 -0
- data/sig/openai/models/beta/agent_session_turn_item_added_event.rbs +18 -0
- data/sig/openai/models/beta/agent_session_turn_item_done_event.rbs +18 -0
- data/sig/openai/models/beta/agent_session_turn_output_text_delta_event.rbs +24 -0
- data/sig/openai/models/beta/agent_session_turn_output_text_done_event.rbs +24 -0
- data/sig/openai/models/beta/agent_session_turn_reasoning_summary_part_added_event.rbs +26 -0
- data/sig/openai/models/beta/agent_session_turn_reasoning_summary_part_done_event.rbs +28 -0
- data/sig/openai/models/beta/agent_session_turn_reasoning_summary_text_delta_event.rbs +26 -0
- data/sig/openai/models/beta/agent_session_turn_reasoning_summary_text_done_event.rbs +24 -0
- data/sig/openai/models/beta/agent_text.rbs +6 -0
- data/sig/openai/models/beta/agent_text_param.rbs +8 -0
- data/sig/openai/models/beta/agent_tool.rbs +74 -0
- data/sig/openai/models/beta/agent_tool_param.rbs +90 -0
- data/sig/openai/models/beta/agent_update_params.rbs +36 -0
- data/sig/openai/models/beta/agent_wait_for_subagents_call_item.rbs +18 -0
- data/sig/openai/models/beta/agent_web_search_call_item.rbs +15 -0
- data/sig/openai/models/beta/agents/environment_info.rbs +21 -0
- data/sig/openai/models/beta/agents/environments/environment_file.rbs +12 -0
- data/sig/openai/models/beta/agents/environments/environment_template.rbs +84 -0
- data/sig/openai/models/beta/agents/environments/environment_template_deleted.rbs +9 -0
- data/sig/openai/models/beta/agents/environments/file_list_params.rbs +14 -0
- data/sig/openai/models/beta/agents/environments/template_create_params.rbs +49 -1
- data/sig/openai/models/beta/agents/environments/template_list_params.rbs +12 -0
- data/sig/openai/models/beta/agents/environments/template_update_params.rbs +47 -1
- data/sig/openai/models/beta/agents/session_create_params.rbs +60 -0
- data/sig/openai/models/beta/agents/session_list_params.rbs +21 -0
- data/sig/openai/models/beta/agents/session_update_params.rbs +25 -0
- data/sig/openai/models/beta/agents/sessions/artifact_list_params.rbs +13 -0
- data/sig/openai/models/beta/agents/sessions/event_create_params.rbs +3 -0
- data/sig/openai/models/beta/agents/sessions/item_list_params.rbs +12 -0
- data/sig/openai/models/beta/agents/sessions/session_artifact.rbs +24 -0
- data/sig/openai/models/beta/agents/sessions/session_artifact_deleted.rbs +9 -0
- data/sig/openai/models/beta/agents/sessions/subagent_list_params.rbs +12 -0
- data/sig/openai/models/beta/agents/sessions/subagents/item_list_params.rbs +12 -0
- data/sig/openai/models/beta/agents/sessions/subagents/turn_list_params.rbs +12 -0
- data/sig/openai/models/beta/agents/sessions/subagents/turns/item_list_params.rbs +12 -0
- data/sig/openai/models/beta/agents/sessions/turn.rbs +39 -0
- data/sig/openai/models/beta/agents/sessions/turn_list_params.rbs +12 -0
- data/sig/openai/models/beta/agents/vault.rbs +17 -0
- data/sig/openai/models/beta/agents/vault_create_params.rbs +12 -0
- data/sig/openai/models/beta/agents/vault_deleted.rbs +9 -0
- data/sig/openai/models/beta/agents/vault_list_params.rbs +23 -0
- data/sig/openai/models/beta/agents/vaults/credential.rbs +21 -0
- data/sig/openai/models/beta/agents/vaults/credential_auth.rbs +74 -0
- data/sig/openai/models/beta/agents/vaults/credential_auth_create_param.rbs +107 -0
- data/sig/openai/models/beta/agents/vaults/credential_auth_rotate_param.rbs +67 -0
- data/sig/openai/models/beta/agents/vaults/credential_create_params.rbs +8 -0
- data/sig/openai/models/beta/agents/vaults/credential_deleted.rbs +9 -0
- data/sig/openai/models/beta/agents/vaults/credential_list_params.rbs +23 -0
- data/sig/openai/models/beta/agents/vaults/credential_networking.rbs +60 -0
- data/sig/openai/models/beta/agents/vaults/credential_networking_param.rbs +60 -0
- data/sig/openai/models/beta/agents/vaults/credential_update_params.rbs +3 -0
- data/sig/openai/models/beta/agents/vaults/mcp_oauth_token_endpoint_auth.rbs +9 -0
- data/sig/openai/models/beta/agents/vaults/mcp_oauth_token_endpoint_auth_create_param.rbs +15 -0
- data/sig/openai/models/beta/agents/vaults/mcp_oauth_token_endpoint_auth_rotate_param.rbs +16 -0
- data/sig/openai/models/beta/assistant.rbs +142 -0
- data/sig/openai/models/beta/assistant_create_params.rbs +213 -0
- data/sig/openai/models/beta/assistant_list_params.rbs +40 -0
- data/sig/openai/models/beta/assistant_stream_event.rbs +107 -0
- data/sig/openai/models/beta/assistant_tool_choice.rbs +3 -0
- data/sig/openai/models/beta/assistant_tool_choice_function.rbs +3 -0
- data/sig/openai/models/beta/assistant_update_params.rbs +157 -0
- data/sig/openai/models/beta/beta_apply_patch_tool.rbs +6 -0
- data/sig/openai/models/beta/beta_compacted_response.rbs +19 -0
- data/sig/openai/models/beta/beta_computer_action.rbs +126 -0
- data/sig/openai/models/beta/beta_computer_tool.rbs +3 -0
- data/sig/openai/models/beta/beta_computer_use_preview_tool.rbs +12 -0
- data/sig/openai/models/beta/beta_container_auto.rbs +18 -0
- data/sig/openai/models/beta/beta_container_network_policy_allowlist.rbs +10 -0
- data/sig/openai/models/beta/beta_container_network_policy_disabled.rbs +3 -0
- data/sig/openai/models/beta/beta_container_network_policy_domain_secret.rbs +9 -0
- data/sig/openai/models/beta/beta_container_reference.rbs +6 -0
- data/sig/openai/models/beta/beta_custom_tool.rbs +40 -0
- data/sig/openai/models/beta/beta_easy_input_message.rbs +23 -0
- data/sig/openai/models/beta/beta_file_search_tool.rbs +117 -0
- data/sig/openai/models/beta/beta_function_shell_tool.rbs +6 -0
- data/sig/openai/models/beta/beta_function_tool.rbs +29 -0
- data/sig/openai/models/beta/beta_inline_skill.rbs +12 -0
- data/sig/openai/models/beta/beta_inline_skill_source.rbs +9 -0
- data/sig/openai/models/beta/beta_local_environment.rbs +7 -0
- data/sig/openai/models/beta/beta_local_skill.rbs +9 -0
- data/sig/openai/models/beta/beta_namespace_tool.rbs +38 -0
- data/sig/openai/models/beta/beta_response.rbs +549 -2
- data/sig/openai/models/beta/beta_response_apply_patch_tool_call.rbs +60 -0
- data/sig/openai/models/beta/beta_response_apply_patch_tool_call_output.rbs +34 -0
- data/sig/openai/models/beta/beta_response_audio_delta_event.rbs +15 -0
- data/sig/openai/models/beta/beta_response_audio_done_event.rbs +12 -0
- data/sig/openai/models/beta/beta_response_audio_transcript_delta_event.rbs +15 -0
- data/sig/openai/models/beta/beta_response_audio_transcript_done_event.rbs +12 -0
- data/sig/openai/models/beta/beta_response_code_interpreter_call_code_delta_event.rbs +23 -0
- data/sig/openai/models/beta/beta_response_code_interpreter_call_code_done_event.rbs +21 -0
- data/sig/openai/models/beta/beta_response_code_interpreter_call_completed_event.rbs +20 -0
- data/sig/openai/models/beta/beta_response_code_interpreter_call_in_progress_event.rbs +20 -0
- data/sig/openai/models/beta/beta_response_code_interpreter_call_interpreting_event.rbs +20 -0
- data/sig/openai/models/beta/beta_response_code_interpreter_tool_call.rbs +40 -0
- data/sig/openai/models/beta/beta_response_compaction_compacting_event.rbs +19 -0
- data/sig/openai/models/beta/beta_response_compaction_item.rbs +20 -0
- data/sig/openai/models/beta/beta_response_compaction_item_param.rbs +15 -0
- data/sig/openai/models/beta/beta_response_completed_event.rbs +15 -0
- data/sig/openai/models/beta/beta_response_computer_tool_call.rbs +43 -0
- data/sig/openai/models/beta/beta_response_computer_tool_call_output_item.rbs +43 -0
- data/sig/openai/models/beta/beta_response_computer_tool_call_output_screenshot.rbs +13 -0
- data/sig/openai/models/beta/beta_response_configuration_update_item.rbs +22 -0
- data/sig/openai/models/beta/beta_response_configuration_update_item_param.rbs +21 -0
- data/sig/openai/models/beta/beta_response_container_reference.rbs +3 -0
- data/sig/openai/models/beta/beta_response_content.rbs +6 -0
- data/sig/openai/models/beta/beta_response_content_part_added_event.rbs +30 -0
- data/sig/openai/models/beta/beta_response_content_part_done_event.rbs +30 -0
- data/sig/openai/models/beta/beta_response_conversation_param.rbs +3 -0
- data/sig/openai/models/beta/beta_response_created_event.rbs +15 -0
- data/sig/openai/models/beta/beta_response_custom_tool_call.rbs +36 -0
- data/sig/openai/models/beta/beta_response_custom_tool_call_input_delta_event.rbs +21 -0
- data/sig/openai/models/beta/beta_response_custom_tool_call_input_done_event.rbs +21 -0
- data/sig/openai/models/beta/beta_response_custom_tool_call_item.rbs +31 -0
- data/sig/openai/models/beta/beta_response_custom_tool_call_output.rbs +33 -0
- data/sig/openai/models/beta/beta_response_custom_tool_call_output_item.rbs +26 -0
- data/sig/openai/models/beta/beta_response_error.rbs +21 -0
- data/sig/openai/models/beta/beta_response_error_event.rbs +21 -0
- data/sig/openai/models/beta/beta_response_failed_event.rbs +15 -0
- data/sig/openai/models/beta/beta_response_file_search_call_completed_event.rbs +18 -0
- data/sig/openai/models/beta/beta_response_file_search_call_in_progress_event.rbs +18 -0
- data/sig/openai/models/beta/beta_response_file_search_call_searching_event.rbs +18 -0
- data/sig/openai/models/beta/beta_response_file_search_tool_call.rbs +50 -0
- data/sig/openai/models/beta/beta_response_format_text_config.rbs +6 -0
- data/sig/openai/models/beta/beta_response_format_text_json_schema_config.rbs +31 -0
- data/sig/openai/models/beta/beta_response_function_call_arguments_delta_event.rbs +21 -0
- data/sig/openai/models/beta/beta_response_function_call_arguments_done_event.rbs +18 -0
- data/sig/openai/models/beta/beta_response_function_shell_call_output_content.rbs +18 -0
- data/sig/openai/models/beta/beta_response_function_shell_tool_call.rbs +45 -0
- data/sig/openai/models/beta/beta_response_function_shell_tool_call_output.rbs +65 -0
- data/sig/openai/models/beta/beta_response_function_tool_call.rbs +43 -0
- data/sig/openai/models/beta/beta_response_function_tool_call_item.rbs +31 -0
- data/sig/openai/models/beta/beta_response_function_tool_call_output_item.rbs +50 -0
- data/sig/openai/models/beta/beta_response_function_web_search.rbs +56 -0
- data/sig/openai/models/beta/beta_response_image_gen_call_completed_event.rbs +18 -0
- data/sig/openai/models/beta/beta_response_image_gen_call_generating_event.rbs +18 -0
- data/sig/openai/models/beta/beta_response_image_gen_call_in_progress_event.rbs +18 -0
- data/sig/openai/models/beta/beta_response_image_gen_call_partial_image_event.rbs +42 -0
- data/sig/openai/models/beta/beta_response_in_progress_event.rbs +15 -0
- data/sig/openai/models/beta/beta_response_incomplete_event.rbs +15 -0
- data/sig/openai/models/beta/beta_response_inject_created_event.rbs +16 -0
- data/sig/openai/models/beta/beta_response_inject_event.rbs +9 -0
- data/sig/openai/models/beta/beta_response_inject_failed_event.rbs +28 -0
- data/sig/openai/models/beta/beta_response_input_audio.rbs +9 -0
- data/sig/openai/models/beta/beta_response_input_file.rbs +47 -0
- data/sig/openai/models/beta/beta_response_input_file_content.rbs +41 -0
- data/sig/openai/models/beta/beta_response_input_image.rbs +29 -0
- data/sig/openai/models/beta/beta_response_input_image_content.rbs +26 -0
- data/sig/openai/models/beta/beta_response_input_item.rbs +737 -0
- data/sig/openai/models/beta/beta_response_input_message_item.rbs +27 -0
- data/sig/openai/models/beta/beta_response_input_text.rbs +19 -0
- data/sig/openai/models/beta/beta_response_input_text_content.rbs +16 -0
- data/sig/openai/models/beta/beta_response_item.rbs +387 -0
- data/sig/openai/models/beta/beta_response_local_environment.rbs +3 -0
- data/sig/openai/models/beta/beta_response_mcp_call_arguments_delta_event.rbs +23 -0
- data/sig/openai/models/beta/beta_response_mcp_call_arguments_done_event.rbs +21 -0
- data/sig/openai/models/beta/beta_response_mcp_call_completed_event.rbs +18 -0
- data/sig/openai/models/beta/beta_response_mcp_call_failed_event.rbs +18 -0
- data/sig/openai/models/beta/beta_response_mcp_call_in_progress_event.rbs +18 -0
- data/sig/openai/models/beta/beta_response_mcp_list_tools_completed_event.rbs +18 -0
- data/sig/openai/models/beta/beta_response_mcp_list_tools_failed_event.rbs +18 -0
- data/sig/openai/models/beta/beta_response_mcp_list_tools_in_progress_event.rbs +18 -0
- data/sig/openai/models/beta/beta_response_output_audio.rbs +9 -0
- data/sig/openai/models/beta/beta_response_output_item.rbs +387 -0
- data/sig/openai/models/beta/beta_response_output_item_added_event.rbs +24 -0
- data/sig/openai/models/beta/beta_response_output_item_done_event.rbs +18 -0
- data/sig/openai/models/beta/beta_response_output_message.rbs +32 -0
- data/sig/openai/models/beta/beta_response_output_refusal.rbs +6 -0
- data/sig/openai/models/beta/beta_response_output_text.rbs +63 -0
- data/sig/openai/models/beta/beta_response_output_text_annotation_added_event.rbs +81 -0
- data/sig/openai/models/beta/beta_response_prompt.rbs +13 -0
- data/sig/openai/models/beta/beta_response_queued_event.rbs +15 -0
- data/sig/openai/models/beta/beta_response_reasoning_item.rbs +55 -0
- data/sig/openai/models/beta/beta_response_reasoning_summary_part_added_event.rbs +30 -0
- data/sig/openai/models/beta/beta_response_reasoning_summary_part_done_event.rbs +37 -0
- data/sig/openai/models/beta/beta_response_reasoning_summary_text_delta_event.rbs +24 -0
- data/sig/openai/models/beta/beta_response_reasoning_summary_text_done_event.rbs +24 -0
- data/sig/openai/models/beta/beta_response_reasoning_text_delta_event.rbs +24 -0
- data/sig/openai/models/beta/beta_response_reasoning_text_done_event.rbs +24 -0
- data/sig/openai/models/beta/beta_response_refusal_delta_event.rbs +24 -0
- data/sig/openai/models/beta/beta_response_refusal_done_event.rbs +24 -0
- data/sig/openai/models/beta/beta_response_shell_call_command_added_event.rbs +22 -0
- data/sig/openai/models/beta/beta_response_shell_call_command_delta_event.rbs +26 -0
- data/sig/openai/models/beta/beta_response_shell_call_command_done_event.rbs +22 -0
- data/sig/openai/models/beta/beta_response_shell_call_output_content_delta_event.rbs +33 -0
- data/sig/openai/models/beta/beta_response_shell_call_output_content_done_event.rbs +49 -0
- data/sig/openai/models/beta/beta_response_steer_accepted_event.rbs +22 -0
- data/sig/openai/models/beta/beta_response_steer_event.rbs +25 -0
- data/sig/openai/models/beta/beta_response_steer_failed_event.rbs +78 -0
- data/sig/openai/models/beta/beta_response_steer_input.rbs +64 -0
- data/sig/openai/models/beta/beta_response_steer_pending_event.rbs +42 -0
- data/sig/openai/models/beta/beta_response_text_config.rbs +49 -0
- data/sig/openai/models/beta/beta_response_text_delta_event.rbs +45 -0
- data/sig/openai/models/beta/beta_response_text_done_event.rbs +45 -0
- data/sig/openai/models/beta/beta_response_tool_search_call.rbs +29 -0
- data/sig/openai/models/beta/beta_response_tool_search_output_item.rbs +29 -0
- data/sig/openai/models/beta/beta_response_tool_search_output_item_param.rbs +25 -0
- data/sig/openai/models/beta/beta_response_usage.rbs +26 -0
- data/sig/openai/models/beta/beta_response_web_search_call_completed_event.rbs +18 -0
- data/sig/openai/models/beta/beta_response_web_search_call_in_progress_event.rbs +18 -0
- data/sig/openai/models/beta/beta_response_web_search_call_searching_event.rbs +18 -0
- data/sig/openai/models/beta/beta_responses_client_event.rbs +662 -2
- data/sig/openai/models/beta/beta_responses_server_event.rbs +1132 -0
- data/sig/openai/models/beta/beta_skill_reference.rbs +10 -0
- data/sig/openai/models/beta/beta_tool.rbs +347 -0
- data/sig/openai/models/beta/beta_tool_choice_allowed.rbs +39 -0
- data/sig/openai/models/beta/beta_tool_choice_apply_patch.rbs +3 -0
- data/sig/openai/models/beta/beta_tool_choice_custom.rbs +6 -0
- data/sig/openai/models/beta/beta_tool_choice_function.rbs +6 -0
- data/sig/openai/models/beta/beta_tool_choice_mcp.rbs +9 -0
- data/sig/openai/models/beta/beta_tool_choice_shell.rbs +3 -0
- data/sig/openai/models/beta/beta_tool_choice_types.rbs +25 -0
- data/sig/openai/models/beta/beta_tool_search_tool.rbs +13 -0
- data/sig/openai/models/beta/beta_web_search_preview_tool.rbs +34 -0
- data/sig/openai/models/beta/beta_web_search_tool.rbs +55 -0
- data/sig/openai/models/beta/chatkit/chat_session.rbs +30 -0
- data/sig/openai/models/beta/chatkit/chat_session_automatic_thread_titling.rbs +3 -0
- data/sig/openai/models/beta/chatkit/chat_session_chatkit_configuration.rbs +9 -0
- data/sig/openai/models/beta/chatkit/chat_session_chatkit_configuration_param.rbs +51 -0
- data/sig/openai/models/beta/chatkit/chat_session_expires_after_param.rbs +6 -0
- data/sig/openai/models/beta/chatkit/chat_session_file_upload.rbs +9 -0
- data/sig/openai/models/beta/chatkit/chat_session_history.rbs +8 -0
- data/sig/openai/models/beta/chatkit/chat_session_rate_limits.rbs +3 -0
- data/sig/openai/models/beta/chatkit/chat_session_rate_limits_param.rbs +4 -0
- data/sig/openai/models/beta/chatkit/chat_session_workflow_param.rbs +25 -0
- data/sig/openai/models/beta/chatkit/chatkit_attachment.rbs +15 -0
- data/sig/openai/models/beta/chatkit/chatkit_response_output_text.rbs +33 -0
- data/sig/openai/models/beta/chatkit/chatkit_thread.rbs +35 -0
- data/sig/openai/models/beta/chatkit/chatkit_thread_assistant_message_item.rbs +18 -0
- data/sig/openai/models/beta/chatkit/chatkit_thread_item_list.rbs +98 -0
- data/sig/openai/models/beta/chatkit/chatkit_thread_user_message_item.rbs +44 -0
- data/sig/openai/models/beta/chatkit/chatkit_widget_item.rbs +18 -0
- data/sig/openai/models/beta/chatkit/session_create_params.rbs +23 -0
- data/sig/openai/models/beta/chatkit/thread_delete_response.rbs +9 -0
- data/sig/openai/models/beta/chatkit/thread_list_items_params.rbs +22 -0
- data/sig/openai/models/beta/chatkit/thread_list_params.rbs +29 -0
- data/sig/openai/models/beta/chatkit_workflow.rbs +19 -0
- data/sig/openai/models/beta/code_interpreter_tool.rbs +3 -0
- data/sig/openai/models/beta/environment.rbs +59 -0
- data/sig/openai/models/beta/environment_param.rbs +70 -1
- data/sig/openai/models/beta/file_search_tool.rbs +63 -0
- data/sig/openai/models/beta/function_tool.rbs +3 -0
- data/sig/openai/models/beta/hosted_environment_file.rbs +12 -0
- data/sig/openai/models/beta/hosted_environment_file_id.rbs +15 -0
- data/sig/openai/models/beta/hosted_environment_file_param.rbs +18 -0
- data/sig/openai/models/beta/hosted_plugin.rbs +9 -0
- data/sig/openai/models/beta/hosted_plugin_param.rbs +12 -0
- data/sig/openai/models/beta/hosted_skill.rbs +9 -0
- data/sig/openai/models/beta/hosted_skill_param.rbs +21 -0
- data/sig/openai/models/beta/hosted_skill_reference.rbs +15 -0
- data/sig/openai/models/beta/inline_capability_source_param.rbs +9 -0
- data/sig/openai/models/beta/input_content.rbs +14 -0
- data/sig/openai/models/beta/input_content_param.rbs +12 -0
- data/sig/openai/models/beta/mcp_transport.rbs +21 -0
- data/sig/openai/models/beta/mcp_transport_param.rbs +30 -0
- data/sig/openai/models/beta/message_stream_event.rbs +25 -0
- data/sig/openai/models/beta/multi_agent_config.rbs +8 -0
- data/sig/openai/models/beta/multi_agent_config_param.rbs +7 -0
- data/sig/openai/models/beta/output_text.rbs +6 -0
- data/sig/openai/models/beta/persisted_agent_tool.rbs +75 -0
- data/sig/openai/models/beta/persisted_agent_tool_param.rbs +86 -0
- data/sig/openai/models/beta/persisted_mcp_transport.rbs +24 -0
- data/sig/openai/models/beta/persisted_mcp_transport_param.rbs +24 -0
- data/sig/openai/models/beta/response_compact_params.rbs +125 -2
- data/sig/openai/models/beta/response_create_params.rbs +630 -2
- data/sig/openai/models/beta/response_retrieve_params.rbs +30 -0
- data/sig/openai/models/beta/responses/beta_response_item_list.rbs +15 -0
- data/sig/openai/models/beta/responses/input_item_list_params.rbs +31 -0
- data/sig/openai/models/beta/responses/input_token_count_params.rbs +206 -0
- data/sig/openai/models/beta/run_step_stream_event.rbs +23 -0
- data/sig/openai/models/beta/run_stream_event.rbs +50 -0
- data/sig/openai/models/beta/session_error.rbs +12 -0
- data/sig/openai/models/beta/session_turn_error.rbs +6 -0
- data/sig/openai/models/beta/setup_command_param.rbs +6 -0
- data/sig/openai/models/beta/subagent.rbs +33 -0
- data/sig/openai/models/beta/summary_text.rbs +6 -0
- data/sig/openai/models/beta/text_format.rbs +9 -0
- data/sig/openai/models/beta/text_format_param.rbs +9 -0
- data/sig/openai/models/beta/thread.rbs +54 -0
- data/sig/openai/models/beta/thread_create_and_run_params.rbs +367 -0
- data/sig/openai/models/beta/thread_create_params.rbs +162 -0
- data/sig/openai/models/beta/thread_stream_event.rbs +9 -0
- data/sig/openai/models/beta/thread_update_params.rbs +45 -0
- data/sig/openai/models/beta/threads/file_citation_annotation.rbs +9 -0
- data/sig/openai/models/beta/threads/file_citation_delta_annotation.rbs +18 -0
- data/sig/openai/models/beta/threads/file_path_annotation.rbs +9 -0
- data/sig/openai/models/beta/threads/file_path_delta_annotation.rbs +14 -0
- data/sig/openai/models/beta/threads/image_file.rbs +14 -0
- data/sig/openai/models/beta/threads/image_file_content_block.rbs +3 -0
- data/sig/openai/models/beta/threads/image_file_delta.rbs +17 -0
- data/sig/openai/models/beta/threads/image_file_delta_block.rbs +6 -0
- data/sig/openai/models/beta/threads/image_url.rbs +12 -0
- data/sig/openai/models/beta/threads/image_url_content_block.rbs +3 -0
- data/sig/openai/models/beta/threads/image_url_delta.rbs +14 -0
- data/sig/openai/models/beta/threads/image_url_delta_block.rbs +6 -0
- data/sig/openai/models/beta/threads/message.rbs +78 -0
- data/sig/openai/models/beta/threads/message_create_params.rbs +43 -0
- data/sig/openai/models/beta/threads/message_delta.rbs +8 -0
- data/sig/openai/models/beta/threads/message_delta_event.rbs +9 -0
- data/sig/openai/models/beta/threads/message_list_params.rbs +44 -0
- data/sig/openai/models/beta/threads/message_update_params.rbs +13 -0
- data/sig/openai/models/beta/threads/refusal_content_block.rbs +3 -0
- data/sig/openai/models/beta/threads/refusal_delta_block.rbs +6 -0
- data/sig/openai/models/beta/threads/required_action_function_tool_call.rbs +23 -0
- data/sig/openai/models/beta/threads/run.rbs +226 -0
- data/sig/openai/models/beta/threads/run_create_params.rbs +256 -0
- data/sig/openai/models/beta/threads/run_list_params.rbs +40 -0
- data/sig/openai/models/beta/threads/run_submit_tool_outputs_params.rbs +14 -0
- data/sig/openai/models/beta/threads/run_update_params.rbs +13 -0
- data/sig/openai/models/beta/threads/runs/code_interpreter_logs.rbs +10 -0
- data/sig/openai/models/beta/threads/runs/code_interpreter_output_image.rbs +13 -0
- data/sig/openai/models/beta/threads/runs/code_interpreter_tool_call.rbs +35 -0
- data/sig/openai/models/beta/threads/runs/code_interpreter_tool_call_delta.rbs +30 -0
- data/sig/openai/models/beta/threads/runs/file_search_tool_call.rbs +55 -0
- data/sig/openai/models/beta/threads/runs/file_search_tool_call_delta.rbs +15 -0
- data/sig/openai/models/beta/threads/runs/function_tool_call.rbs +22 -0
- data/sig/openai/models/beta/threads/runs/function_tool_call_delta.rbs +29 -0
- data/sig/openai/models/beta/threads/runs/message_creation_step_details.rbs +6 -0
- data/sig/openai/models/beta/threads/runs/run_step.rbs +91 -0
- data/sig/openai/models/beta/threads/runs/run_step_delta.rbs +4 -0
- data/sig/openai/models/beta/threads/runs/run_step_delta_event.rbs +9 -0
- data/sig/openai/models/beta/threads/runs/run_step_delta_message_delta.rbs +7 -0
- data/sig/openai/models/beta/threads/runs/step_list_params.rbs +62 -0
- data/sig/openai/models/beta/threads/runs/step_retrieve_params.rbs +22 -0
- data/sig/openai/models/beta/threads/runs/tool_call_delta_object.rbs +13 -0
- data/sig/openai/models/beta/threads/runs/tool_calls_step_details.rbs +10 -0
- data/sig/openai/models/beta/threads/text.rbs +3 -0
- data/sig/openai/models/beta/threads/text_content_block.rbs +3 -0
- data/sig/openai/models/beta/threads/text_content_block_param.rbs +6 -0
- data/sig/openai/models/beta/threads/text_delta.rbs +4 -0
- data/sig/openai/models/beta/threads/text_delta_block.rbs +6 -0
- data/sig/openai/models/beta/token_usage.rbs +21 -0
- data/sig/openai/models/beta/web_search_action.rbs +27 -0
- data/sig/openai/models/chat/chat_completion.rbs +213 -0
- data/sig/openai/models/chat/chat_completion_allowed_tool_choice.rbs +6 -0
- data/sig/openai/models/chat/chat_completion_allowed_tools.rbs +34 -0
- data/sig/openai/models/chat/chat_completion_assistant_message_param.rbs +47 -0
- data/sig/openai/models/chat/chat_completion_audio.rbs +16 -0
- data/sig/openai/models/chat/chat_completion_audio_param.rbs +17 -0
- data/sig/openai/models/chat/chat_completion_chunk.rbs +279 -0
- data/sig/openai/models/chat/chat_completion_content_part.rbs +31 -0
- data/sig/openai/models/chat/chat_completion_content_part_image.rbs +26 -0
- data/sig/openai/models/chat/chat_completion_content_part_input_audio.rbs +22 -0
- data/sig/openai/models/chat/chat_completion_content_part_refusal.rbs +6 -0
- data/sig/openai/models/chat/chat_completion_content_part_text.rbs +19 -0
- data/sig/openai/models/chat/chat_completion_custom_tool.rbs +32 -0
- data/sig/openai/models/chat/chat_completion_deleted.rbs +9 -0
- data/sig/openai/models/chat/chat_completion_developer_message_param.rbs +13 -0
- data/sig/openai/models/chat/chat_completion_function_call_option.rbs +3 -0
- data/sig/openai/models/chat/chat_completion_function_message_param.rbs +9 -0
- data/sig/openai/models/chat/chat_completion_function_tool.rbs +3 -0
- data/sig/openai/models/chat/chat_completion_message.rbs +64 -0
- data/sig/openai/models/chat/chat_completion_message_custom_tool_call.rbs +15 -0
- data/sig/openai/models/chat/chat_completion_message_function_tool_call.rbs +21 -0
- data/sig/openai/models/chat/chat_completion_named_tool_choice.rbs +6 -0
- data/sig/openai/models/chat/chat_completion_named_tool_choice_custom.rbs +6 -0
- data/sig/openai/models/chat/chat_completion_prediction_content.rbs +12 -0
- data/sig/openai/models/chat/chat_completion_store_message.rbs +29 -0
- data/sig/openai/models/chat/chat_completion_stream_options.rbs +41 -0
- data/sig/openai/models/chat/chat_completion_system_message_param.rbs +13 -0
- data/sig/openai/models/chat/chat_completion_token_logprob.rbs +43 -0
- data/sig/openai/models/chat/chat_completion_tool_message_param.rbs +9 -0
- data/sig/openai/models/chat/chat_completion_user_message_param.rbs +13 -0
- data/sig/openai/models/chat/completion_create_params.rbs +637 -0
- data/sig/openai/models/chat/completion_list_params.rbs +26 -0
- data/sig/openai/models/chat/completion_update_params.rbs +13 -0
- data/sig/openai/models/chat/completions/message_list_params.rbs +15 -0
- data/sig/openai/models/chat_model.rbs +6 -2
- data/sig/openai/models/comparison_filter.rbs +31 -0
- data/sig/openai/models/completion.rbs +32 -0
- data/sig/openai/models/completion_choice.rbs +9 -0
- data/sig/openai/models/completion_create_params.rbs +198 -0
- data/sig/openai/models/completion_usage.rbs +69 -0
- data/sig/openai/models/compound_filter.rbs +8 -0
- data/sig/openai/models/container_create_params.rbs +28 -0
- data/sig/openai/models/container_create_response.rbs +52 -0
- data/sig/openai/models/container_list_params.rbs +31 -0
- data/sig/openai/models/container_list_response.rbs +52 -0
- data/sig/openai/models/container_retrieve_response.rbs +52 -0
- data/sig/openai/models/containers/file_create_params.rbs +20 -0
- data/sig/openai/models/containers/file_create_response.rbs +21 -0
- data/sig/openai/models/containers/file_list_params.rbs +27 -0
- data/sig/openai/models/containers/file_list_response.rbs +21 -0
- data/sig/openai/models/containers/file_retrieve_response.rbs +21 -0
- data/sig/openai/models/content_provenance_check.rbs +69 -0
- data/sig/openai/models/content_provenance_check_create_params.rbs +11 -0
- data/sig/openai/models/conversations/computer_screenshot_content.rbs +29 -0
- data/sig/openai/models/conversations/conversation.rbs +22 -0
- data/sig/openai/models/conversations/conversation_create_params.rbs +18 -0
- data/sig/openai/models/conversations/conversation_item.rbs +211 -0
- data/sig/openai/models/conversations/conversation_item_list.rbs +15 -0
- data/sig/openai/models/conversations/conversation_update_params.rbs +11 -0
- data/sig/openai/models/conversations/item_create_params.rbs +13 -0
- data/sig/openai/models/conversations/item_list_params.rbs +79 -0
- data/sig/openai/models/conversations/item_retrieve_params.rbs +10 -0
- data/sig/openai/models/conversations/message.rbs +34 -0
- data/sig/openai/models/conversations/summary_text_content.rbs +6 -0
- data/sig/openai/models/create_embedding_response.rbs +18 -0
- data/sig/openai/models/custom_tool_input_format.rbs +12 -0
- data/sig/openai/models/embedding.rbs +13 -0
- data/sig/openai/models/embedding_create_params.rbs +54 -0
- data/sig/openai/models/error_object.rbs +15 -0
- data/sig/openai/models/eval_create_params.rbs +161 -0
- data/sig/openai/models/eval_create_response.rbs +96 -0
- data/sig/openai/models/eval_custom_data_source_config.rbs +8 -0
- data/sig/openai/models/eval_list_params.rbs +22 -0
- data/sig/openai/models/eval_list_response.rbs +96 -0
- data/sig/openai/models/eval_retrieve_response.rbs +96 -0
- data/sig/openai/models/eval_stored_completions_data_source_config.rbs +21 -0
- data/sig/openai/models/eval_update_params.rbs +17 -0
- data/sig/openai/models/eval_update_response.rbs +96 -0
- data/sig/openai/models/evals/create_eval_completions_run_data_source.rbs +180 -0
- data/sig/openai/models/evals/create_eval_jsonl_run_data_source.rbs +18 -0
- data/sig/openai/models/evals/eval_api_error.rbs +6 -0
- data/sig/openai/models/evals/run_cancel_response.rbs +363 -0
- data/sig/openai/models/evals/run_create_params.rbs +292 -0
- data/sig/openai/models/evals/run_create_response.rbs +363 -0
- data/sig/openai/models/evals/run_list_params.rbs +22 -0
- data/sig/openai/models/evals/run_list_response.rbs +363 -0
- data/sig/openai/models/evals/run_retrieve_response.rbs +363 -0
- data/sig/openai/models/evals/runs/output_item_list_params.rbs +22 -0
- data/sig/openai/models/evals/runs/output_item_list_response.rbs +102 -0
- data/sig/openai/models/evals/runs/output_item_retrieve_response.rbs +102 -0
- data/sig/openai/models/file_create_params.rbs +45 -0
- data/sig/openai/models/file_list_params.rbs +31 -0
- data/sig/openai/models/file_object.rbs +38 -0
- data/sig/openai/models/fine_tuning/alpha/grader_run_params.rbs +27 -0
- data/sig/openai/models/fine_tuning/alpha/grader_validate_params.rbs +3 -0
- data/sig/openai/models/fine_tuning/alpha/grader_validate_response.rbs +4 -0
- data/sig/openai/models/fine_tuning/checkpoints/permission_create_params.rbs +3 -0
- data/sig/openai/models/fine_tuning/checkpoints/permission_create_response.rbs +12 -0
- data/sig/openai/models/fine_tuning/checkpoints/permission_delete_response.rbs +9 -0
- data/sig/openai/models/fine_tuning/checkpoints/permission_list_params.rbs +16 -0
- data/sig/openai/models/fine_tuning/checkpoints/permission_list_response.rbs +12 -0
- data/sig/openai/models/fine_tuning/checkpoints/permission_retrieve_params.rbs +16 -0
- data/sig/openai/models/fine_tuning/checkpoints/permission_retrieve_response.rbs +12 -0
- data/sig/openai/models/fine_tuning/dpo_hyperparameters.rbs +28 -0
- data/sig/openai/models/fine_tuning/dpo_method.rbs +4 -0
- data/sig/openai/models/fine_tuning/fine_tuning_job.rbs +137 -0
- data/sig/openai/models/fine_tuning/fine_tuning_job_event.rbs +23 -0
- data/sig/openai/models/fine_tuning/fine_tuning_job_wandb_integration.rbs +25 -0
- data/sig/openai/models/fine_tuning/fine_tuning_job_wandb_integration_object.rbs +12 -0
- data/sig/openai/models/fine_tuning/job_create_params.rbs +191 -0
- data/sig/openai/models/fine_tuning/job_list_events_params.rbs +8 -0
- data/sig/openai/models/fine_tuning/job_list_params.rbs +13 -0
- data/sig/openai/models/fine_tuning/jobs/checkpoint_list_params.rbs +8 -0
- data/sig/openai/models/fine_tuning/jobs/fine_tuning_job_checkpoint.rbs +21 -0
- data/sig/openai/models/fine_tuning/reinforcement_hyperparameters.rbs +37 -0
- data/sig/openai/models/fine_tuning/reinforcement_method.rbs +7 -0
- data/sig/openai/models/fine_tuning/supervised_hyperparameters.rbs +21 -0
- data/sig/openai/models/fine_tuning/supervised_method.rbs +4 -0
- data/sig/openai/models/function_definition.rbs +45 -0
- data/sig/openai/models/graders/grader_input_item.rbs +19 -0
- data/sig/openai/models/graders/label_model_grader.rbs +48 -0
- data/sig/openai/models/graders/multi_grader.rbs +14 -0
- data/sig/openai/models/graders/python_grader.rbs +13 -0
- data/sig/openai/models/graders/score_model_grader.rbs +80 -0
- data/sig/openai/models/graders/string_check_grader.rbs +15 -0
- data/sig/openai/models/graders/text_similarity_grader.rbs +17 -0
- data/sig/openai/models/image.rbs +24 -0
- data/sig/openai/models/image_create_variation_params.rbs +43 -0
- data/sig/openai/models/image_edit_completed_event.rbs +44 -0
- data/sig/openai/models/image_edit_params.rbs +183 -0
- data/sig/openai/models/image_edit_partial_image_event.rbs +24 -0
- data/sig/openai/models/image_gen_completed_event.rbs +44 -0
- data/sig/openai/models/image_gen_partial_image_event.rbs +24 -0
- data/sig/openai/models/image_generate_params.rbs +148 -0
- data/sig/openai/models/image_input_reference_param.rbs +4 -0
- data/sig/openai/models/images_response.rbs +61 -0
- data/sig/openai/models/live/audio_format.rbs +18 -0
- data/sig/openai/models/live/client_config.rbs +3 -0
- data/sig/openai/models/live/client_delegation.rbs +3 -0
- data/sig/openai/models/live/commentary_append_event.rbs +22 -0
- data/sig/openai/models/live/commentary_appended_event.rbs +23 -0
- data/sig/openai/models/live/data_channel_config.rbs +23 -0
- data/sig/openai/models/live/delegation_created_event.rbs +43 -0
- data/sig/openai/models/live/error.rbs +19 -0
- data/sig/openai/models/live/error_event.rbs +16 -0
- data/sig/openai/models/live/fork_server_event.rbs +26 -0
- data/sig/openai/models/live/fork_session_config.rbs +48 -0
- data/sig/openai/models/live/fork_session_start_event.rbs +17 -0
- data/sig/openai/models/live/function_tool.rbs +17 -0
- data/sig/openai/models/live/info_event.rbs +19 -0
- data/sig/openai/models/live/initial_item.rbs +93 -0
- data/sig/openai/models/live/input_audio_append_event.rbs +19 -0
- data/sig/openai/models/live/input_audio_mute_event.rbs +8 -0
- data/sig/openai/models/live/input_audio_muted_event.rbs +13 -0
- data/sig/openai/models/live/input_audio_unmute_event.rbs +8 -0
- data/sig/openai/models/live/input_audio_unmuted_event.rbs +13 -0
- data/sig/openai/models/live/input_transcript_delta_event.rbs +28 -0
- data/sig/openai/models/live/instructions_append_event.rbs +20 -0
- data/sig/openai/models/live/instructions_appended_event.rbs +23 -0
- data/sig/openai/models/live/live_create_params.rbs +12 -0
- data/sig/openai/models/live/live_create_response.rbs +19 -0
- data/sig/openai/models/live/media_session_config.rbs +78 -0
- data/sig/openai/models/live/media_session_fork_config.rbs +31 -0
- data/sig/openai/models/live/output_audio_delta_event.rbs +25 -0
- data/sig/openai/models/live/output_transcript_delta_event.rbs +28 -0
- data/sig/openai/models/live/response_create_event.rbs +8 -0
- data/sig/openai/models/live/response_event.rbs +25 -0
- data/sig/openai/models/live/response_item_create_event.rbs +13 -0
- data/sig/openai/models/live/responses_delegation_config.rbs +59 -0
- data/sig/openai/models/live/responses_delegation_update_config.rbs +63 -0
- data/sig/openai/models/live/server_event.rbs +26 -0
- data/sig/openai/models/live/server_event_selector.rbs +10 -0
- data/sig/openai/models/live/session_accept_params.rbs +80 -0
- data/sig/openai/models/live/session_close_event.rbs +8 -0
- data/sig/openai/models/live/session_closed_event.rbs +28 -0
- data/sig/openai/models/live/session_config.rbs +85 -0
- data/sig/openai/models/live/session_download_recording_params.rbs +5 -0
- data/sig/openai/models/live/session_fork_params.rbs +16 -0
- data/sig/openai/models/live/session_fork_response.rbs +19 -0
- data/sig/openai/models/live/session_refer_params.rbs +5 -0
- data/sig/openai/models/live/session_reject_params.rbs +3 -0
- data/sig/openai/models/live/session_resource.rbs +100 -0
- data/sig/openai/models/live/session_start_event.rbs +15 -0
- data/sig/openai/models/live/session_started_event.rbs +16 -0
- data/sig/openai/models/live/session_update_config.rbs +15 -0
- data/sig/openai/models/live/session_update_event.rbs +15 -0
- data/sig/openai/models/live/session_updated_event.rbs +16 -0
- data/sig/openai/models/live/session_usage.rbs +5 -0
- data/sig/openai/models/live/session_usage_updated_event.rbs +28 -0
- data/sig/openai/models/live/thinking_append_event.rbs +22 -0
- data/sig/openai/models/live/thinking_appended_event.rbs +23 -0
- data/sig/openai/models/model.rbs +15 -0
- data/sig/openai/models/moderation.rbs +163 -0
- data/sig/openai/models/moderation_create_params.rbs +18 -0
- data/sig/openai/models/moderation_create_response.rbs +9 -0
- data/sig/openai/models/moderation_image_url_input.rbs +9 -0
- data/sig/openai/models/moderation_text_input.rbs +6 -0
- data/sig/openai/models/other_file_chunking_strategy_object.rbs +3 -0
- data/sig/openai/models/realtime/audio_transcription.rbs +72 -0
- data/sig/openai/models/realtime/call_accept_params.rbs +72 -0
- data/sig/openai/models/realtime/call_create_params.rbs +7 -0
- data/sig/openai/models/realtime/call_refer_params.rbs +5 -0
- data/sig/openai/models/realtime/call_reject_params.rbs +7 -0
- data/sig/openai/models/realtime/client_secret_create_params.rbs +40 -0
- data/sig/openai/models/realtime/client_secret_create_response.rbs +9 -0
- data/sig/openai/models/realtime/conversation_created_event.rbs +17 -0
- data/sig/openai/models/realtime/conversation_item_added.rbs +14 -0
- data/sig/openai/models/realtime/conversation_item_create_event.rbs +38 -0
- data/sig/openai/models/realtime/conversation_item_created_event.rbs +16 -0
- data/sig/openai/models/realtime/conversation_item_delete_event.rbs +10 -0
- data/sig/openai/models/realtime/conversation_item_deleted_event.rbs +9 -0
- data/sig/openai/models/realtime/conversation_item_done.rbs +14 -0
- data/sig/openai/models/realtime/conversation_item_input_audio_transcription_completed_event.rbs +60 -0
- data/sig/openai/models/realtime/conversation_item_input_audio_transcription_delta_event.rbs +30 -0
- data/sig/openai/models/realtime/conversation_item_input_audio_transcription_failed_event.rbs +31 -0
- data/sig/openai/models/realtime/conversation_item_input_audio_transcription_segment.rbs +27 -0
- data/sig/openai/models/realtime/conversation_item_retrieve_event.rbs +10 -0
- data/sig/openai/models/realtime/conversation_item_truncate_event.rbs +22 -0
- data/sig/openai/models/realtime/conversation_item_truncated_event.rbs +15 -0
- data/sig/openai/models/realtime/conversation_item_with_reference.rbs +111 -0
- data/sig/openai/models/realtime/input_audio_buffer_append_event.rbs +12 -0
- data/sig/openai/models/realtime/input_audio_buffer_clear_event.rbs +7 -0
- data/sig/openai/models/realtime/input_audio_buffer_cleared_event.rbs +6 -0
- data/sig/openai/models/realtime/input_audio_buffer_commit_event.rbs +7 -0
- data/sig/openai/models/realtime/input_audio_buffer_committed_event.rbs +14 -0
- data/sig/openai/models/realtime/input_audio_buffer_dtmf_event_received_event.rbs +9 -0
- data/sig/openai/models/realtime/input_audio_buffer_speech_started_event.rbs +18 -0
- data/sig/openai/models/realtime/input_audio_buffer_speech_stopped_event.rbs +16 -0
- data/sig/openai/models/realtime/input_audio_buffer_timeout_triggered.rbs +19 -0
- data/sig/openai/models/realtime/log_prob_properties.rbs +9 -0
- data/sig/openai/models/realtime/mcp_list_tools_completed.rbs +9 -0
- data/sig/openai/models/realtime/mcp_list_tools_failed.rbs +9 -0
- data/sig/openai/models/realtime/mcp_list_tools_in_progress.rbs +9 -0
- data/sig/openai/models/realtime/output_audio_buffer_clear_event.rbs +7 -0
- data/sig/openai/models/realtime/rate_limits_updated_event.rbs +25 -0
- data/sig/openai/models/realtime/realtime_audio_config_input.rbs +88 -0
- data/sig/openai/models/realtime/realtime_audio_config_output.rbs +48 -0
- data/sig/openai/models/realtime/realtime_audio_formats.rbs +16 -0
- data/sig/openai/models/realtime/realtime_audio_input_turn_detection.rbs +129 -0
- data/sig/openai/models/realtime/realtime_conversation_item_assistant_message.rbs +55 -0
- data/sig/openai/models/realtime/realtime_conversation_item_function_call.rbs +35 -0
- data/sig/openai/models/realtime/realtime_conversation_item_function_call_output.rbs +29 -0
- data/sig/openai/models/realtime/realtime_conversation_item_system_message.rbs +35 -0
- data/sig/openai/models/realtime/realtime_conversation_item_user_message.rbs +69 -0
- data/sig/openai/models/realtime/realtime_error.rbs +15 -0
- data/sig/openai/models/realtime/realtime_error_event.rbs +9 -0
- data/sig/openai/models/realtime/realtime_function_tool.rbs +19 -0
- data/sig/openai/models/realtime/realtime_mcp_approval_request.rbs +15 -0
- data/sig/openai/models/realtime/realtime_mcp_approval_response.rbs +15 -0
- data/sig/openai/models/realtime/realtime_mcp_list_tools.rbs +25 -0
- data/sig/openai/models/realtime/realtime_mcp_tool_call.rbs +24 -0
- data/sig/openai/models/realtime/realtime_reasoning.rbs +7 -0
- data/sig/openai/models/realtime/realtime_response.rbs +109 -0
- data/sig/openai/models/realtime/realtime_response_create_audio_output.rbs +26 -0
- data/sig/openai/models/realtime/realtime_response_create_mcp_tool.rbs +169 -0
- data/sig/openai/models/realtime/realtime_response_create_params.rbs +127 -0
- data/sig/openai/models/realtime/realtime_response_status.rbs +38 -0
- data/sig/openai/models/realtime/realtime_response_usage.rbs +38 -0
- data/sig/openai/models/realtime/realtime_response_usage_input_token_details.rbs +32 -0
- data/sig/openai/models/realtime/realtime_response_usage_output_token_details.rbs +8 -0
- data/sig/openai/models/realtime/realtime_server_event.rbs +36 -0
- data/sig/openai/models/realtime/realtime_session.rbs +373 -0
- data/sig/openai/models/realtime/realtime_session_create_request.rbs +178 -0
- data/sig/openai/models/realtime/realtime_session_create_response.rbs +602 -0
- data/sig/openai/models/realtime/realtime_tools_config_union.rbs +169 -0
- data/sig/openai/models/realtime/realtime_tracing_config.rbs +21 -0
- data/sig/openai/models/realtime/realtime_transcription_session_audio_input.rbs +88 -0
- data/sig/openai/models/realtime/realtime_transcription_session_audio_input_turn_detection.rbs +129 -0
- data/sig/openai/models/realtime/realtime_transcription_session_create_request.rbs +22 -0
- data/sig/openai/models/realtime/realtime_transcription_session_create_response.rbs +57 -0
- data/sig/openai/models/realtime/realtime_transcription_session_turn_detection.rbs +31 -0
- data/sig/openai/models/realtime/realtime_translation_client_secret_create_request.rbs +38 -0
- data/sig/openai/models/realtime/realtime_translation_client_secret_create_response.rbs +11 -0
- data/sig/openai/models/realtime/realtime_translation_input_audio_buffer_append_event.rbs +10 -0
- data/sig/openai/models/realtime/realtime_translation_input_transcript_delta_event.rbs +18 -0
- data/sig/openai/models/realtime/realtime_translation_output_audio_delta_event.rbs +28 -0
- data/sig/openai/models/realtime/realtime_translation_output_transcript_delta_event.rbs +18 -0
- data/sig/openai/models/realtime/realtime_translation_session.rbs +41 -0
- data/sig/openai/models/realtime/realtime_translation_session_close_event.rbs +7 -0
- data/sig/openai/models/realtime/realtime_translation_session_closed_event.rbs +6 -0
- data/sig/openai/models/realtime/realtime_translation_session_create_request.rbs +31 -0
- data/sig/openai/models/realtime/realtime_translation_session_created_event.rbs +9 -0
- data/sig/openai/models/realtime/realtime_translation_session_update_event.rbs +12 -0
- data/sig/openai/models/realtime/realtime_translation_session_update_request.rbs +28 -0
- data/sig/openai/models/realtime/realtime_translation_session_updated_event.rbs +9 -0
- data/sig/openai/models/realtime/realtime_truncation_retention_ratio.rbs +35 -0
- data/sig/openai/models/realtime/response_audio_delta_event.rbs +21 -0
- data/sig/openai/models/realtime/response_audio_done_event.rbs +18 -0
- data/sig/openai/models/realtime/response_audio_transcript_delta_event.rbs +21 -0
- data/sig/openai/models/realtime/response_audio_transcript_done_event.rbs +21 -0
- data/sig/openai/models/realtime/response_cancel_event.rbs +14 -0
- data/sig/openai/models/realtime/response_content_part_added_event.rbs +37 -0
- data/sig/openai/models/realtime/response_content_part_done_event.rbs +37 -0
- data/sig/openai/models/realtime/response_create_event.rbs +11 -0
- data/sig/openai/models/realtime/response_created_event.rbs +9 -0
- data/sig/openai/models/realtime/response_done_event.rbs +9 -0
- data/sig/openai/models/realtime/response_function_call_arguments_delta_event.rbs +21 -0
- data/sig/openai/models/realtime/response_function_call_arguments_done_event.rbs +24 -0
- data/sig/openai/models/realtime/response_mcp_call_arguments_delta.rbs +21 -0
- data/sig/openai/models/realtime/response_mcp_call_arguments_done.rbs +18 -0
- data/sig/openai/models/realtime/response_mcp_call_completed.rbs +12 -0
- data/sig/openai/models/realtime/response_mcp_call_failed.rbs +12 -0
- data/sig/openai/models/realtime/response_mcp_call_in_progress.rbs +12 -0
- data/sig/openai/models/realtime/response_output_item_added_event.rbs +15 -0
- data/sig/openai/models/realtime/response_output_item_done_event.rbs +15 -0
- data/sig/openai/models/realtime/response_text_delta_event.rbs +21 -0
- data/sig/openai/models/realtime/response_text_done_event.rbs +21 -0
- data/sig/openai/models/realtime/session_created_event.rbs +9 -0
- data/sig/openai/models/realtime/session_update_event.rbs +21 -0
- data/sig/openai/models/realtime/session_updated_event.rbs +9 -0
- data/sig/openai/models/realtime/transcription_session_update.rbs +107 -0
- data/sig/openai/models/realtime/transcription_session_updated_event.rbs +86 -0
- data/sig/openai/models/reasoning.rbs +60 -0
- data/sig/openai/models/response_format_json_object.rbs +3 -0
- data/sig/openai/models/response_format_json_schema.rbs +36 -0
- data/sig/openai/models/response_format_text.rbs +3 -0
- data/sig/openai/models/response_format_text_grammar.rbs +6 -0
- data/sig/openai/models/response_format_text_python.rbs +3 -0
- data/sig/openai/models/responses/apply_patch_tool.rbs +6 -0
- data/sig/openai/models/responses/compacted_response.rbs +19 -0
- data/sig/openai/models/responses/computer_action.rbs +126 -0
- data/sig/openai/models/responses/computer_tool.rbs +3 -0
- data/sig/openai/models/responses/computer_use_preview_tool.rbs +12 -0
- data/sig/openai/models/responses/container_auto.rbs +18 -0
- data/sig/openai/models/responses/container_network_policy_allowlist.rbs +10 -0
- data/sig/openai/models/responses/container_network_policy_disabled.rbs +3 -0
- data/sig/openai/models/responses/container_network_policy_domain_secret.rbs +9 -0
- data/sig/openai/models/responses/container_reference.rbs +6 -0
- data/sig/openai/models/responses/custom_tool.rbs +28 -0
- data/sig/openai/models/responses/easy_input_message.rbs +23 -0
- data/sig/openai/models/responses/file_search_tool.rbs +47 -0
- data/sig/openai/models/responses/function_shell_tool.rbs +6 -0
- data/sig/openai/models/responses/function_tool.rbs +29 -0
- data/sig/openai/models/responses/inline_skill.rbs +12 -0
- data/sig/openai/models/responses/inline_skill_source.rbs +9 -0
- data/sig/openai/models/responses/input_item_list_params.rbs +31 -0
- data/sig/openai/models/responses/input_token_count_params.rbs +146 -0
- data/sig/openai/models/responses/local_environment.rbs +7 -0
- data/sig/openai/models/responses/local_skill.rbs +9 -0
- data/sig/openai/models/responses/namespace_tool.rbs +38 -0
- data/sig/openai/models/responses/response.rbs +483 -0
- data/sig/openai/models/responses/response_apply_patch_tool_call.rbs +53 -0
- data/sig/openai/models/responses/response_apply_patch_tool_call_output.rbs +27 -0
- data/sig/openai/models/responses/response_audio_delta_event.rbs +9 -0
- data/sig/openai/models/responses/response_audio_done_event.rbs +6 -0
- data/sig/openai/models/responses/response_audio_transcript_delta_event.rbs +9 -0
- data/sig/openai/models/responses/response_audio_transcript_done_event.rbs +6 -0
- data/sig/openai/models/responses/response_code_interpreter_call_code_delta_event.rbs +17 -0
- data/sig/openai/models/responses/response_code_interpreter_call_code_done_event.rbs +15 -0
- data/sig/openai/models/responses/response_code_interpreter_call_completed_event.rbs +14 -0
- data/sig/openai/models/responses/response_code_interpreter_call_in_progress_event.rbs +14 -0
- data/sig/openai/models/responses/response_code_interpreter_call_interpreting_event.rbs +14 -0
- data/sig/openai/models/responses/response_code_interpreter_tool_call.rbs +34 -0
- data/sig/openai/models/responses/response_compact_params.rbs +125 -2
- data/sig/openai/models/responses/response_compaction_compacting_event.rbs +12 -0
- data/sig/openai/models/responses/response_compaction_item.rbs +13 -0
- data/sig/openai/models/responses/response_compaction_item_param.rbs +9 -0
- data/sig/openai/models/responses/response_completed_event.rbs +9 -0
- data/sig/openai/models/responses/response_computer_tool_call.rbs +163 -0
- data/sig/openai/models/responses/response_computer_tool_call_output_item.rbs +37 -0
- data/sig/openai/models/responses/response_computer_tool_call_output_screenshot.rbs +13 -0
- data/sig/openai/models/responses/response_configuration_update_item.rbs +15 -0
- data/sig/openai/models/responses/response_configuration_update_item_param.rbs +15 -0
- data/sig/openai/models/responses/response_container_reference.rbs +3 -0
- data/sig/openai/models/responses/response_content.rbs +6 -0
- data/sig/openai/models/responses/response_content_part_added_event.rbs +24 -0
- data/sig/openai/models/responses/response_content_part_done_event.rbs +24 -0
- data/sig/openai/models/responses/response_conversation_param.rbs +3 -0
- data/sig/openai/models/responses/response_create_params.rbs +539 -0
- data/sig/openai/models/responses/response_created_event.rbs +9 -0
- data/sig/openai/models/responses/response_custom_tool_call.rbs +30 -0
- data/sig/openai/models/responses/response_custom_tool_call_input_delta_event.rbs +15 -0
- data/sig/openai/models/responses/response_custom_tool_call_input_done_event.rbs +15 -0
- data/sig/openai/models/responses/response_custom_tool_call_item.rbs +29 -0
- data/sig/openai/models/responses/response_custom_tool_call_output.rbs +27 -0
- data/sig/openai/models/responses/response_custom_tool_call_output_item.rbs +24 -0
- data/sig/openai/models/responses/response_error.rbs +21 -0
- data/sig/openai/models/responses/response_error_event.rbs +15 -0
- data/sig/openai/models/responses/response_failed_event.rbs +9 -0
- data/sig/openai/models/responses/response_file_search_call_completed_event.rbs +12 -0
- data/sig/openai/models/responses/response_file_search_call_in_progress_event.rbs +12 -0
- data/sig/openai/models/responses/response_file_search_call_searching_event.rbs +12 -0
- data/sig/openai/models/responses/response_file_search_tool_call.rbs +44 -0
- data/sig/openai/models/responses/response_format_text_json_schema_config.rbs +31 -0
- data/sig/openai/models/responses/response_function_call_arguments_delta_event.rbs +15 -0
- data/sig/openai/models/responses/response_function_call_arguments_done_event.rbs +12 -0
- data/sig/openai/models/responses/response_function_shell_call_output_content.rbs +18 -0
- data/sig/openai/models/responses/response_function_shell_tool_call.rbs +38 -0
- data/sig/openai/models/responses/response_function_shell_tool_call_output.rbs +58 -0
- data/sig/openai/models/responses/response_function_tool_call.rbs +37 -0
- data/sig/openai/models/responses/response_function_tool_call_item.rbs +29 -0
- data/sig/openai/models/responses/response_function_tool_call_output_item.rbs +44 -0
- data/sig/openai/models/responses/response_function_web_search.rbs +50 -0
- data/sig/openai/models/responses/response_image_gen_call_completed_event.rbs +12 -0
- data/sig/openai/models/responses/response_image_gen_call_generating_event.rbs +12 -0
- data/sig/openai/models/responses/response_image_gen_call_in_progress_event.rbs +12 -0
- data/sig/openai/models/responses/response_image_gen_call_partial_image_event.rbs +36 -0
- data/sig/openai/models/responses/response_in_progress_event.rbs +9 -0
- data/sig/openai/models/responses/response_incomplete_event.rbs +9 -0
- data/sig/openai/models/responses/response_input_audio.rbs +9 -0
- data/sig/openai/models/responses/response_input_file.rbs +47 -0
- data/sig/openai/models/responses/response_input_file_content.rbs +41 -0
- data/sig/openai/models/responses/response_input_image.rbs +29 -0
- data/sig/openai/models/responses/response_input_image_content.rbs +26 -0
- data/sig/openai/models/responses/response_input_item.rbs +493 -0
- data/sig/openai/models/responses/response_input_message_item.rbs +21 -0
- data/sig/openai/models/responses/response_input_text.rbs +19 -0
- data/sig/openai/models/responses/response_input_text_content.rbs +16 -0
- data/sig/openai/models/responses/response_item.rbs +211 -0
- data/sig/openai/models/responses/response_item_list.rbs +15 -0
- data/sig/openai/models/responses/response_local_environment.rbs +3 -0
- data/sig/openai/models/responses/response_mcp_call_arguments_delta_event.rbs +17 -0
- data/sig/openai/models/responses/response_mcp_call_arguments_done_event.rbs +15 -0
- data/sig/openai/models/responses/response_mcp_call_completed_event.rbs +12 -0
- data/sig/openai/models/responses/response_mcp_call_failed_event.rbs +12 -0
- data/sig/openai/models/responses/response_mcp_call_in_progress_event.rbs +12 -0
- data/sig/openai/models/responses/response_mcp_list_tools_completed_event.rbs +12 -0
- data/sig/openai/models/responses/response_mcp_list_tools_failed_event.rbs +12 -0
- data/sig/openai/models/responses/response_mcp_list_tools_in_progress_event.rbs +12 -0
- data/sig/openai/models/responses/response_output_audio.rbs +9 -0
- data/sig/openai/models/responses/response_output_item.rbs +211 -0
- data/sig/openai/models/responses/response_output_item_added_event.rbs +18 -0
- data/sig/openai/models/responses/response_output_item_done_event.rbs +12 -0
- data/sig/openai/models/responses/response_output_message.rbs +26 -0
- data/sig/openai/models/responses/response_output_refusal.rbs +6 -0
- data/sig/openai/models/responses/response_output_text.rbs +63 -0
- data/sig/openai/models/responses/response_output_text_annotation_added_event.rbs +75 -0
- data/sig/openai/models/responses/response_prompt.rbs +13 -0
- data/sig/openai/models/responses/response_queued_event.rbs +9 -0
- data/sig/openai/models/responses/response_reasoning_item.rbs +49 -0
- data/sig/openai/models/responses/response_reasoning_summary_part_added_event.rbs +24 -0
- data/sig/openai/models/responses/response_reasoning_summary_part_done_event.rbs +31 -0
- data/sig/openai/models/responses/response_reasoning_summary_text_delta_event.rbs +18 -0
- data/sig/openai/models/responses/response_reasoning_summary_text_done_event.rbs +18 -0
- data/sig/openai/models/responses/response_reasoning_text_delta_event.rbs +18 -0
- data/sig/openai/models/responses/response_reasoning_text_done_event.rbs +18 -0
- data/sig/openai/models/responses/response_refusal_delta_event.rbs +18 -0
- data/sig/openai/models/responses/response_refusal_done_event.rbs +18 -0
- data/sig/openai/models/responses/response_retrieve_params.rbs +30 -0
- data/sig/openai/models/responses/response_shell_call_command_added_event.rbs +15 -0
- data/sig/openai/models/responses/response_shell_call_command_delta_event.rbs +19 -0
- data/sig/openai/models/responses/response_shell_call_command_done_event.rbs +15 -0
- data/sig/openai/models/responses/response_shell_call_output_content_delta_event.rbs +26 -0
- data/sig/openai/models/responses/response_shell_call_output_content_done_event.rbs +42 -0
- data/sig/openai/models/responses/response_steer_accepted_event.rbs +22 -0
- data/sig/openai/models/responses/response_steer_event.rbs +25 -0
- data/sig/openai/models/responses/response_steer_failed_event.rbs +78 -0
- data/sig/openai/models/responses/response_steer_input.rbs +52 -0
- data/sig/openai/models/responses/response_steer_pending_event.rbs +42 -0
- data/sig/openai/models/responses/response_text_config.rbs +49 -0
- data/sig/openai/models/responses/response_text_delta_event.rbs +39 -0
- data/sig/openai/models/responses/response_text_done_event.rbs +39 -0
- data/sig/openai/models/responses/response_tool_search_call.rbs +22 -0
- data/sig/openai/models/responses/response_tool_search_output_item.rbs +22 -0
- data/sig/openai/models/responses/response_tool_search_output_item_param.rbs +19 -0
- data/sig/openai/models/responses/response_usage.rbs +26 -0
- data/sig/openai/models/responses/response_web_search_call_completed_event.rbs +12 -0
- data/sig/openai/models/responses/response_web_search_call_in_progress_event.rbs +12 -0
- data/sig/openai/models/responses/response_web_search_call_searching_event.rbs +12 -0
- data/sig/openai/models/responses/responses_client_event.rbs +571 -0
- data/sig/openai/models/responses/responses_server_event.rbs +1010 -0
- data/sig/openai/models/responses/skill_reference.rbs +10 -0
- data/sig/openai/models/responses/tool.rbs +347 -0
- data/sig/openai/models/responses/tool_choice_allowed.rbs +39 -0
- data/sig/openai/models/responses/tool_choice_apply_patch.rbs +3 -0
- data/sig/openai/models/responses/tool_choice_custom.rbs +6 -0
- data/sig/openai/models/responses/tool_choice_function.rbs +6 -0
- data/sig/openai/models/responses/tool_choice_mcp.rbs +9 -0
- data/sig/openai/models/responses/tool_choice_shell.rbs +3 -0
- data/sig/openai/models/responses/tool_choice_types.rbs +25 -0
- data/sig/openai/models/responses/tool_search_tool.rbs +13 -0
- data/sig/openai/models/responses/web_search_preview_tool.rbs +34 -0
- data/sig/openai/models/responses/web_search_tool.rbs +55 -0
- data/sig/openai/models/safety/alert_retrieve_params.rbs +3 -0
- data/sig/openai/models/safety/case_retrieve_params.rbs +25 -0
- data/sig/openai/models/safety/safety_alert.rbs +10 -0
- data/sig/openai/models/safety/safety_case.rbs +75 -0
- data/sig/openai/models/skill.rbs +21 -0
- data/sig/openai/models/skill_create_params.rbs +16 -0
- data/sig/openai/models/skill_list.rbs +15 -0
- data/sig/openai/models/skill_list_params.rbs +15 -0
- data/sig/openai/models/skill_update_params.rbs +3 -0
- data/sig/openai/models/skills/deleted_skill_version.rbs +3 -0
- data/sig/openai/models/skills/skill_version.rbs +21 -0
- data/sig/openai/models/skills/skill_version_list.rbs +15 -0
- data/sig/openai/models/skills/version_create_params.rbs +20 -0
- data/sig/openai/models/skills/version_delete_params.rbs +3 -0
- data/sig/openai/models/skills/version_list_params.rbs +12 -0
- data/sig/openai/models/skills/version_retrieve_params.rbs +3 -0
- data/sig/openai/models/skills/versions/content_retrieve_params.rbs +3 -0
- data/sig/openai/models/static_file_chunking_strategy.rbs +12 -0
- data/sig/openai/models/static_file_chunking_strategy_object.rbs +3 -0
- data/sig/openai/models/static_file_chunking_strategy_object_param.rbs +3 -0
- data/sig/openai/models/upload.rbs +31 -0
- data/sig/openai/models/upload_complete_params.rbs +10 -0
- data/sig/openai/models/upload_create_params.rbs +41 -0
- data/sig/openai/models/uploads/part_create_params.rbs +11 -0
- data/sig/openai/models/uploads/upload_part.rbs +12 -0
- data/sig/openai/models/vector_store.rbs +68 -0
- data/sig/openai/models/vector_store_create_params.rbs +53 -0
- data/sig/openai/models/vector_store_list_params.rbs +40 -0
- data/sig/openai/models/vector_store_search_params.rbs +26 -0
- data/sig/openai/models/vector_store_search_response.rbs +29 -0
- data/sig/openai/models/vector_store_update_params.rbs +27 -0
- data/sig/openai/models/vector_stores/file_batch_create_params.rbs +85 -0
- data/sig/openai/models/vector_stores/file_batch_list_files_params.rbs +44 -0
- data/sig/openai/models/vector_stores/file_content_response.rbs +8 -0
- data/sig/openai/models/vector_stores/file_create_params.rbs +29 -0
- data/sig/openai/models/vector_stores/file_list_params.rbs +44 -0
- data/sig/openai/models/vector_stores/file_update_params.rbs +11 -0
- data/sig/openai/models/vector_stores/vector_store_file.rbs +56 -0
- data/sig/openai/models/vector_stores/vector_store_file_batch.rbs +40 -0
- data/sig/openai/models/video.rbs +41 -0
- data/sig/openai/models/video_create_character_params.rbs +14 -0
- data/sig/openai/models/video_create_character_response.rbs +9 -0
- data/sig/openai/models/video_create_error.rbs +21 -0
- data/sig/openai/models/video_create_params.rbs +37 -0
- data/sig/openai/models/video_delete_response.rbs +9 -0
- data/sig/openai/models/video_download_content_params.rbs +4 -0
- data/sig/openai/models/video_edit_params.rbs +17 -0
- data/sig/openai/models/video_extend_params.rbs +22 -0
- data/sig/openai/models/video_get_character_response.rbs +9 -0
- data/sig/openai/models/video_list_params.rbs +15 -0
- data/sig/openai/models/video_remix_params.rbs +3 -0
- data/sig/openai/models/webhooks/batch_cancelled_webhook_event.rbs +19 -0
- data/sig/openai/models/webhooks/batch_completed_webhook_event.rbs +19 -0
- data/sig/openai/models/webhooks/batch_expired_webhook_event.rbs +19 -0
- data/sig/openai/models/webhooks/batch_failed_webhook_event.rbs +19 -0
- data/sig/openai/models/webhooks/deleted_webhook_endpoint.rbs +9 -0
- data/sig/openai/models/webhooks/eval_run_canceled_webhook_event.rbs +19 -0
- data/sig/openai/models/webhooks/eval_run_failed_webhook_event.rbs +19 -0
- data/sig/openai/models/webhooks/eval_run_succeeded_webhook_event.rbs +19 -0
- data/sig/openai/models/webhooks/fine_tuning_job_cancelled_webhook_event.rbs +19 -0
- data/sig/openai/models/webhooks/fine_tuning_job_failed_webhook_event.rbs +19 -0
- data/sig/openai/models/webhooks/fine_tuning_job_succeeded_webhook_event.rbs +19 -0
- data/sig/openai/models/webhooks/live_call_incoming_webhook_event.rbs +72 -3
- data/sig/openai/models/webhooks/live_transport_incoming_webhook_event.rbs +72 -2
- data/sig/openai/models/webhooks/realtime_call_incoming_webhook_event.rbs +72 -3
- data/sig/openai/models/webhooks/response_cancelled_webhook_event.rbs +19 -0
- data/sig/openai/models/webhooks/response_completed_webhook_event.rbs +19 -0
- data/sig/openai/models/webhooks/response_failed_webhook_event.rbs +19 -0
- data/sig/openai/models/webhooks/response_incomplete_webhook_event.rbs +19 -0
- data/sig/openai/models/webhooks/safety_alert_created_webhook_event.rbs +15 -0
- data/sig/openai/models/webhooks/safety_deactivation_issued_webhook_event.rbs +67 -0
- data/sig/openai/models/webhooks/safety_org_alert_created_webhook_event.rbs +15 -0
- data/sig/openai/models/webhooks/safety_warning_issued_webhook_event.rbs +67 -0
- data/sig/openai/models/webhooks/unwrap_webhook_event.rbs +2 -0
- data/sig/openai/models/webhooks/webhook_create_params.rbs +9 -0
- data/sig/openai/models/webhooks/webhook_endpoint.rbs +28 -0
- data/sig/openai/models/webhooks/webhook_endpoint_list.rbs +15 -0
- data/sig/openai/models/webhooks/webhook_endpoint_test_result.rbs +17 -0
- data/sig/openai/models/webhooks/webhook_endpoint_with_secret.rbs +33 -0
- data/sig/openai/models/webhooks/webhook_event_type_list.rbs +6 -0
- data/sig/openai/models/webhooks/webhook_list_params.rbs +7 -0
- data/sig/openai/models/webhooks/webhook_rotate_secret_params.rbs +7 -0
- data/sig/openai/models/webhooks/webhook_test_params.rbs +3 -0
- data/sig/openai/models/webhooks/webhook_update_params.rbs +12 -0
- data/sig/openai/resources/admin/organization/external_storage.rbs +40 -0
- data/sig/openai/resources/admin/organization.rbs +2 -0
- data/sig/openai/resources/safety/cases.rbs +14 -0
- data/sig/openai/resources/safety.rbs +2 -0
- data/sig/openai/resources/webhooks.rbs +3 -1
- metadata +55 -1
|
@@ -46,110 +46,632 @@ module OpenAI
|
|
|
46
46
|
extend OpenAI::Internal::Type::RequestParameters::Converter
|
|
47
47
|
include OpenAI::Internal::Type::RequestParameters
|
|
48
48
|
|
|
49
|
+
# A list of messages comprising the conversation so far. Depending on the
|
|
50
|
+
# [model](https://developers.openai.com/api/docs/models) you use, different
|
|
51
|
+
# message types (modalities) are supported, like
|
|
52
|
+
# [text](https://developers.openai.com/api/docs/guides/text),
|
|
53
|
+
# [images](https://developers.openai.com/api/docs/guides/images-vision), and
|
|
54
|
+
# [audio](https://developers.openai.com/api/docs/guides/audio).
|
|
49
55
|
attr_accessor messages: ::Array[OpenAI::Models::Chat::chat_completion_message_param]
|
|
50
56
|
|
|
57
|
+
# Model ID used to generate the response, like `gpt-6-astra` or `o3`. OpenAI
|
|
58
|
+
# offers a wide range of models with different capabilities, performance
|
|
59
|
+
# characteristics, and price points. Refer to the
|
|
60
|
+
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
61
|
+
# compare available models.
|
|
51
62
|
attr_accessor model: OpenAI::Models::Chat::CompletionCreateParams::model
|
|
52
63
|
|
|
64
|
+
# Parameters for audio output. Required when audio output is requested with
|
|
65
|
+
# `modalities: ["audio"]`.
|
|
66
|
+
# [Learn more](https://developers.openai.com/api/docs/guides/audio).
|
|
53
67
|
attr_accessor audio: OpenAI::Chat::ChatCompletionAudioParam?
|
|
54
68
|
|
|
69
|
+
# Number between -2.0 and 2.0. Positive values penalize new tokens based on their
|
|
70
|
+
# existing frequency in the text so far, decreasing the model's likelihood to
|
|
71
|
+
# repeat the same line verbatim.
|
|
55
72
|
attr_accessor frequency_penalty: Float?
|
|
56
73
|
|
|
74
|
+
# Deprecated in favor of `tool_choice`.
|
|
75
|
+
#
|
|
76
|
+
# Controls which (if any) function is called by the model.
|
|
77
|
+
#
|
|
78
|
+
# `none` means the model will not call a function and instead generates a message.
|
|
79
|
+
#
|
|
80
|
+
# `auto` means the model can pick between generating a message or calling a
|
|
81
|
+
# function.
|
|
82
|
+
#
|
|
83
|
+
# Specifying a particular function via `{"name": "my_function"}` forces the model
|
|
84
|
+
# to call that function.
|
|
85
|
+
#
|
|
86
|
+
# `none` is the default when no functions are present. `auto` is the default if
|
|
87
|
+
# functions are present.
|
|
57
88
|
attr_reader function_call: OpenAI::Models::Chat::CompletionCreateParams::function_call?
|
|
58
89
|
|
|
90
|
+
# Deprecated in favor of `tool_choice`.
|
|
91
|
+
#
|
|
92
|
+
# Controls which (if any) function is called by the model.
|
|
93
|
+
#
|
|
94
|
+
# `none` means the model will not call a function and instead generates a message.
|
|
95
|
+
#
|
|
96
|
+
# `auto` means the model can pick between generating a message or calling a
|
|
97
|
+
# function.
|
|
98
|
+
#
|
|
99
|
+
# Specifying a particular function via `{"name": "my_function"}` forces the model
|
|
100
|
+
# to call that function.
|
|
101
|
+
#
|
|
102
|
+
# `none` is the default when no functions are present. `auto` is the default if
|
|
103
|
+
# functions are present.
|
|
59
104
|
def function_call=: (
|
|
60
105
|
OpenAI::Models::Chat::CompletionCreateParams::function_call
|
|
61
106
|
) -> OpenAI::Models::Chat::CompletionCreateParams::function_call
|
|
62
107
|
|
|
108
|
+
# Deprecated in favor of `tools`.
|
|
109
|
+
#
|
|
110
|
+
# A list of functions the model may generate JSON inputs for.
|
|
63
111
|
attr_reader functions: ::Array[OpenAI::Chat::CompletionCreateParams::Function]?
|
|
64
112
|
|
|
113
|
+
# Deprecated in favor of `tools`.
|
|
114
|
+
#
|
|
115
|
+
# A list of functions the model may generate JSON inputs for.
|
|
65
116
|
def functions=: (
|
|
66
117
|
::Array[OpenAI::Chat::CompletionCreateParams::Function]
|
|
67
118
|
) -> ::Array[OpenAI::Chat::CompletionCreateParams::Function]
|
|
68
119
|
|
|
120
|
+
# Modify the likelihood of specified tokens appearing in the completion.
|
|
121
|
+
#
|
|
122
|
+
# Accepts a JSON object that maps tokens (specified by their token ID in the
|
|
123
|
+
# tokenizer) to an associated bias value from -100 to 100. Mathematically, the
|
|
124
|
+
# bias is added to the logits generated by the model prior to sampling. The exact
|
|
125
|
+
# effect will vary per model, but values between -1 and 1 should decrease or
|
|
126
|
+
# increase likelihood of selection; values like -100 or 100 should result in a ban
|
|
127
|
+
# or exclusive selection of the relevant token.
|
|
69
128
|
attr_accessor logit_bias: ::Hash[Symbol, Integer]?
|
|
70
129
|
|
|
130
|
+
# Whether to return log probabilities of the output tokens or not. If true,
|
|
131
|
+
# returns the log probabilities of each output token returned in the `content` of
|
|
132
|
+
# `message`.
|
|
71
133
|
attr_accessor logprobs: bool?
|
|
72
134
|
|
|
135
|
+
# An upper bound for the number of tokens that can be generated for a completion,
|
|
136
|
+
# including visible output tokens and
|
|
137
|
+
# [reasoning tokens](https://developers.openai.com/api/docs/guides/reasoning).
|
|
73
138
|
attr_accessor max_completion_tokens: Integer?
|
|
74
139
|
|
|
140
|
+
# The maximum number of [tokens](https://platform.openai.com/tokenizer) that can
|
|
141
|
+
# be generated in the chat completion. This value can be used to control
|
|
142
|
+
# [costs](https://openai.com/api/pricing/) for text generated via API.
|
|
143
|
+
#
|
|
144
|
+
# This value is now deprecated in favor of `max_completion_tokens`, and is not
|
|
145
|
+
# compatible with
|
|
146
|
+
# [o-series models](https://developers.openai.com/api/docs/guides/reasoning).
|
|
75
147
|
attr_accessor max_tokens: Integer?
|
|
76
148
|
|
|
149
|
+
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
150
|
+
# for storing additional information about the object in a structured format, and
|
|
151
|
+
# querying for objects via API or the dashboard.
|
|
152
|
+
#
|
|
153
|
+
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
154
|
+
# a maximum length of 512 characters.
|
|
77
155
|
attr_accessor metadata: OpenAI::Models::metadata?
|
|
78
156
|
|
|
157
|
+
# Output types that you would like the model to generate. Most models are capable
|
|
158
|
+
# of generating text, which is the default:
|
|
159
|
+
#
|
|
160
|
+
# `["text"]`
|
|
161
|
+
#
|
|
162
|
+
# The `gpt-4o-audio-preview` model can also be used to
|
|
163
|
+
# [generate audio](https://developers.openai.com/api/docs/guides/audio). To
|
|
164
|
+
# request that this model generate both text and audio responses, you can use:
|
|
165
|
+
#
|
|
166
|
+
# `["text", "audio"]`
|
|
79
167
|
attr_accessor modalities: ::Array[OpenAI::Models::Chat::CompletionCreateParams::modality]?
|
|
80
168
|
|
|
169
|
+
# Configuration for running moderation on the request input and generated output.
|
|
81
170
|
attr_accessor moderation: OpenAI::Chat::CompletionCreateParams::Moderation?
|
|
82
171
|
|
|
172
|
+
# How many chat completion choices to generate for each input message. Note that
|
|
173
|
+
# you will be charged based on the number of generated tokens across all of the
|
|
174
|
+
# choices. Keep `n` as `1` to minimize costs.
|
|
83
175
|
attr_accessor n: Integer?
|
|
84
176
|
|
|
177
|
+
# Whether to enable
|
|
178
|
+
# [parallel function calling](https://developers.openai.com/api/docs/guides/function-calling#parallel-function-calling)
|
|
179
|
+
# during tool use.
|
|
85
180
|
attr_reader parallel_tool_calls: bool?
|
|
86
181
|
|
|
182
|
+
# Whether to enable
|
|
183
|
+
# [parallel function calling](https://developers.openai.com/api/docs/guides/function-calling#parallel-function-calling)
|
|
184
|
+
# during tool use.
|
|
87
185
|
def parallel_tool_calls=: (bool) -> bool
|
|
88
186
|
|
|
187
|
+
# Configuration for a
|
|
188
|
+
# [Predicted Output](https://developers.openai.com/api/docs/guides/predicted-outputs),
|
|
189
|
+
# which can greatly improve response times when large parts of the model response
|
|
190
|
+
# are known ahead of time. This is most common when you are regenerating a file
|
|
191
|
+
# with only minor changes to most of the content.
|
|
89
192
|
attr_accessor prediction: OpenAI::Chat::ChatCompletionPredictionContent?
|
|
90
193
|
|
|
194
|
+
# Number between -2.0 and 2.0. Positive values penalize new tokens based on
|
|
195
|
+
# whether they appear in the text so far, increasing the model's likelihood to
|
|
196
|
+
# talk about new topics.
|
|
91
197
|
attr_accessor presence_penalty: Float?
|
|
92
198
|
|
|
199
|
+
# Used by OpenAI to cache responses for similar requests to optimize your cache
|
|
200
|
+
# hit rates. Replaces the `user` field.
|
|
201
|
+
# [Learn more](https://developers.openai.com/api/docs/guides/prompt-caching).
|
|
93
202
|
attr_accessor prompt_cache_key: String?
|
|
94
203
|
|
|
204
|
+
# Options for prompt caching. Supported for `gpt-5.6` and later models. By
|
|
205
|
+
# default, OpenAI automatically chooses one implicit cache breakpoint. You can add
|
|
206
|
+
# explicit breakpoints to content blocks with `prompt_cache_breakpoint`. Each
|
|
207
|
+
# request can write up to four breakpoints. For cache matching, OpenAI considers
|
|
208
|
+
# up to the latest 80 breakpoints in the conversation, without a content-block
|
|
209
|
+
# lookback limit. Set `mode` to `explicit` to disable the implicit breakpoint. The
|
|
210
|
+
# `ttl` defaults to `30m`, which is currently the only supported value. See the
|
|
211
|
+
# [prompt caching guide](https://developers.openai.com/api/docs/guides/prompt-caching)
|
|
212
|
+
# for current details.
|
|
95
213
|
attr_reader prompt_cache_options: OpenAI::Chat::CompletionCreateParams::PromptCacheOptions?
|
|
96
214
|
|
|
215
|
+
# Options for prompt caching. Supported for `gpt-5.6` and later models. By
|
|
216
|
+
# default, OpenAI automatically chooses one implicit cache breakpoint. You can add
|
|
217
|
+
# explicit breakpoints to content blocks with `prompt_cache_breakpoint`. Each
|
|
218
|
+
# request can write up to four breakpoints. For cache matching, OpenAI considers
|
|
219
|
+
# up to the latest 80 breakpoints in the conversation, without a content-block
|
|
220
|
+
# lookback limit. Set `mode` to `explicit` to disable the implicit breakpoint. The
|
|
221
|
+
# `ttl` defaults to `30m`, which is currently the only supported value. See the
|
|
222
|
+
# [prompt caching guide](https://developers.openai.com/api/docs/guides/prompt-caching)
|
|
223
|
+
# for current details.
|
|
97
224
|
def prompt_cache_options=: (
|
|
98
225
|
OpenAI::Chat::CompletionCreateParams::PromptCacheOptions
|
|
99
226
|
) -> OpenAI::Chat::CompletionCreateParams::PromptCacheOptions
|
|
100
227
|
|
|
228
|
+
# Deprecated. Use `prompt_cache_options.ttl` instead.
|
|
229
|
+
#
|
|
230
|
+
# The retention policy for the prompt cache. Set to `24h` to enable extended
|
|
231
|
+
# prompt caching, which keeps cached prefixes active for longer, up to a maximum
|
|
232
|
+
# of 24 hours.
|
|
233
|
+
# [Learn more](https://developers.openai.com/api/docs/guides/prompt-caching#prompt-cache-retention).
|
|
234
|
+
# This field expresses a maximum retention policy, while
|
|
235
|
+
# `prompt_cache_options.ttl` expresses a minimum cache lifetime. The two fields
|
|
236
|
+
# are independent and do not interact. For `gpt-5.5`, `gpt-5.5-pro`, and future
|
|
237
|
+
# models, only `24h` is supported.
|
|
238
|
+
#
|
|
239
|
+
# For older models that support both `in_memory` and `24h`, the default depends on
|
|
240
|
+
# your organization's data retention policy:
|
|
241
|
+
#
|
|
242
|
+
# - Organizations without ZDR enabled default to `24h`.
|
|
243
|
+
# - Organizations with ZDR enabled default to `in_memory` when
|
|
244
|
+
# `prompt_cache_retention` is not specified.
|
|
101
245
|
attr_accessor prompt_cache_retention: OpenAI::Models::Chat::CompletionCreateParams::prompt_cache_retention?
|
|
102
246
|
|
|
247
|
+
# Constrains effort on reasoning for reasoning models. Currently supported values
|
|
248
|
+
# are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing
|
|
249
|
+
# reasoning effort can result in faster responses and fewer tokens used on
|
|
250
|
+
# reasoning in a response. Not all reasoning models support every value. See the
|
|
251
|
+
# [reasoning guide](https://developers.openai.com/api/docs/guides/reasoning) for
|
|
252
|
+
# model-specific support.
|
|
103
253
|
attr_accessor reasoning_effort: OpenAI::Models::reasoning_effort?
|
|
104
254
|
|
|
255
|
+
# An object specifying the format that the model must output.
|
|
256
|
+
#
|
|
257
|
+
# Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured
|
|
258
|
+
# Outputs which ensures the model will match your supplied JSON schema. Learn more
|
|
259
|
+
# in the
|
|
260
|
+
# [Structured Outputs guide](https://developers.openai.com/api/docs/guides/structured-outputs).
|
|
261
|
+
#
|
|
262
|
+
# Setting to `{ "type": "json_object" }` enables the older JSON mode, which
|
|
263
|
+
# ensures the message the model generates is valid JSON. Using `json_schema` is
|
|
264
|
+
# preferred for models that support it.
|
|
105
265
|
attr_reader response_format: OpenAI::Models::Chat::CompletionCreateParams::response_format?
|
|
106
266
|
|
|
267
|
+
# An object specifying the format that the model must output.
|
|
268
|
+
#
|
|
269
|
+
# Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured
|
|
270
|
+
# Outputs which ensures the model will match your supplied JSON schema. Learn more
|
|
271
|
+
# in the
|
|
272
|
+
# [Structured Outputs guide](https://developers.openai.com/api/docs/guides/structured-outputs).
|
|
273
|
+
#
|
|
274
|
+
# Setting to `{ "type": "json_object" }` enables the older JSON mode, which
|
|
275
|
+
# ensures the message the model generates is valid JSON. Using `json_schema` is
|
|
276
|
+
# preferred for models that support it.
|
|
107
277
|
def response_format=: (
|
|
108
278
|
OpenAI::Models::Chat::CompletionCreateParams::response_format
|
|
109
279
|
) -> OpenAI::Models::Chat::CompletionCreateParams::response_format
|
|
110
280
|
|
|
281
|
+
# A stable identifier used to help detect users of your application that may be
|
|
282
|
+
# violating OpenAI's usage policies. The IDs should be a string that uniquely
|
|
283
|
+
# identifies each user, with a maximum length of 64 characters. We recommend
|
|
284
|
+
# hashing their username or email address, in order to avoid sending us any
|
|
285
|
+
# identifying information.
|
|
286
|
+
# [Learn more](https://developers.openai.com/api/docs/guides/safety-best-practices#implement-safety-identifiers).
|
|
111
287
|
attr_accessor safety_identifier: String?
|
|
112
288
|
|
|
289
|
+
# This feature is in Beta. If specified, our system will make a best effort to
|
|
290
|
+
# sample deterministically, such that repeated requests with the same `seed` and
|
|
291
|
+
# parameters should return the same result. Determinism is not guaranteed, and you
|
|
292
|
+
# should refer to the `system_fingerprint` response parameter to monitor changes
|
|
293
|
+
# in the backend.
|
|
113
294
|
attr_accessor seed: Integer?
|
|
114
295
|
|
|
296
|
+
# Specifies the processing type used for serving the request.
|
|
297
|
+
#
|
|
298
|
+
# - If set to 'auto', then the request will be processed with the service tier
|
|
299
|
+
# configured in the Project settings. Unless otherwise configured, the Project
|
|
300
|
+
# will use 'default'.
|
|
301
|
+
# - If set to 'default', then the request will be processed with the standard
|
|
302
|
+
# pricing and performance for the selected model.
|
|
303
|
+
# - If set to
|
|
304
|
+
# '[flex](https://developers.openai.com/api/docs/guides/flex-processing)', then
|
|
305
|
+
# the request will be processed with the Flex Processing service tier.
|
|
306
|
+
# - To opt-in to
|
|
307
|
+
# [Fast mode](https://developers.openai.com/api/docs/guides/fast-mode) at the
|
|
308
|
+
# request level, include the `service_tier=fast` or `service_tier=priority`
|
|
309
|
+
# parameter for Responses or Chat Completions. The response will show
|
|
310
|
+
# `service_tier=priority` regardless of if you specify `service_tier=fast` or
|
|
311
|
+
# `priority` in your request.
|
|
312
|
+
# - When not set, the default behavior is 'auto'.
|
|
313
|
+
#
|
|
314
|
+
# When the `service_tier` parameter is set, the response body will include the
|
|
315
|
+
# `service_tier` value based on the processing mode actually used to serve the
|
|
316
|
+
# request. This response value may be different from the value set in the
|
|
317
|
+
# parameter.
|
|
115
318
|
attr_accessor service_tier: OpenAI::Models::Chat::CompletionCreateParams::service_tier?
|
|
116
319
|
|
|
320
|
+
# Not supported with latest reasoning models `o3` and `o4-mini`.
|
|
321
|
+
#
|
|
322
|
+
# Up to 4 sequences where the API will stop generating further tokens. The
|
|
323
|
+
# returned text will not contain the stop sequence.
|
|
117
324
|
attr_accessor stop: OpenAI::Models::Chat::CompletionCreateParams::stop?
|
|
118
325
|
|
|
326
|
+
# Whether or not to store the output of this chat completion request for use in
|
|
327
|
+
# our
|
|
328
|
+
# [model distillation](https://developers.openai.com/api/docs/guides/supervised-fine-tuning#distilling-from-a-larger-model)
|
|
329
|
+
# or [evals](https://developers.openai.com/api/docs/guides/evals) products.
|
|
330
|
+
#
|
|
331
|
+
# Supports text and image inputs. Note: image inputs over 8MB will be dropped.
|
|
119
332
|
attr_accessor store: bool?
|
|
120
333
|
|
|
334
|
+
# Options for streaming response. Only set this when you set `stream: true`.
|
|
121
335
|
attr_accessor stream_options: OpenAI::Chat::ChatCompletionStreamOptions?
|
|
122
336
|
|
|
337
|
+
# What sampling temperature to use, between 0 and 2. Higher values like 0.8 will
|
|
338
|
+
# make the output more random, while lower values like 0.2 will make it more
|
|
339
|
+
# focused and deterministic. We generally recommend altering this or `top_p` but
|
|
340
|
+
# not both.
|
|
123
341
|
attr_accessor temperature: Float?
|
|
124
342
|
|
|
343
|
+
# Controls which (if any) tool is called by the model. `none` means the model will
|
|
344
|
+
# not call any tool and instead generates a message. `auto` means the model can
|
|
345
|
+
# pick between generating a message or calling one or more tools. `required` means
|
|
346
|
+
# the model must call one or more tools. Specifying a particular tool via
|
|
347
|
+
# `{"type": "function", "function": {"name": "my_function"}}` forces the model to
|
|
348
|
+
# call that tool.
|
|
349
|
+
#
|
|
350
|
+
# `none` is the default when no tools are present. `auto` is the default if tools
|
|
351
|
+
# are present.
|
|
125
352
|
attr_reader tool_choice: OpenAI::Models::Chat::chat_completion_tool_choice_option?
|
|
126
353
|
|
|
354
|
+
# Controls which (if any) tool is called by the model. `none` means the model will
|
|
355
|
+
# not call any tool and instead generates a message. `auto` means the model can
|
|
356
|
+
# pick between generating a message or calling one or more tools. `required` means
|
|
357
|
+
# the model must call one or more tools. Specifying a particular tool via
|
|
358
|
+
# `{"type": "function", "function": {"name": "my_function"}}` forces the model to
|
|
359
|
+
# call that tool.
|
|
360
|
+
#
|
|
361
|
+
# `none` is the default when no tools are present. `auto` is the default if tools
|
|
362
|
+
# are present.
|
|
127
363
|
def tool_choice=: (
|
|
128
364
|
OpenAI::Models::Chat::chat_completion_tool_choice_option
|
|
129
365
|
) -> OpenAI::Models::Chat::chat_completion_tool_choice_option
|
|
130
366
|
|
|
367
|
+
# A list of tools the model may call. You can provide either
|
|
368
|
+
# [custom tools](https://developers.openai.com/api/docs/guides/function-calling#custom-tools)
|
|
369
|
+
# or
|
|
370
|
+
# [function tools](https://developers.openai.com/api/docs/guides/function-calling).
|
|
131
371
|
attr_reader tools: ::Array[OpenAI::Models::Chat::chat_completion_tool]?
|
|
132
372
|
|
|
373
|
+
# A list of tools the model may call. You can provide either
|
|
374
|
+
# [custom tools](https://developers.openai.com/api/docs/guides/function-calling#custom-tools)
|
|
375
|
+
# or
|
|
376
|
+
# [function tools](https://developers.openai.com/api/docs/guides/function-calling).
|
|
133
377
|
def tools=: (
|
|
134
378
|
::Array[OpenAI::Models::Chat::chat_completion_tool]
|
|
135
379
|
) -> ::Array[OpenAI::Models::Chat::chat_completion_tool]
|
|
136
380
|
|
|
381
|
+
# An integer between 0 and 20 specifying the maximum number of most likely tokens
|
|
382
|
+
# to return at each token position, each with an associated log probability. In
|
|
383
|
+
# some cases, the number of returned tokens may be fewer than requested.
|
|
384
|
+
# `logprobs` must be set to `true` if this parameter is used.
|
|
137
385
|
attr_accessor top_logprobs: Integer?
|
|
138
386
|
|
|
387
|
+
# An alternative to sampling with temperature, called nucleus sampling, where the
|
|
388
|
+
# model considers the results of the tokens with top_p probability mass. So 0.1
|
|
389
|
+
# means only the tokens comprising the top 10% probability mass are considered.
|
|
390
|
+
#
|
|
391
|
+
# We generally recommend altering this or `temperature` but not both.
|
|
139
392
|
attr_accessor top_p: Float?
|
|
140
393
|
|
|
394
|
+
# This field is being replaced by `safety_identifier` and `prompt_cache_key`. Use
|
|
395
|
+
# `prompt_cache_key` instead to maintain caching optimizations. A stable
|
|
396
|
+
# identifier for your end-users. Used to boost cache hit rates by better bucketing
|
|
397
|
+
# similar requests and to help OpenAI detect and prevent abuse.
|
|
398
|
+
# [Learn more](https://developers.openai.com/api/docs/guides/safety-best-practices#implement-safety-identifiers).
|
|
141
399
|
attr_reader user: String?
|
|
142
400
|
|
|
401
|
+
# This field is being replaced by `safety_identifier` and `prompt_cache_key`. Use
|
|
402
|
+
# `prompt_cache_key` instead to maintain caching optimizations. A stable
|
|
403
|
+
# identifier for your end-users. Used to boost cache hit rates by better bucketing
|
|
404
|
+
# similar requests and to help OpenAI detect and prevent abuse.
|
|
405
|
+
# [Learn more](https://developers.openai.com/api/docs/guides/safety-best-practices#implement-safety-identifiers).
|
|
143
406
|
def user=: (String) -> String
|
|
144
407
|
|
|
408
|
+
# Constrains the verbosity of the model's response. Lower values will result in
|
|
409
|
+
# more concise responses, while higher values will result in more verbose
|
|
410
|
+
# responses. Currently supported values are `low`, `medium`, and `high`. The
|
|
411
|
+
# default is `medium`.
|
|
145
412
|
attr_accessor verbosity: OpenAI::Models::Chat::CompletionCreateParams::verbosity?
|
|
146
413
|
|
|
414
|
+
# This tool searches the web for relevant results to use in a response. Learn more
|
|
415
|
+
# about the
|
|
416
|
+
# [web search tool](https://developers.openai.com/api/docs/guides/tools-web-search).
|
|
147
417
|
attr_reader web_search_options: OpenAI::Chat::CompletionCreateParams::WebSearchOptions?
|
|
148
418
|
|
|
419
|
+
# This tool searches the web for relevant results to use in a response. Learn more
|
|
420
|
+
# about the
|
|
421
|
+
# [web search tool](https://developers.openai.com/api/docs/guides/tools-web-search).
|
|
149
422
|
def web_search_options=: (
|
|
150
423
|
OpenAI::Chat::CompletionCreateParams::WebSearchOptions
|
|
151
424
|
) -> OpenAI::Chat::CompletionCreateParams::WebSearchOptions
|
|
152
425
|
|
|
426
|
+
# @param messages
|
|
427
|
+
# A list of messages comprising the conversation so far. Depending on the
|
|
428
|
+
# [model](https://developers.openai.com/api/docs/models) you use, different
|
|
429
|
+
# message types (modalities) are supported, like
|
|
430
|
+
# [text](https://developers.openai.com/api/docs/guides/text),
|
|
431
|
+
# [images](https://developers.openai.com/api/docs/guides/images-vision), and
|
|
432
|
+
# [audio](https://developers.openai.com/api/docs/guides/audio).
|
|
433
|
+
# @param model
|
|
434
|
+
# Model ID used to generate the response, like `gpt-6-astra` or `o3`. OpenAI
|
|
435
|
+
# offers a wide range of models with different capabilities, performance
|
|
436
|
+
# characteristics, and price points. Refer to the
|
|
437
|
+
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
438
|
+
# compare available models.
|
|
439
|
+
# @param audio
|
|
440
|
+
# Parameters for audio output. Required when audio output is requested with
|
|
441
|
+
# `modalities: ["audio"]`.
|
|
442
|
+
# [Learn more](https://developers.openai.com/api/docs/guides/audio).
|
|
443
|
+
# @param frequency_penalty
|
|
444
|
+
# Number between -2.0 and 2.0. Positive values penalize new tokens based on their
|
|
445
|
+
# existing frequency in the text so far, decreasing the model's likelihood to
|
|
446
|
+
# repeat the same line verbatim.
|
|
447
|
+
# @param function_call
|
|
448
|
+
# Deprecated in favor of `tool_choice`.
|
|
449
|
+
#
|
|
450
|
+
# Controls which (if any) function is called by the model.
|
|
451
|
+
#
|
|
452
|
+
# `none` means the model will not call a function and instead generates a message.
|
|
453
|
+
#
|
|
454
|
+
# `auto` means the model can pick between generating a message or calling a
|
|
455
|
+
# function.
|
|
456
|
+
#
|
|
457
|
+
# Specifying a particular function via `{"name": "my_function"}` forces the model
|
|
458
|
+
# to call that function.
|
|
459
|
+
#
|
|
460
|
+
# `none` is the default when no functions are present. `auto` is the default if
|
|
461
|
+
# functions are present.
|
|
462
|
+
# @param functions
|
|
463
|
+
# Deprecated in favor of `tools`.
|
|
464
|
+
#
|
|
465
|
+
# A list of functions the model may generate JSON inputs for.
|
|
466
|
+
# @param logit_bias
|
|
467
|
+
# Modify the likelihood of specified tokens appearing in the completion.
|
|
468
|
+
#
|
|
469
|
+
# Accepts a JSON object that maps tokens (specified by their token ID in the
|
|
470
|
+
# tokenizer) to an associated bias value from -100 to 100. Mathematically, the
|
|
471
|
+
# bias is added to the logits generated by the model prior to sampling. The exact
|
|
472
|
+
# effect will vary per model, but values between -1 and 1 should decrease or
|
|
473
|
+
# increase likelihood of selection; values like -100 or 100 should result in a ban
|
|
474
|
+
# or exclusive selection of the relevant token.
|
|
475
|
+
# @param logprobs
|
|
476
|
+
# Whether to return log probabilities of the output tokens or not. If true,
|
|
477
|
+
# returns the log probabilities of each output token returned in the `content` of
|
|
478
|
+
# `message`.
|
|
479
|
+
# @param max_completion_tokens
|
|
480
|
+
# An upper bound for the number of tokens that can be generated for a completion,
|
|
481
|
+
# including visible output tokens and
|
|
482
|
+
# [reasoning tokens](https://developers.openai.com/api/docs/guides/reasoning).
|
|
483
|
+
# @param max_tokens
|
|
484
|
+
# The maximum number of [tokens](https://platform.openai.com/tokenizer) that can
|
|
485
|
+
# be generated in the chat completion. This value can be used to control
|
|
486
|
+
# [costs](https://openai.com/api/pricing/) for text generated via API.
|
|
487
|
+
#
|
|
488
|
+
# This value is now deprecated in favor of `max_completion_tokens`, and is not
|
|
489
|
+
# compatible with
|
|
490
|
+
# [o-series models](https://developers.openai.com/api/docs/guides/reasoning).
|
|
491
|
+
# @param metadata
|
|
492
|
+
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
493
|
+
# for storing additional information about the object in a structured format, and
|
|
494
|
+
# querying for objects via API or the dashboard.
|
|
495
|
+
#
|
|
496
|
+
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
497
|
+
# a maximum length of 512 characters.
|
|
498
|
+
# @param modalities
|
|
499
|
+
# Output types that you would like the model to generate. Most models are capable
|
|
500
|
+
# of generating text, which is the default:
|
|
501
|
+
#
|
|
502
|
+
# `["text"]`
|
|
503
|
+
#
|
|
504
|
+
# The `gpt-4o-audio-preview` model can also be used to
|
|
505
|
+
# [generate audio](https://developers.openai.com/api/docs/guides/audio). To
|
|
506
|
+
# request that this model generate both text and audio responses, you can use:
|
|
507
|
+
#
|
|
508
|
+
# `["text", "audio"]`
|
|
509
|
+
# @param moderation
|
|
510
|
+
# Configuration for running moderation on the request input and generated output.
|
|
511
|
+
# @param n
|
|
512
|
+
# How many chat completion choices to generate for each input message. Note that
|
|
513
|
+
# you will be charged based on the number of generated tokens across all of the
|
|
514
|
+
# choices. Keep `n` as `1` to minimize costs.
|
|
515
|
+
# @param parallel_tool_calls
|
|
516
|
+
# Whether to enable
|
|
517
|
+
# [parallel function calling](https://developers.openai.com/api/docs/guides/function-calling#parallel-function-calling)
|
|
518
|
+
# during tool use.
|
|
519
|
+
# @param prediction
|
|
520
|
+
# Configuration for a
|
|
521
|
+
# [Predicted Output](https://developers.openai.com/api/docs/guides/predicted-outputs),
|
|
522
|
+
# which can greatly improve response times when large parts of the model response
|
|
523
|
+
# are known ahead of time. This is most common when you are regenerating a file
|
|
524
|
+
# with only minor changes to most of the content.
|
|
525
|
+
# @param presence_penalty
|
|
526
|
+
# Number between -2.0 and 2.0. Positive values penalize new tokens based on
|
|
527
|
+
# whether they appear in the text so far, increasing the model's likelihood to
|
|
528
|
+
# talk about new topics.
|
|
529
|
+
# @param prompt_cache_key
|
|
530
|
+
# Used by OpenAI to cache responses for similar requests to optimize your cache
|
|
531
|
+
# hit rates. Replaces the `user` field.
|
|
532
|
+
# [Learn more](https://developers.openai.com/api/docs/guides/prompt-caching).
|
|
533
|
+
# @param prompt_cache_options
|
|
534
|
+
# Options for prompt caching. Supported for `gpt-5.6` and later models. By
|
|
535
|
+
# default, OpenAI automatically chooses one implicit cache breakpoint. You can add
|
|
536
|
+
# explicit breakpoints to content blocks with `prompt_cache_breakpoint`. Each
|
|
537
|
+
# request can write up to four breakpoints. For cache matching, OpenAI considers
|
|
538
|
+
# up to the latest 80 breakpoints in the conversation, without a content-block
|
|
539
|
+
# lookback limit. Set `mode` to `explicit` to disable the implicit breakpoint. The
|
|
540
|
+
# `ttl` defaults to `30m`, which is currently the only supported value. See the
|
|
541
|
+
# [prompt caching guide](https://developers.openai.com/api/docs/guides/prompt-caching)
|
|
542
|
+
# for current details.
|
|
543
|
+
# @param prompt_cache_retention
|
|
544
|
+
# Deprecated. Use `prompt_cache_options.ttl` instead.
|
|
545
|
+
#
|
|
546
|
+
# The retention policy for the prompt cache. Set to `24h` to enable extended
|
|
547
|
+
# prompt caching, which keeps cached prefixes active for longer, up to a maximum
|
|
548
|
+
# of 24 hours.
|
|
549
|
+
# [Learn more](https://developers.openai.com/api/docs/guides/prompt-caching#prompt-cache-retention).
|
|
550
|
+
# This field expresses a maximum retention policy, while
|
|
551
|
+
# `prompt_cache_options.ttl` expresses a minimum cache lifetime. The two fields
|
|
552
|
+
# are independent and do not interact. For `gpt-5.5`, `gpt-5.5-pro`, and future
|
|
553
|
+
# models, only `24h` is supported.
|
|
554
|
+
#
|
|
555
|
+
# For older models that support both `in_memory` and `24h`, the default depends on
|
|
556
|
+
# your organization's data retention policy:
|
|
557
|
+
#
|
|
558
|
+
# - Organizations without ZDR enabled default to `24h`.
|
|
559
|
+
# - Organizations with ZDR enabled default to `in_memory` when
|
|
560
|
+
# `prompt_cache_retention` is not specified.
|
|
561
|
+
# @param reasoning_effort
|
|
562
|
+
# Constrains effort on reasoning for reasoning models. Currently supported values
|
|
563
|
+
# are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing
|
|
564
|
+
# reasoning effort can result in faster responses and fewer tokens used on
|
|
565
|
+
# reasoning in a response. Not all reasoning models support every value. See the
|
|
566
|
+
# [reasoning guide](https://developers.openai.com/api/docs/guides/reasoning) for
|
|
567
|
+
# model-specific support.
|
|
568
|
+
# @param response_format
|
|
569
|
+
# An object specifying the format that the model must output.
|
|
570
|
+
#
|
|
571
|
+
# Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured
|
|
572
|
+
# Outputs which ensures the model will match your supplied JSON schema. Learn more
|
|
573
|
+
# in the
|
|
574
|
+
# [Structured Outputs guide](https://developers.openai.com/api/docs/guides/structured-outputs).
|
|
575
|
+
#
|
|
576
|
+
# Setting to `{ "type": "json_object" }` enables the older JSON mode, which
|
|
577
|
+
# ensures the message the model generates is valid JSON. Using `json_schema` is
|
|
578
|
+
# preferred for models that support it.
|
|
579
|
+
# @param safety_identifier
|
|
580
|
+
# A stable identifier used to help detect users of your application that may be
|
|
581
|
+
# violating OpenAI's usage policies. The IDs should be a string that uniquely
|
|
582
|
+
# identifies each user, with a maximum length of 64 characters. We recommend
|
|
583
|
+
# hashing their username or email address, in order to avoid sending us any
|
|
584
|
+
# identifying information.
|
|
585
|
+
# [Learn more](https://developers.openai.com/api/docs/guides/safety-best-practices#implement-safety-identifiers).
|
|
586
|
+
# @param seed
|
|
587
|
+
# This feature is in Beta. If specified, our system will make a best effort to
|
|
588
|
+
# sample deterministically, such that repeated requests with the same `seed` and
|
|
589
|
+
# parameters should return the same result. Determinism is not guaranteed, and you
|
|
590
|
+
# should refer to the `system_fingerprint` response parameter to monitor changes
|
|
591
|
+
# in the backend.
|
|
592
|
+
# @param service_tier
|
|
593
|
+
# Specifies the processing type used for serving the request.
|
|
594
|
+
#
|
|
595
|
+
# - If set to 'auto', then the request will be processed with the service tier
|
|
596
|
+
# configured in the Project settings. Unless otherwise configured, the Project
|
|
597
|
+
# will use 'default'.
|
|
598
|
+
# - If set to 'default', then the request will be processed with the standard
|
|
599
|
+
# pricing and performance for the selected model.
|
|
600
|
+
# - If set to
|
|
601
|
+
# '[flex](https://developers.openai.com/api/docs/guides/flex-processing)', then
|
|
602
|
+
# the request will be processed with the Flex Processing service tier.
|
|
603
|
+
# - To opt-in to
|
|
604
|
+
# [Fast mode](https://developers.openai.com/api/docs/guides/fast-mode) at the
|
|
605
|
+
# request level, include the `service_tier=fast` or `service_tier=priority`
|
|
606
|
+
# parameter for Responses or Chat Completions. The response will show
|
|
607
|
+
# `service_tier=priority` regardless of if you specify `service_tier=fast` or
|
|
608
|
+
# `priority` in your request.
|
|
609
|
+
# - When not set, the default behavior is 'auto'.
|
|
610
|
+
#
|
|
611
|
+
# When the `service_tier` parameter is set, the response body will include the
|
|
612
|
+
# `service_tier` value based on the processing mode actually used to serve the
|
|
613
|
+
# request. This response value may be different from the value set in the
|
|
614
|
+
# parameter.
|
|
615
|
+
# @param stop
|
|
616
|
+
# Not supported with latest reasoning models `o3` and `o4-mini`.
|
|
617
|
+
#
|
|
618
|
+
# Up to 4 sequences where the API will stop generating further tokens. The
|
|
619
|
+
# returned text will not contain the stop sequence.
|
|
620
|
+
# @param store
|
|
621
|
+
# Whether or not to store the output of this chat completion request for use in
|
|
622
|
+
# our
|
|
623
|
+
# [model distillation](https://developers.openai.com/api/docs/guides/supervised-fine-tuning#distilling-from-a-larger-model)
|
|
624
|
+
# or [evals](https://developers.openai.com/api/docs/guides/evals) products.
|
|
625
|
+
#
|
|
626
|
+
# Supports text and image inputs. Note: image inputs over 8MB will be dropped.
|
|
627
|
+
# @param stream_options
|
|
628
|
+
# Options for streaming response. Only set this when you set `stream: true`.
|
|
629
|
+
# @param temperature
|
|
630
|
+
# What sampling temperature to use, between 0 and 2. Higher values like 0.8 will
|
|
631
|
+
# make the output more random, while lower values like 0.2 will make it more
|
|
632
|
+
# focused and deterministic. We generally recommend altering this or `top_p` but
|
|
633
|
+
# not both.
|
|
634
|
+
# @param tool_choice
|
|
635
|
+
# Controls which (if any) tool is called by the model. `none` means the model will
|
|
636
|
+
# not call any tool and instead generates a message. `auto` means the model can
|
|
637
|
+
# pick between generating a message or calling one or more tools. `required` means
|
|
638
|
+
# the model must call one or more tools. Specifying a particular tool via
|
|
639
|
+
# `{"type": "function", "function": {"name": "my_function"}}` forces the model to
|
|
640
|
+
# call that tool.
|
|
641
|
+
#
|
|
642
|
+
# `none` is the default when no tools are present. `auto` is the default if tools
|
|
643
|
+
# are present.
|
|
644
|
+
# @param tools
|
|
645
|
+
# A list of tools the model may call. You can provide either
|
|
646
|
+
# [custom tools](https://developers.openai.com/api/docs/guides/function-calling#custom-tools)
|
|
647
|
+
# or
|
|
648
|
+
# [function tools](https://developers.openai.com/api/docs/guides/function-calling).
|
|
649
|
+
# @param top_logprobs
|
|
650
|
+
# An integer between 0 and 20 specifying the maximum number of most likely tokens
|
|
651
|
+
# to return at each token position, each with an associated log probability. In
|
|
652
|
+
# some cases, the number of returned tokens may be fewer than requested.
|
|
653
|
+
# `logprobs` must be set to `true` if this parameter is used.
|
|
654
|
+
# @param top_p
|
|
655
|
+
# An alternative to sampling with temperature, called nucleus sampling, where the
|
|
656
|
+
# model considers the results of the tokens with top_p probability mass. So 0.1
|
|
657
|
+
# means only the tokens comprising the top 10% probability mass are considered.
|
|
658
|
+
#
|
|
659
|
+
# We generally recommend altering this or `temperature` but not both.
|
|
660
|
+
# @param user
|
|
661
|
+
# This field is being replaced by `safety_identifier` and `prompt_cache_key`. Use
|
|
662
|
+
# `prompt_cache_key` instead to maintain caching optimizations. A stable
|
|
663
|
+
# identifier for your end-users. Used to boost cache hit rates by better bucketing
|
|
664
|
+
# similar requests and to help OpenAI detect and prevent abuse.
|
|
665
|
+
# [Learn more](https://developers.openai.com/api/docs/guides/safety-best-practices#implement-safety-identifiers).
|
|
666
|
+
# @param verbosity
|
|
667
|
+
# Constrains the verbosity of the model's response. Lower values will result in
|
|
668
|
+
# more concise responses, while higher values will result in more verbose
|
|
669
|
+
# responses. Currently supported values are `low`, `medium`, and `high`. The
|
|
670
|
+
# default is `medium`.
|
|
671
|
+
# @param web_search_options
|
|
672
|
+
# This tool searches the web for relevant results to use in a response. Learn more
|
|
673
|
+
# about the
|
|
674
|
+
# [web search tool](https://developers.openai.com/api/docs/guides/tools-web-search).
|
|
153
675
|
def initialize: (
|
|
154
676
|
messages: ::Array[OpenAI::Models::Chat::chat_completion_message_param],
|
|
155
677
|
model: OpenAI::Models::Chat::CompletionCreateParams::model,
|
|
@@ -267,18 +789,52 @@ module OpenAI
|
|
|
267
789
|
}
|
|
268
790
|
|
|
269
791
|
class Function < OpenAI::Internal::Type::BaseModel
|
|
792
|
+
# The name of the function to be called. Must be a-z, A-Z, 0-9, or contain
|
|
793
|
+
# underscores and dashes, with a maximum length of 64.
|
|
270
794
|
attr_accessor name: String
|
|
271
795
|
|
|
796
|
+
# A description of what the function does, used by the model to choose when and
|
|
797
|
+
# how to call the function.
|
|
272
798
|
attr_reader description: String?
|
|
273
799
|
|
|
800
|
+
# A description of what the function does, used by the model to choose when and
|
|
801
|
+
# how to call the function.
|
|
274
802
|
def description=: (String) -> String
|
|
275
803
|
|
|
804
|
+
# The parameters the functions accepts, described as a JSON Schema object. See the
|
|
805
|
+
# [guide](https://developers.openai.com/api/docs/guides/function-calling) for
|
|
806
|
+
# examples, and the
|
|
807
|
+
# [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for
|
|
808
|
+
# documentation about the format.
|
|
809
|
+
#
|
|
810
|
+
# Omitting `parameters` defines a function with an empty parameter list.
|
|
276
811
|
attr_reader parameters: OpenAI::Models::function_parameters?
|
|
277
812
|
|
|
813
|
+
# The parameters the functions accepts, described as a JSON Schema object. See the
|
|
814
|
+
# [guide](https://developers.openai.com/api/docs/guides/function-calling) for
|
|
815
|
+
# examples, and the
|
|
816
|
+
# [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for
|
|
817
|
+
# documentation about the format.
|
|
818
|
+
#
|
|
819
|
+
# Omitting `parameters` defines a function with an empty parameter list.
|
|
278
820
|
def parameters=: (
|
|
279
821
|
OpenAI::Models::function_parameters
|
|
280
822
|
) -> OpenAI::Models::function_parameters
|
|
281
823
|
|
|
824
|
+
# @param name
|
|
825
|
+
# The name of the function to be called. Must be a-z, A-Z, 0-9, or contain
|
|
826
|
+
# underscores and dashes, with a maximum length of 64.
|
|
827
|
+
# @param description
|
|
828
|
+
# A description of what the function does, used by the model to choose when and
|
|
829
|
+
# how to call the function.
|
|
830
|
+
# @param parameters
|
|
831
|
+
# The parameters the functions accepts, described as a JSON Schema object. See the
|
|
832
|
+
# [guide](https://developers.openai.com/api/docs/guides/function-calling) for
|
|
833
|
+
# examples, and the
|
|
834
|
+
# [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for
|
|
835
|
+
# documentation about the format.
|
|
836
|
+
#
|
|
837
|
+
# Omitting `parameters` defines a function with an empty parameter list.
|
|
282
838
|
def initialize: (
|
|
283
839
|
name: String,
|
|
284
840
|
?description: String,
|
|
@@ -310,10 +866,18 @@ module OpenAI
|
|
|
310
866
|
}
|
|
311
867
|
|
|
312
868
|
class Moderation < OpenAI::Internal::Type::BaseModel
|
|
869
|
+
# The moderation model to use for moderated completions, e.g.
|
|
870
|
+
# 'omni-moderation-latest'.
|
|
313
871
|
attr_accessor model: String
|
|
314
872
|
|
|
873
|
+
# The policy to apply to moderated response input and output.
|
|
315
874
|
attr_accessor policy: OpenAI::Chat::CompletionCreateParams::Moderation::Policy?
|
|
316
875
|
|
|
876
|
+
# @param model
|
|
877
|
+
# The moderation model to use for moderated completions, e.g.
|
|
878
|
+
# 'omni-moderation-latest'.
|
|
879
|
+
# @param policy
|
|
880
|
+
# The policy to apply to moderated response input and output.
|
|
317
881
|
def initialize: (
|
|
318
882
|
model: String,
|
|
319
883
|
?policy: OpenAI::Chat::CompletionCreateParams::Moderation::Policy?
|
|
@@ -331,10 +895,16 @@ module OpenAI
|
|
|
331
895
|
}
|
|
332
896
|
|
|
333
897
|
class Policy < OpenAI::Internal::Type::BaseModel
|
|
898
|
+
# The moderation policy for the response input.
|
|
334
899
|
attr_accessor input: OpenAI::Chat::CompletionCreateParams::Moderation::Policy::Input?
|
|
335
900
|
|
|
901
|
+
# The moderation policy for the response output.
|
|
336
902
|
attr_accessor output: OpenAI::Chat::CompletionCreateParams::Moderation::Policy::Output?
|
|
337
903
|
|
|
904
|
+
# @param input
|
|
905
|
+
# The moderation policy for the response input.
|
|
906
|
+
# @param output
|
|
907
|
+
# The moderation policy for the response output.
|
|
338
908
|
def initialize: (
|
|
339
909
|
?input: OpenAI::Chat::CompletionCreateParams::Moderation::Policy::Input?,
|
|
340
910
|
?output: OpenAI::Chat::CompletionCreateParams::Moderation::Policy::Output?
|
|
@@ -410,18 +980,47 @@ module OpenAI
|
|
|
410
980
|
}
|
|
411
981
|
|
|
412
982
|
class PromptCacheOptions < OpenAI::Internal::Type::BaseModel
|
|
983
|
+
# Controls whether OpenAI automatically creates an implicit cache breakpoint.
|
|
984
|
+
# Defaults to `implicit`. With `implicit`, OpenAI creates one implicit breakpoint
|
|
985
|
+
# and writes up to the latest three explicit breakpoints in the request. With
|
|
986
|
+
# `explicit`, OpenAI does not create an implicit breakpoint and writes up to the
|
|
987
|
+
# latest four explicit breakpoints. If there are no explicit breakpoints, the
|
|
988
|
+
# request does not use prompt caching.
|
|
413
989
|
attr_reader mode: OpenAI::Models::Chat::CompletionCreateParams::PromptCacheOptions::mode?
|
|
414
990
|
|
|
991
|
+
# Controls whether OpenAI automatically creates an implicit cache breakpoint.
|
|
992
|
+
# Defaults to `implicit`. With `implicit`, OpenAI creates one implicit breakpoint
|
|
993
|
+
# and writes up to the latest three explicit breakpoints in the request. With
|
|
994
|
+
# `explicit`, OpenAI does not create an implicit breakpoint and writes up to the
|
|
995
|
+
# latest four explicit breakpoints. If there are no explicit breakpoints, the
|
|
996
|
+
# request does not use prompt caching.
|
|
415
997
|
def mode=: (
|
|
416
998
|
OpenAI::Models::Chat::CompletionCreateParams::PromptCacheOptions::mode
|
|
417
999
|
) -> OpenAI::Models::Chat::CompletionCreateParams::PromptCacheOptions::mode
|
|
418
1000
|
|
|
1001
|
+
# The minimum lifetime applied to every implicit and explicit cache breakpoint
|
|
1002
|
+
# written by the request. Defaults to `30m`, which is currently the only supported
|
|
1003
|
+
# value. The backend may retain cache entries for longer.
|
|
419
1004
|
attr_reader ttl: OpenAI::Models::Chat::CompletionCreateParams::PromptCacheOptions::ttl?
|
|
420
1005
|
|
|
1006
|
+
# The minimum lifetime applied to every implicit and explicit cache breakpoint
|
|
1007
|
+
# written by the request. Defaults to `30m`, which is currently the only supported
|
|
1008
|
+
# value. The backend may retain cache entries for longer.
|
|
421
1009
|
def ttl=: (
|
|
422
1010
|
OpenAI::Models::Chat::CompletionCreateParams::PromptCacheOptions::ttl
|
|
423
1011
|
) -> OpenAI::Models::Chat::CompletionCreateParams::PromptCacheOptions::ttl
|
|
424
1012
|
|
|
1013
|
+
# @param mode
|
|
1014
|
+
# Controls whether OpenAI automatically creates an implicit cache breakpoint.
|
|
1015
|
+
# Defaults to `implicit`. With `implicit`, OpenAI creates one implicit breakpoint
|
|
1016
|
+
# and writes up to the latest three explicit breakpoints in the request. With
|
|
1017
|
+
# `explicit`, OpenAI does not create an implicit breakpoint and writes up to the
|
|
1018
|
+
# latest four explicit breakpoints. If there are no explicit breakpoints, the
|
|
1019
|
+
# request does not use prompt caching.
|
|
1020
|
+
# @param ttl
|
|
1021
|
+
# The minimum lifetime applied to every implicit and explicit cache breakpoint
|
|
1022
|
+
# written by the request. Defaults to `30m`, which is currently the only supported
|
|
1023
|
+
# value. The backend may retain cache entries for longer.
|
|
425
1024
|
def initialize: (
|
|
426
1025
|
?mode: OpenAI::Models::Chat::CompletionCreateParams::PromptCacheOptions::mode,
|
|
427
1026
|
?ttl: OpenAI::Models::Chat::CompletionCreateParams::PromptCacheOptions::ttl
|
|
@@ -521,14 +1120,24 @@ module OpenAI
|
|
|
521
1120
|
}
|
|
522
1121
|
|
|
523
1122
|
class WebSearchOptions < OpenAI::Internal::Type::BaseModel
|
|
1123
|
+
# High level guidance for the amount of context window space to use for the
|
|
1124
|
+
# search. One of `low`, `medium`, or `high`. `medium` is the default.
|
|
524
1125
|
attr_reader search_context_size: OpenAI::Models::Chat::CompletionCreateParams::WebSearchOptions::search_context_size?
|
|
525
1126
|
|
|
1127
|
+
# High level guidance for the amount of context window space to use for the
|
|
1128
|
+
# search. One of `low`, `medium`, or `high`. `medium` is the default.
|
|
526
1129
|
def search_context_size=: (
|
|
527
1130
|
OpenAI::Models::Chat::CompletionCreateParams::WebSearchOptions::search_context_size
|
|
528
1131
|
) -> OpenAI::Models::Chat::CompletionCreateParams::WebSearchOptions::search_context_size
|
|
529
1132
|
|
|
1133
|
+
# Approximate location parameters for the search.
|
|
530
1134
|
attr_accessor user_location: OpenAI::Chat::CompletionCreateParams::WebSearchOptions::UserLocation?
|
|
531
1135
|
|
|
1136
|
+
# @param search_context_size
|
|
1137
|
+
# High level guidance for the amount of context window space to use for the
|
|
1138
|
+
# search. One of `low`, `medium`, or `high`. `medium` is the default.
|
|
1139
|
+
# @param user_location
|
|
1140
|
+
# Approximate location parameters for the search.
|
|
532
1141
|
def initialize: (
|
|
533
1142
|
?search_context_size: OpenAI::Models::Chat::CompletionCreateParams::WebSearchOptions::search_context_size,
|
|
534
1143
|
?user_location: OpenAI::Chat::CompletionCreateParams::WebSearchOptions::UserLocation?
|
|
@@ -558,10 +1167,16 @@ module OpenAI
|
|
|
558
1167
|
}
|
|
559
1168
|
|
|
560
1169
|
class UserLocation < OpenAI::Internal::Type::BaseModel
|
|
1170
|
+
# Approximate location parameters for the search.
|
|
561
1171
|
attr_accessor approximate: OpenAI::Chat::CompletionCreateParams::WebSearchOptions::UserLocation::Approximate
|
|
562
1172
|
|
|
1173
|
+
# The type of location approximation. Always `approximate`.
|
|
563
1174
|
attr_accessor type: :approximate
|
|
564
1175
|
|
|
1176
|
+
# @param approximate
|
|
1177
|
+
# Approximate location parameters for the search.
|
|
1178
|
+
# @param type
|
|
1179
|
+
# The type of location approximation. Always `approximate`.
|
|
565
1180
|
def initialize: (
|
|
566
1181
|
approximate: OpenAI::Chat::CompletionCreateParams::WebSearchOptions::UserLocation::Approximate,
|
|
567
1182
|
?type: :approximate
|
|
@@ -581,22 +1196,44 @@ module OpenAI
|
|
|
581
1196
|
}
|
|
582
1197
|
|
|
583
1198
|
class Approximate < OpenAI::Internal::Type::BaseModel
|
|
1199
|
+
# Free text input for the city of the user, e.g. `San Francisco`.
|
|
584
1200
|
attr_reader city: String?
|
|
585
1201
|
|
|
1202
|
+
# Free text input for the city of the user, e.g. `San Francisco`.
|
|
586
1203
|
def city=: (String) -> String
|
|
587
1204
|
|
|
1205
|
+
# The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of
|
|
1206
|
+
# the user, e.g. `US`.
|
|
588
1207
|
attr_reader country: String?
|
|
589
1208
|
|
|
1209
|
+
# The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of
|
|
1210
|
+
# the user, e.g. `US`.
|
|
590
1211
|
def country=: (String) -> String
|
|
591
1212
|
|
|
1213
|
+
# Free text input for the region of the user, e.g. `California`.
|
|
592
1214
|
attr_reader region: String?
|
|
593
1215
|
|
|
1216
|
+
# Free text input for the region of the user, e.g. `California`.
|
|
594
1217
|
def region=: (String) -> String
|
|
595
1218
|
|
|
1219
|
+
# The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the
|
|
1220
|
+
# user, e.g. `America/Los_Angeles`.
|
|
596
1221
|
attr_reader timezone: String?
|
|
597
1222
|
|
|
1223
|
+
# The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the
|
|
1224
|
+
# user, e.g. `America/Los_Angeles`.
|
|
598
1225
|
def timezone=: (String) -> String
|
|
599
1226
|
|
|
1227
|
+
# @param city
|
|
1228
|
+
# Free text input for the city of the user, e.g. `San Francisco`.
|
|
1229
|
+
# @param country
|
|
1230
|
+
# The two-letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1) of
|
|
1231
|
+
# the user, e.g. `US`.
|
|
1232
|
+
# @param region
|
|
1233
|
+
# Free text input for the region of the user, e.g. `California`.
|
|
1234
|
+
# @param timezone
|
|
1235
|
+
# The [IANA timezone](https://timeapi.io/documentation/iana-timezones) of the
|
|
1236
|
+
# user, e.g. `America/Los_Angeles`.
|
|
600
1237
|
def initialize: (
|
|
601
1238
|
?city: String,
|
|
602
1239
|
?country: String,
|