openai 1.1.0 → 1.3.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 +35 -0
- data/README.md +4 -4
- data/lib/openai/models/admin/organization/organization_spend_limit.rb +38 -1
- data/lib/openai/models/admin/organization/projects/project_spend_limit.rb +38 -1
- data/lib/openai/models/admin/organization/projects/spend_limit_update_params.rb +51 -1
- data/lib/openai/models/admin/organization/spend_limit_update_params.rb +49 -1
- data/lib/openai/models/admin/organization/usage_costs_params.rb +2 -2
- data/lib/openai/models/all_models.rb +4 -0
- data/lib/openai/models/batch.rb +4 -6
- data/lib/openai/models/batch_create_params.rb +2 -4
- data/lib/openai/models/beta/agents/automation_target_param.rb +2 -2
- data/lib/openai/models/beta/agents/session_create_params.rb +2 -2
- data/lib/openai/models/beta/agents/session_update_params.rb +12 -1
- data/lib/openai/models/beta/beta_compacted_response.rb +19 -1
- data/lib/openai/models/beta/beta_container_auto.rb +8 -2
- data/lib/openai/models/beta/beta_response.rb +23 -13
- data/lib/openai/models/beta/beta_responses_client_event.rb +39 -13
- data/lib/openai/models/beta/response_compact_params.rb +31 -10
- data/lib/openai/models/beta/response_create_params.rb +23 -13
- data/lib/openai/models/chat/chat_completion.rb +2 -4
- data/lib/openai/models/chat/completion_create_params.rb +15 -17
- data/lib/openai/models/chat/completion_update_params.rb +2 -4
- data/lib/openai/models/completion_create_params.rb +3 -3
- data/lib/openai/models/conversations/conversation_create_params.rb +12 -5
- data/lib/openai/models/eval_create_params.rb +2 -4
- data/lib/openai/models/eval_create_response.rb +5 -9
- data/lib/openai/models/eval_list_response.rb +5 -9
- data/lib/openai/models/eval_retrieve_response.rb +5 -9
- data/lib/openai/models/eval_stored_completions_data_source_config.rb +2 -4
- data/lib/openai/models/eval_update_params.rb +2 -4
- data/lib/openai/models/eval_update_response.rb +5 -9
- data/lib/openai/models/evals/create_eval_completions_run_data_source.rb +6 -8
- data/lib/openai/models/evals/run_cancel_response.rb +4 -6
- data/lib/openai/models/evals/run_create_params.rb +4 -6
- data/lib/openai/models/evals/run_create_response.rb +4 -6
- data/lib/openai/models/evals/run_list_response.rb +4 -6
- data/lib/openai/models/evals/run_retrieve_response.rb +4 -6
- data/lib/openai/models/fine_tuning/fine_tuning_job.rb +2 -4
- data/lib/openai/models/fine_tuning/job_create_params.rb +7 -6
- data/lib/openai/models/live/fork_server_event.rb +4 -4
- data/lib/openai/models/live/media_session_config.rb +15 -16
- data/lib/openai/models/live/responses_delegation_config.rb +8 -2
- data/lib/openai/models/live/responses_delegation_update_config.rb +8 -2
- data/lib/openai/models/live/server_event.rb +4 -4
- data/lib/openai/models/live/sideband_server_event.rb +4 -4
- data/lib/openai/models/realtime/realtime_audio_config_input.rb +12 -9
- data/lib/openai/models/realtime/realtime_response.rb +2 -4
- data/lib/openai/models/realtime/realtime_response_create_params.rb +2 -4
- data/lib/openai/models/responses/compacted_response.rb +19 -1
- data/lib/openai/models/responses/container_auto.rb +8 -2
- data/lib/openai/models/responses/response.rb +8 -10
- data/lib/openai/models/responses/response_compact_params.rb +31 -10
- data/lib/openai/models/responses/response_create_params.rb +8 -10
- data/lib/openai/models/responses/responses_client_event.rb +8 -10
- data/lib/openai/models/responses_model.rb +4 -0
- data/lib/openai/models/vector_store.rb +2 -4
- data/lib/openai/models/vector_store_create_params.rb +2 -4
- data/lib/openai/models/vector_store_update_params.rb +2 -4
- data/lib/openai/resources/admin/organization/projects/spend_limit.rb +5 -1
- data/lib/openai/resources/admin/organization/spend_limit.rb +5 -1
- data/lib/openai/resources/admin/organization/usage.rb +1 -1
- data/lib/openai/resources/batches.rb +1 -2
- data/lib/openai/resources/beta/agents/sessions/events.rb +7 -2
- data/lib/openai/resources/beta/agents/sessions/traces.rb +4 -2
- data/lib/openai/resources/beta/agents/sessions.rb +8 -4
- data/lib/openai/resources/beta/responses.rb +9 -6
- data/lib/openai/resources/chat/completions.rb +11 -14
- data/lib/openai/resources/completions.rb +2 -2
- data/lib/openai/resources/conversations.rb +5 -3
- data/lib/openai/resources/evals/runs.rb +1 -2
- data/lib/openai/resources/evals.rb +2 -4
- data/lib/openai/resources/fine_tuning/jobs.rb +2 -3
- data/lib/openai/resources/responses.rb +15 -14
- data/lib/openai/resources/vector_stores.rb +2 -4
- data/lib/openai/version.rb +1 -1
- data/rbi/openai/models/admin/organization/organization_spend_limit.rbi +68 -1
- data/rbi/openai/models/admin/organization/projects/project_spend_limit.rbi +68 -1
- data/rbi/openai/models/admin/organization/projects/spend_limit_update_params.rbi +87 -0
- data/rbi/openai/models/admin/organization/spend_limit_update_params.rbi +85 -0
- data/rbi/openai/models/admin/organization/usage_costs_params.rbi +2 -2
- data/rbi/openai/models/all_models.rbi +7 -0
- data/rbi/openai/models/batch.rbi +4 -6
- data/rbi/openai/models/batch_create_params.rbi +2 -4
- data/rbi/openai/models/beta/agents/automation_target_param.rbi +2 -2
- data/rbi/openai/models/beta/agents/session_create_params.rbi +2 -2
- data/rbi/openai/models/beta/agents/session_update_params.rbi +12 -0
- data/rbi/openai/models/beta/beta_compacted_response.rbi +24 -1
- data/rbi/openai/models/beta/beta_container_auto.rbi +8 -2
- data/rbi/openai/models/beta/beta_response.rbi +15 -13
- data/rbi/openai/models/beta/beta_responses_client_event.rbi +27 -13
- data/rbi/openai/models/beta/response_compact_params.rbi +35 -9
- data/rbi/openai/models/beta/response_create_params.rbi +27 -13
- data/rbi/openai/models/chat/chat_completion.rbi +2 -4
- data/rbi/openai/models/chat/completion_create_params.rbi +14 -16
- data/rbi/openai/models/chat/completion_update_params.rbi +2 -4
- data/rbi/openai/models/completion_create_params.rbi +3 -3
- data/rbi/openai/models/conversations/conversation_create_params.rbi +12 -4
- data/rbi/openai/models/eval_create_params.rbi +2 -4
- data/rbi/openai/models/eval_create_response.rbi +5 -9
- data/rbi/openai/models/eval_list_response.rbi +5 -9
- data/rbi/openai/models/eval_retrieve_response.rbi +5 -9
- data/rbi/openai/models/eval_stored_completions_data_source_config.rbi +2 -4
- data/rbi/openai/models/eval_update_params.rbi +2 -4
- data/rbi/openai/models/eval_update_response.rbi +5 -9
- data/rbi/openai/models/evals/create_eval_completions_run_data_source.rbi +6 -8
- data/rbi/openai/models/evals/run_cancel_response.rbi +4 -6
- data/rbi/openai/models/evals/run_create_params.rbi +4 -6
- data/rbi/openai/models/evals/run_create_response.rbi +4 -6
- data/rbi/openai/models/evals/run_list_response.rbi +4 -6
- data/rbi/openai/models/evals/run_retrieve_response.rbi +4 -6
- data/rbi/openai/models/fine_tuning/fine_tuning_job.rbi +2 -4
- data/rbi/openai/models/fine_tuning/job_create_params.rbi +8 -6
- data/rbi/openai/models/live/fork_server_event.rbi +3 -3
- data/rbi/openai/models/live/media_session_config.rbi +15 -16
- data/rbi/openai/models/live/responses_delegation_config.rbi +8 -2
- data/rbi/openai/models/live/responses_delegation_update_config.rbi +8 -2
- data/rbi/openai/models/live/server_event.rbi +3 -3
- data/rbi/openai/models/live/sideband_server_event.rbi +3 -3
- data/rbi/openai/models/realtime/realtime_audio_config_input.rbi +12 -9
- data/rbi/openai/models/realtime/realtime_response.rbi +2 -4
- data/rbi/openai/models/realtime/realtime_response_create_params.rbi +2 -4
- data/rbi/openai/models/responses/compacted_response.rbi +24 -1
- data/rbi/openai/models/responses/container_auto.rbi +8 -2
- data/rbi/openai/models/responses/response.rbi +8 -10
- data/rbi/openai/models/responses/response_compact_params.rbi +35 -9
- data/rbi/openai/models/responses/response_create_params.rbi +8 -10
- data/rbi/openai/models/responses/responses_client_event.rbi +8 -10
- data/rbi/openai/models/responses_model.rbi +16 -0
- data/rbi/openai/models/vector_store.rbi +2 -4
- data/rbi/openai/models/vector_store_create_params.rbi +2 -4
- data/rbi/openai/models/vector_store_update_params.rbi +2 -4
- data/rbi/openai/resources/admin/organization/projects/spend_limit.rbi +6 -0
- data/rbi/openai/resources/admin/organization/spend_limit.rbi +6 -0
- data/rbi/openai/resources/admin/organization/usage.rbi +1 -1
- data/rbi/openai/resources/batches.rbi +1 -2
- data/rbi/openai/resources/beta/agents/sessions/events.rbi +7 -2
- data/rbi/openai/resources/beta/agents/sessions/traces.rbi +4 -2
- data/rbi/openai/resources/beta/agents/sessions.rbi +7 -3
- data/rbi/openai/resources/beta/responses.rbi +8 -5
- data/rbi/openai/resources/chat/completions.rbi +11 -14
- data/rbi/openai/resources/completions.rbi +2 -2
- data/rbi/openai/resources/conversations.rbi +4 -2
- data/rbi/openai/resources/evals/runs.rbi +1 -2
- data/rbi/openai/resources/evals.rbi +2 -4
- data/rbi/openai/resources/fine_tuning/jobs.rbi +2 -3
- data/rbi/openai/resources/responses.rbi +14 -13
- data/rbi/openai/resources/vector_stores.rbi +2 -4
- data/sig/openai/models/admin/organization/organization_spend_limit.rbs +42 -2
- data/sig/openai/models/admin/organization/projects/project_spend_limit.rbs +42 -2
- data/sig/openai/models/admin/organization/projects/spend_limit_update_params.rbs +48 -0
- data/sig/openai/models/admin/organization/spend_limit_update_params.rbs +48 -0
- data/sig/openai/models/admin/organization/usage_costs_params.rbs +3 -3
- data/sig/openai/models/all_models.rbs +8 -0
- data/sig/openai/models/batch.rbs +5 -7
- data/sig/openai/models/batch_create_params.rbs +2 -4
- data/sig/openai/models/beta/agents/automation_target_param.rbs +2 -2
- data/sig/openai/models/beta/agents/session_create_params.rbs +2 -2
- data/sig/openai/models/beta/agents/session_update_params.rbs +10 -0
- data/sig/openai/models/beta/beta_compacted_response.rbs +21 -2
- data/sig/openai/models/beta/beta_container_auto.rbs +12 -3
- data/sig/openai/models/beta/beta_response.rbs +16 -10
- data/sig/openai/models/beta/beta_responses_client_event.rbs +19 -13
- data/sig/openai/models/beta/response_compact_params.rbs +22 -6
- data/sig/openai/models/beta/response_create_params.rbs +19 -13
- data/sig/openai/models/chat/chat_completion.rbs +2 -4
- data/sig/openai/models/chat/completion_create_params.rbs +10 -12
- data/sig/openai/models/chat/completion_update_params.rbs +2 -4
- data/sig/openai/models/completion_create_params.rbs +2 -2
- data/sig/openai/models/conversations/conversation_create_params.rbs +10 -4
- data/sig/openai/models/eval_create_params.rbs +2 -4
- data/sig/openai/models/eval_create_response.rbs +4 -8
- data/sig/openai/models/eval_list_response.rbs +4 -8
- data/sig/openai/models/eval_retrieve_response.rbs +4 -8
- data/sig/openai/models/eval_stored_completions_data_source_config.rbs +2 -4
- data/sig/openai/models/eval_update_params.rbs +2 -4
- data/sig/openai/models/eval_update_response.rbs +4 -8
- data/sig/openai/models/evals/create_eval_completions_run_data_source.rbs +7 -9
- data/sig/openai/models/evals/run_cancel_response.rbs +5 -7
- data/sig/openai/models/evals/run_create_params.rbs +5 -7
- data/sig/openai/models/evals/run_create_response.rbs +5 -7
- data/sig/openai/models/evals/run_list_response.rbs +5 -7
- data/sig/openai/models/evals/run_retrieve_response.rbs +5 -7
- data/sig/openai/models/fine_tuning/fine_tuning_job.rbs +2 -4
- data/sig/openai/models/fine_tuning/job_create_params.rbs +6 -6
- data/sig/openai/models/live/media_session_config.rbs +21 -21
- data/sig/openai/models/live/responses_delegation_config.rbs +8 -2
- data/sig/openai/models/live/responses_delegation_update_config.rbs +8 -2
- data/sig/openai/models/realtime/realtime_audio_config_input.rbs +12 -9
- data/sig/openai/models/realtime/realtime_response.rbs +2 -4
- data/sig/openai/models/realtime/realtime_response_create_params.rbs +2 -4
- data/sig/openai/models/responses/compacted_response.rbs +21 -2
- data/sig/openai/models/responses/container_auto.rbs +12 -3
- data/sig/openai/models/responses/response.rbs +8 -10
- data/sig/openai/models/responses/response_compact_params.rbs +22 -6
- data/sig/openai/models/responses/response_create_params.rbs +11 -13
- data/sig/openai/models/responses/responses_client_event.rbs +11 -13
- data/sig/openai/models/responses_model.rbs +8 -0
- data/sig/openai/models/vector_store.rbs +2 -4
- data/sig/openai/models/vector_store_create_params.rbs +2 -4
- data/sig/openai/models/vector_store_update_params.rbs +2 -4
- data/sig/openai/resources/admin/organization/projects/spend_limit.rbs +1 -0
- data/sig/openai/resources/admin/organization/spend_limit.rbs +1 -0
- data/sig/openai/resources/beta/agents/sessions.rbs +1 -0
- data/sig/openai/resources/beta/responses.rbs +1 -0
- data/sig/openai/resources/conversations.rbs +1 -0
- data/sig/openai/resources/responses.rbs +1 -0
- metadata +1 -1
|
@@ -194,8 +194,7 @@ module OpenAI
|
|
|
194
194
|
|
|
195
195
|
# @!attribute metadata
|
|
196
196
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
197
|
-
# for storing additional information about the object in a structured format
|
|
198
|
-
# querying for objects via API or the dashboard.
|
|
197
|
+
# for storing additional information about the object in a structured format.
|
|
199
198
|
#
|
|
200
199
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
201
200
|
# a maximum length of 512 characters.
|
|
@@ -204,9 +203,9 @@ module OpenAI
|
|
|
204
203
|
optional :metadata, OpenAI::Internal::Type::HashOf[String], nil?: true
|
|
205
204
|
|
|
206
205
|
# @!attribute model
|
|
207
|
-
# Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a
|
|
208
|
-
# range of models with different capabilities, performance characteristics,
|
|
209
|
-
# price points. Refer to the
|
|
206
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
207
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
208
|
+
# and price points. Refer to the
|
|
210
209
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
211
210
|
# compare available models.
|
|
212
211
|
#
|
|
@@ -600,16 +599,15 @@ module OpenAI
|
|
|
600
599
|
#
|
|
601
600
|
# @param metadata [Hash{Symbol=>String}, nil]
|
|
602
601
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
603
|
-
# for storing additional information about the object in a structured format
|
|
604
|
-
# querying for objects via API or the dashboard.
|
|
602
|
+
# for storing additional information about the object in a structured format.
|
|
605
603
|
#
|
|
606
604
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
607
605
|
# a maximum length of 512 characters.
|
|
608
606
|
#
|
|
609
607
|
# @param model [Symbol, String, OpenAI::Models::Beta::BetaResponsesClientEvent::ResponseCreate::Model]
|
|
610
|
-
# Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a
|
|
611
|
-
# range of models with different capabilities, performance characteristics,
|
|
612
|
-
# price points. Refer to the
|
|
608
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
609
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
610
|
+
# and price points. Refer to the
|
|
613
611
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
614
612
|
# compare available models.
|
|
615
613
|
#
|
|
@@ -1015,9 +1013,9 @@ module OpenAI
|
|
|
1015
1013
|
# @return [Array(String, Array<OpenAI::Models::Beta::BetaEasyInputMessage, OpenAI::Models::Beta::BetaResponseInputItem::Message, OpenAI::Models::Beta::BetaResponseOutputMessage, OpenAI::Models::Beta::BetaResponseFileSearchToolCall, OpenAI::Models::Beta::BetaResponseComputerToolCall, OpenAI::Models::Beta::BetaResponseInputItem::ComputerCallOutput, OpenAI::Models::Beta::BetaResponseFunctionWebSearch, OpenAI::Models::Beta::BetaResponseFunctionToolCall, OpenAI::Models::Beta::BetaResponseInputItem::FunctionCallOutput, OpenAI::Models::Beta::BetaResponseInputItem::AgentMessage, OpenAI::Models::Beta::BetaResponseInputItem::MultiAgentCall, OpenAI::Models::Beta::BetaResponseInputItem::MultiAgentCallOutput, OpenAI::Models::Beta::BetaResponseInputItem::ToolSearchCall, OpenAI::Models::Beta::BetaResponseToolSearchOutputItemParam, OpenAI::Models::Beta::BetaResponseInputItem::AdditionalTools, OpenAI::Models::Beta::BetaResponseConfigurationUpdateItemParam, OpenAI::Models::Beta::BetaResponseReasoningItem, OpenAI::Models::Beta::BetaResponseCompactionItemParam, OpenAI::Models::Beta::BetaResponseInputItem::ImageGenerationCall, OpenAI::Models::Beta::BetaResponseCodeInterpreterToolCall, OpenAI::Models::Beta::BetaResponseInputItem::LocalShellCall, OpenAI::Models::Beta::BetaResponseInputItem::LocalShellCallOutput, OpenAI::Models::Beta::BetaResponseInputItem::ShellCall, OpenAI::Models::Beta::BetaResponseInputItem::ShellCallOutput, OpenAI::Models::Beta::BetaResponseInputItem::ApplyPatchCall, OpenAI::Models::Beta::BetaResponseInputItem::ApplyPatchCallOutput, OpenAI::Models::Beta::BetaResponseInputItem::McpListTools, OpenAI::Models::Beta::BetaResponseInputItem::McpApprovalRequest, OpenAI::Models::Beta::BetaResponseInputItem::McpApprovalResponse, OpenAI::Models::Beta::BetaResponseInputItem::McpCall, OpenAI::Models::Beta::BetaResponseCustomToolCallOutput, OpenAI::Models::Beta::BetaResponseCustomToolCall, OpenAI::Models::Beta::BetaResponseInputItem::CompactionTrigger, OpenAI::Models::Beta::BetaResponseInputItem::ItemReference, OpenAI::Models::Beta::BetaResponseInputItem::Program, OpenAI::Models::Beta::BetaResponseInputItem::ProgramOutput>)]
|
|
1016
1014
|
end
|
|
1017
1015
|
|
|
1018
|
-
# Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a
|
|
1019
|
-
# range of models with different capabilities, performance characteristics,
|
|
1020
|
-
# price points. Refer to the
|
|
1016
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
1017
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
1018
|
+
# and price points. Refer to the
|
|
1021
1019
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
1022
1020
|
# compare available models.
|
|
1023
1021
|
#
|
|
@@ -1425,6 +1423,30 @@ module OpenAI
|
|
|
1425
1423
|
const: -> { OpenAI::Models::Beta::BetaResponsesClientEvent::ResponseCreate::Model::GPT_6_2_ASTRA_LAW }
|
|
1426
1424
|
)
|
|
1427
1425
|
|
|
1426
|
+
variant(
|
|
1427
|
+
const: -> {
|
|
1428
|
+
OpenAI::Models::Beta::BetaResponsesClientEvent::ResponseCreate::Model::GPT_6_ASTRA_HEALTHCARE
|
|
1429
|
+
}
|
|
1430
|
+
)
|
|
1431
|
+
|
|
1432
|
+
variant(
|
|
1433
|
+
const: -> {
|
|
1434
|
+
OpenAI::Models::Beta::BetaResponsesClientEvent::ResponseCreate::Model::GPT_6_1_SOL_HEALTHCARE
|
|
1435
|
+
}
|
|
1436
|
+
)
|
|
1437
|
+
|
|
1438
|
+
variant(
|
|
1439
|
+
const: -> {
|
|
1440
|
+
OpenAI::Models::Beta::BetaResponsesClientEvent::ResponseCreate::Model::GPT_6_2_ASTRA_HEALTHCARE
|
|
1441
|
+
}
|
|
1442
|
+
)
|
|
1443
|
+
|
|
1444
|
+
variant(
|
|
1445
|
+
const: -> {
|
|
1446
|
+
OpenAI::Models::Beta::BetaResponsesClientEvent::ResponseCreate::Model::GPT_6_2_SOL_HEALTHCARE
|
|
1447
|
+
}
|
|
1448
|
+
)
|
|
1449
|
+
|
|
1428
1450
|
variant String
|
|
1429
1451
|
|
|
1430
1452
|
# @!method self.variants
|
|
@@ -1800,6 +1822,10 @@ module OpenAI
|
|
|
1800
1822
|
GPT_ROSALIND_RESEARCH = :"gpt-rosalind-research"
|
|
1801
1823
|
GPT_6_ROSALIND = :"gpt-6-rosalind"
|
|
1802
1824
|
GPT_6_2_ASTRA_LAW = :"gpt-6.2-astra-law"
|
|
1825
|
+
GPT_6_ASTRA_HEALTHCARE = :"gpt-6-astra-healthcare"
|
|
1826
|
+
GPT_6_1_SOL_HEALTHCARE = :"gpt-6.1-sol-healthcare"
|
|
1827
|
+
GPT_6_2_ASTRA_HEALTHCARE = :"gpt-6.2-astra-healthcare"
|
|
1828
|
+
GPT_6_2_SOL_HEALTHCARE = :"gpt-6.2-sol-healthcare"
|
|
1803
1829
|
|
|
1804
1830
|
# @!endgroup
|
|
1805
1831
|
end
|
|
@@ -9,9 +9,9 @@ module OpenAI
|
|
|
9
9
|
include OpenAI::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
11
|
# @!attribute model
|
|
12
|
-
# Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a
|
|
13
|
-
# range of models with different capabilities, performance characteristics,
|
|
14
|
-
# price points. Refer to the
|
|
12
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
13
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
14
|
+
# and price points. Refer to the
|
|
15
15
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
16
16
|
# compare available models.
|
|
17
17
|
#
|
|
@@ -88,6 +88,12 @@ module OpenAI
|
|
|
88
88
|
nil?: true
|
|
89
89
|
)
|
|
90
90
|
|
|
91
|
+
# @!attribute safety_identifier
|
|
92
|
+
# A stable identifier used for safety monitoring and abuse detection.
|
|
93
|
+
#
|
|
94
|
+
# @return [String, nil]
|
|
95
|
+
optional :safety_identifier, String, nil?: true
|
|
96
|
+
|
|
91
97
|
# @!attribute service_tier
|
|
92
98
|
# Specifies the processing type used for serving the request. - If set to 'auto',
|
|
93
99
|
# then the request will be processed with the service tier configured in the
|
|
@@ -114,11 +120,11 @@ module OpenAI
|
|
|
114
120
|
# @return [Array<Symbol, OpenAI::Models::Beta::ResponseCompactParams::Beta>, nil]
|
|
115
121
|
optional :betas, -> { OpenAI::Internal::Type::ArrayOf[enum: OpenAI::Beta::ResponseCompactParams::Beta] }
|
|
116
122
|
|
|
117
|
-
# @!method initialize(model:, image: nil, input: nil, instructions: nil, previous_response_id: nil, prompt_cache_key: nil, prompt_cache_options: nil, prompt_cache_retention: nil, service_tier: nil, betas: nil, request_options: {})
|
|
123
|
+
# @!method initialize(model:, image: nil, input: nil, instructions: nil, previous_response_id: nil, prompt_cache_key: nil, prompt_cache_options: nil, prompt_cache_retention: nil, safety_identifier: nil, service_tier: nil, betas: nil, request_options: {})
|
|
118
124
|
# @param model [Symbol, String, OpenAI::Models::Beta::ResponseCompactParams::Model, nil]
|
|
119
|
-
# Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a
|
|
120
|
-
# range of models with different capabilities, performance characteristics,
|
|
121
|
-
# price points. Refer to the
|
|
125
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
126
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
127
|
+
# and price points. Refer to the
|
|
122
128
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
123
129
|
# compare available models.
|
|
124
130
|
#
|
|
@@ -157,6 +163,9 @@ module OpenAI
|
|
|
157
163
|
# @param prompt_cache_retention [Symbol, OpenAI::Models::Beta::ResponseCompactParams::PromptCacheRetention, nil]
|
|
158
164
|
# How long to retain a prompt cache entry created by this request.
|
|
159
165
|
#
|
|
166
|
+
# @param safety_identifier [String, nil]
|
|
167
|
+
# A stable identifier used for safety monitoring and abuse detection.
|
|
168
|
+
#
|
|
160
169
|
# @param service_tier [Symbol, OpenAI::Models::Beta::ResponseCompactParams::ServiceTier, nil]
|
|
161
170
|
# Specifies the processing type used for serving the request. - If set to 'auto',
|
|
162
171
|
# then the request will be processed with the service tier configured in the
|
|
@@ -179,9 +188,9 @@ module OpenAI
|
|
|
179
188
|
#
|
|
180
189
|
# @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}]
|
|
181
190
|
|
|
182
|
-
# Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a
|
|
183
|
-
# range of models with different capabilities, performance characteristics,
|
|
184
|
-
# price points. Refer to the
|
|
191
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
192
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
193
|
+
# and price points. Refer to the
|
|
185
194
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
186
195
|
# compare available models.
|
|
187
196
|
module Model
|
|
@@ -415,6 +424,14 @@ module OpenAI
|
|
|
415
424
|
|
|
416
425
|
variant const: -> { OpenAI::Models::Beta::ResponseCompactParams::Model::GPT_6_2_ASTRA_LAW }
|
|
417
426
|
|
|
427
|
+
variant const: -> { OpenAI::Models::Beta::ResponseCompactParams::Model::GPT_6_ASTRA_HEALTHCARE }
|
|
428
|
+
|
|
429
|
+
variant const: -> { OpenAI::Models::Beta::ResponseCompactParams::Model::GPT_6_1_SOL_HEALTHCARE }
|
|
430
|
+
|
|
431
|
+
variant const: -> { OpenAI::Models::Beta::ResponseCompactParams::Model::GPT_6_2_ASTRA_HEALTHCARE }
|
|
432
|
+
|
|
433
|
+
variant const: -> { OpenAI::Models::Beta::ResponseCompactParams::Model::GPT_6_2_SOL_HEALTHCARE }
|
|
434
|
+
|
|
418
435
|
variant String
|
|
419
436
|
|
|
420
437
|
# @!method self.variants
|
|
@@ -788,6 +805,10 @@ module OpenAI
|
|
|
788
805
|
GPT_ROSALIND_RESEARCH = :"gpt-rosalind-research"
|
|
789
806
|
GPT_6_ROSALIND = :"gpt-6-rosalind"
|
|
790
807
|
GPT_6_2_ASTRA_LAW = :"gpt-6.2-astra-law"
|
|
808
|
+
GPT_6_ASTRA_HEALTHCARE = :"gpt-6-astra-healthcare"
|
|
809
|
+
GPT_6_1_SOL_HEALTHCARE = :"gpt-6.1-sol-healthcare"
|
|
810
|
+
GPT_6_2_ASTRA_HEALTHCARE = :"gpt-6.2-astra-healthcare"
|
|
811
|
+
GPT_6_2_SOL_HEALTHCARE = :"gpt-6.2-sol-healthcare"
|
|
791
812
|
|
|
792
813
|
# @!endgroup
|
|
793
814
|
end
|
|
@@ -128,8 +128,7 @@ module OpenAI
|
|
|
128
128
|
|
|
129
129
|
# @!attribute metadata
|
|
130
130
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
131
|
-
# for storing additional information about the object in a structured format
|
|
132
|
-
# querying for objects via API or the dashboard.
|
|
131
|
+
# for storing additional information about the object in a structured format.
|
|
133
132
|
#
|
|
134
133
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
135
134
|
# a maximum length of 512 characters.
|
|
@@ -138,9 +137,9 @@ module OpenAI
|
|
|
138
137
|
optional :metadata, OpenAI::Internal::Type::HashOf[String], nil?: true
|
|
139
138
|
|
|
140
139
|
# @!attribute model
|
|
141
|
-
# Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a
|
|
142
|
-
# range of models with different capabilities, performance characteristics,
|
|
143
|
-
# price points. Refer to the
|
|
140
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
141
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
142
|
+
# and price points. Refer to the
|
|
144
143
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
145
144
|
# compare available models.
|
|
146
145
|
#
|
|
@@ -474,16 +473,15 @@ module OpenAI
|
|
|
474
473
|
#
|
|
475
474
|
# @param metadata [Hash{Symbol=>String}, nil]
|
|
476
475
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
477
|
-
# for storing additional information about the object in a structured format
|
|
478
|
-
# querying for objects via API or the dashboard.
|
|
476
|
+
# for storing additional information about the object in a structured format.
|
|
479
477
|
#
|
|
480
478
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
481
479
|
# a maximum length of 512 characters.
|
|
482
480
|
#
|
|
483
481
|
# @param model [Symbol, String, OpenAI::Models::Beta::ResponseCreateParams::Model]
|
|
484
|
-
# Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a
|
|
485
|
-
# range of models with different capabilities, performance characteristics,
|
|
486
|
-
# price points. Refer to the
|
|
482
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
483
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
484
|
+
# and price points. Refer to the
|
|
487
485
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
488
486
|
# compare available models.
|
|
489
487
|
#
|
|
@@ -862,9 +860,9 @@ module OpenAI
|
|
|
862
860
|
# @return [Array(String, Array<OpenAI::Models::Beta::BetaEasyInputMessage, OpenAI::Models::Beta::BetaResponseInputItem::Message, OpenAI::Models::Beta::BetaResponseOutputMessage, OpenAI::Models::Beta::BetaResponseFileSearchToolCall, OpenAI::Models::Beta::BetaResponseComputerToolCall, OpenAI::Models::Beta::BetaResponseInputItem::ComputerCallOutput, OpenAI::Models::Beta::BetaResponseFunctionWebSearch, OpenAI::Models::Beta::BetaResponseFunctionToolCall, OpenAI::Models::Beta::BetaResponseInputItem::FunctionCallOutput, OpenAI::Models::Beta::BetaResponseInputItem::AgentMessage, OpenAI::Models::Beta::BetaResponseInputItem::MultiAgentCall, OpenAI::Models::Beta::BetaResponseInputItem::MultiAgentCallOutput, OpenAI::Models::Beta::BetaResponseInputItem::ToolSearchCall, OpenAI::Models::Beta::BetaResponseToolSearchOutputItemParam, OpenAI::Models::Beta::BetaResponseInputItem::AdditionalTools, OpenAI::Models::Beta::BetaResponseConfigurationUpdateItemParam, OpenAI::Models::Beta::BetaResponseReasoningItem, OpenAI::Models::Beta::BetaResponseCompactionItemParam, OpenAI::Models::Beta::BetaResponseInputItem::ImageGenerationCall, OpenAI::Models::Beta::BetaResponseCodeInterpreterToolCall, OpenAI::Models::Beta::BetaResponseInputItem::LocalShellCall, OpenAI::Models::Beta::BetaResponseInputItem::LocalShellCallOutput, OpenAI::Models::Beta::BetaResponseInputItem::ShellCall, OpenAI::Models::Beta::BetaResponseInputItem::ShellCallOutput, OpenAI::Models::Beta::BetaResponseInputItem::ApplyPatchCall, OpenAI::Models::Beta::BetaResponseInputItem::ApplyPatchCallOutput, OpenAI::Models::Beta::BetaResponseInputItem::McpListTools, OpenAI::Models::Beta::BetaResponseInputItem::McpApprovalRequest, OpenAI::Models::Beta::BetaResponseInputItem::McpApprovalResponse, OpenAI::Models::Beta::BetaResponseInputItem::McpCall, OpenAI::Models::Beta::BetaResponseCustomToolCallOutput, OpenAI::Models::Beta::BetaResponseCustomToolCall, OpenAI::Models::Beta::BetaResponseInputItem::CompactionTrigger, OpenAI::Models::Beta::BetaResponseInputItem::ItemReference, OpenAI::Models::Beta::BetaResponseInputItem::Program, OpenAI::Models::Beta::BetaResponseInputItem::ProgramOutput>)]
|
|
863
861
|
end
|
|
864
862
|
|
|
865
|
-
# Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a
|
|
866
|
-
# range of models with different capabilities, performance characteristics,
|
|
867
|
-
# price points. Refer to the
|
|
863
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
864
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
865
|
+
# and price points. Refer to the
|
|
868
866
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
869
867
|
# compare available models.
|
|
870
868
|
module Model
|
|
@@ -1096,6 +1094,14 @@ module OpenAI
|
|
|
1096
1094
|
|
|
1097
1095
|
variant const: -> { OpenAI::Models::Beta::ResponseCreateParams::Model::GPT_6_2_ASTRA_LAW }
|
|
1098
1096
|
|
|
1097
|
+
variant const: -> { OpenAI::Models::Beta::ResponseCreateParams::Model::GPT_6_ASTRA_HEALTHCARE }
|
|
1098
|
+
|
|
1099
|
+
variant const: -> { OpenAI::Models::Beta::ResponseCreateParams::Model::GPT_6_1_SOL_HEALTHCARE }
|
|
1100
|
+
|
|
1101
|
+
variant const: -> { OpenAI::Models::Beta::ResponseCreateParams::Model::GPT_6_2_ASTRA_HEALTHCARE }
|
|
1102
|
+
|
|
1103
|
+
variant const: -> { OpenAI::Models::Beta::ResponseCreateParams::Model::GPT_6_2_SOL_HEALTHCARE }
|
|
1104
|
+
|
|
1099
1105
|
variant String
|
|
1100
1106
|
|
|
1101
1107
|
# @!method self.variants
|
|
@@ -1469,6 +1475,10 @@ module OpenAI
|
|
|
1469
1475
|
GPT_ROSALIND_RESEARCH = :"gpt-rosalind-research"
|
|
1470
1476
|
GPT_6_ROSALIND = :"gpt-6-rosalind"
|
|
1471
1477
|
GPT_6_2_ASTRA_LAW = :"gpt-6.2-astra-law"
|
|
1478
|
+
GPT_6_ASTRA_HEALTHCARE = :"gpt-6-astra-healthcare"
|
|
1479
|
+
GPT_6_1_SOL_HEALTHCARE = :"gpt-6.1-sol-healthcare"
|
|
1480
|
+
GPT_6_2_ASTRA_HEALTHCARE = :"gpt-6.2-astra-healthcare"
|
|
1481
|
+
GPT_6_2_SOL_HEALTHCARE = :"gpt-6.2-sol-healthcare"
|
|
1472
1482
|
|
|
1473
1483
|
# @!endgroup
|
|
1474
1484
|
end
|
|
@@ -40,8 +40,7 @@ module OpenAI
|
|
|
40
40
|
|
|
41
41
|
# @!attribute metadata
|
|
42
42
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
43
|
-
# for storing additional information about the object in a structured format
|
|
44
|
-
# querying for objects via API or the dashboard.
|
|
43
|
+
# for storing additional information about the object in a structured format.
|
|
45
44
|
#
|
|
46
45
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
47
46
|
# a maximum length of 512 characters.
|
|
@@ -119,8 +118,7 @@ module OpenAI
|
|
|
119
118
|
#
|
|
120
119
|
# @param metadata [Hash{Symbol=>String}, nil]
|
|
121
120
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
122
|
-
# for storing additional information about the object in a structured format
|
|
123
|
-
# querying for objects via API or the dashboard.
|
|
121
|
+
# for storing additional information about the object in a structured format.
|
|
124
122
|
#
|
|
125
123
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
126
124
|
# a maximum length of 512 characters.
|
|
@@ -25,9 +25,9 @@ module OpenAI
|
|
|
25
25
|
)
|
|
26
26
|
|
|
27
27
|
# @!attribute model
|
|
28
|
-
# Model ID used to generate the response, like `gpt-6-astra
|
|
29
|
-
#
|
|
30
|
-
#
|
|
28
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
29
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
30
|
+
# and price points. Refer to the
|
|
31
31
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
32
32
|
# compare available models.
|
|
33
33
|
#
|
|
@@ -129,8 +129,7 @@ module OpenAI
|
|
|
129
129
|
|
|
130
130
|
# @!attribute metadata
|
|
131
131
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
132
|
-
# for storing additional information about the object in a structured format
|
|
133
|
-
# querying for objects via API or the dashboard.
|
|
132
|
+
# for storing additional information about the object in a structured format.
|
|
134
133
|
#
|
|
135
134
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
136
135
|
# a maximum length of 512 characters.
|
|
@@ -325,7 +324,7 @@ module OpenAI
|
|
|
325
324
|
optional :service_tier, enum: -> { OpenAI::Chat::CompletionCreateParams::ServiceTier }, nil?: true
|
|
326
325
|
|
|
327
326
|
# @!attribute stop
|
|
328
|
-
# Not supported with
|
|
327
|
+
# Not supported with reasoning models `o3` and `o4-mini`.
|
|
329
328
|
#
|
|
330
329
|
# Up to 4 sequences where the API will stop generating further tokens. The
|
|
331
330
|
# returned text will not contain the stop sequence.
|
|
@@ -447,9 +446,9 @@ module OpenAI
|
|
|
447
446
|
# [audio](https://developers.openai.com/api/docs/guides/audio).
|
|
448
447
|
#
|
|
449
448
|
# @param model [String, Symbol, OpenAI::Models::ChatModel]
|
|
450
|
-
# Model ID used to generate the response, like `gpt-6-astra
|
|
451
|
-
#
|
|
452
|
-
#
|
|
449
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
450
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
451
|
+
# and price points. Refer to the
|
|
453
452
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
454
453
|
# compare available models.
|
|
455
454
|
#
|
|
@@ -515,8 +514,7 @@ module OpenAI
|
|
|
515
514
|
#
|
|
516
515
|
# @param metadata [Hash{Symbol=>String}, nil]
|
|
517
516
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
518
|
-
# for storing additional information about the object in a structured format
|
|
519
|
-
# querying for objects via API or the dashboard.
|
|
517
|
+
# for storing additional information about the object in a structured format.
|
|
520
518
|
#
|
|
521
519
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
522
520
|
# a maximum length of 512 characters.
|
|
@@ -654,7 +652,7 @@ module OpenAI
|
|
|
654
652
|
# parameter.
|
|
655
653
|
#
|
|
656
654
|
# @param stop [String, Array<String>, nil]
|
|
657
|
-
# Not supported with
|
|
655
|
+
# Not supported with reasoning models `o3` and `o4-mini`.
|
|
658
656
|
#
|
|
659
657
|
# Up to 4 sequences where the API will stop generating further tokens. The
|
|
660
658
|
# returned text will not contain the stop sequence.
|
|
@@ -726,9 +724,9 @@ module OpenAI
|
|
|
726
724
|
#
|
|
727
725
|
# @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}]
|
|
728
726
|
|
|
729
|
-
# Model ID used to generate the response, like `gpt-6-astra
|
|
730
|
-
#
|
|
731
|
-
#
|
|
727
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
728
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
729
|
+
# and price points. Refer to the
|
|
732
730
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
733
731
|
# compare available models.
|
|
734
732
|
module Model
|
|
@@ -736,7 +734,7 @@ module OpenAI
|
|
|
736
734
|
|
|
737
735
|
variant String
|
|
738
736
|
|
|
739
|
-
# Model ID used to generate the response, like `gpt-6-astra
|
|
737
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI
|
|
740
738
|
# offers a wide range of models with different capabilities, performance
|
|
741
739
|
# characteristics, and price points. Refer to the [model guide](https://developers.openai.com/api/docs/models)
|
|
742
740
|
# to browse and compare available models.
|
|
@@ -1130,7 +1128,7 @@ module OpenAI
|
|
|
1130
1128
|
# @return [Array<Symbol>]
|
|
1131
1129
|
end
|
|
1132
1130
|
|
|
1133
|
-
# Not supported with
|
|
1131
|
+
# Not supported with reasoning models `o3` and `o4-mini`.
|
|
1134
1132
|
#
|
|
1135
1133
|
# Up to 4 sequences where the API will stop generating further tokens. The
|
|
1136
1134
|
# returned text will not contain the stop sequence.
|
|
@@ -15,8 +15,7 @@ module OpenAI
|
|
|
15
15
|
|
|
16
16
|
# @!attribute metadata
|
|
17
17
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
18
|
-
# for storing additional information about the object in a structured format
|
|
19
|
-
# querying for objects via API or the dashboard.
|
|
18
|
+
# for storing additional information about the object in a structured format.
|
|
20
19
|
#
|
|
21
20
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
22
21
|
# a maximum length of 512 characters.
|
|
@@ -29,8 +28,7 @@ module OpenAI
|
|
|
29
28
|
#
|
|
30
29
|
# @param metadata [Hash{Symbol=>String}, nil]
|
|
31
30
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
32
|
-
# for storing additional information about the object in a structured format
|
|
33
|
-
# querying for objects via API or the dashboard.
|
|
31
|
+
# for storing additional information about the object in a structured format.
|
|
34
32
|
#
|
|
35
33
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
36
34
|
# a maximum length of 512 characters.
|
|
@@ -134,7 +134,7 @@ module OpenAI
|
|
|
134
134
|
optional :seed, Integer, nil?: true
|
|
135
135
|
|
|
136
136
|
# @!attribute stop
|
|
137
|
-
# Not supported with
|
|
137
|
+
# Not supported with reasoning models `o3` and `o4-mini`.
|
|
138
138
|
#
|
|
139
139
|
# Up to 4 sequences where the API will stop generating further tokens. The
|
|
140
140
|
# returned text will not contain the stop sequence.
|
|
@@ -277,7 +277,7 @@ module OpenAI
|
|
|
277
277
|
# response parameter to monitor changes in the backend.
|
|
278
278
|
#
|
|
279
279
|
# @param stop [String, Array<String>, nil]
|
|
280
|
-
# Not supported with
|
|
280
|
+
# Not supported with reasoning models `o3` and `o4-mini`.
|
|
281
281
|
#
|
|
282
282
|
# Up to 4 sequences where the API will stop generating further tokens. The
|
|
283
283
|
# returned text will not contain the stop sequence.
|
|
@@ -373,7 +373,7 @@ module OpenAI
|
|
|
373
373
|
ArrayOfToken2DArray = OpenAI::Internal::Type::ArrayOf[OpenAI::Internal::Type::ArrayOf[Integer]]
|
|
374
374
|
end
|
|
375
375
|
|
|
376
|
-
# Not supported with
|
|
376
|
+
# Not supported with reasoning models `o3` and `o4-mini`.
|
|
377
377
|
#
|
|
378
378
|
# Up to 4 sequences where the API will stop generating further tokens. The
|
|
379
379
|
# returned text will not contain the stop sequence.
|
|
@@ -21,8 +21,7 @@ module OpenAI
|
|
|
21
21
|
|
|
22
22
|
# @!attribute metadata
|
|
23
23
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
24
|
-
# for storing additional information about the object in a structured format
|
|
25
|
-
# querying for objects via API or the dashboard.
|
|
24
|
+
# for storing additional information about the object in a structured format.
|
|
26
25
|
#
|
|
27
26
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
28
27
|
# a maximum length of 512 characters.
|
|
@@ -30,19 +29,27 @@ module OpenAI
|
|
|
30
29
|
# @return [Hash{Symbol=>String}, nil]
|
|
31
30
|
optional :metadata, OpenAI::Internal::Type::HashOf[String], nil?: true
|
|
32
31
|
|
|
33
|
-
# @!
|
|
32
|
+
# @!attribute safety_identifier
|
|
33
|
+
# A stable identifier used for safety monitoring and abuse detection.
|
|
34
|
+
#
|
|
35
|
+
# @return [String, nil]
|
|
36
|
+
optional :safety_identifier, String, nil?: true
|
|
37
|
+
|
|
38
|
+
# @!method initialize(items: nil, metadata: nil, safety_identifier: nil, request_options: {})
|
|
34
39
|
# @param items [Array<OpenAI::Models::Responses::EasyInputMessage, OpenAI::Models::Responses::ResponseInputItem::Message, OpenAI::Models::Responses::ResponseOutputMessage, OpenAI::Models::Responses::ResponseFileSearchToolCall, OpenAI::Models::Responses::ResponseComputerToolCall, OpenAI::Models::Responses::ResponseInputItem::ComputerCallOutput, OpenAI::Models::Responses::ResponseFunctionWebSearch, OpenAI::Models::Responses::ResponseFunctionToolCall, OpenAI::Models::Responses::ResponseInputItem::FunctionCallOutput, OpenAI::Models::Responses::ResponseInputItem::ToolSearchCall, OpenAI::Models::Responses::ResponseToolSearchOutputItemParam, OpenAI::Models::Responses::ResponseInputItem::AdditionalTools, OpenAI::Models::Responses::ResponseConfigurationUpdateItemParam, OpenAI::Models::Responses::ResponseReasoningItem, OpenAI::Models::Responses::ResponseCompactionItemParam, OpenAI::Models::Responses::ResponseInputItem::ImageGenerationCall, OpenAI::Models::Responses::ResponseCodeInterpreterToolCall, OpenAI::Models::Responses::ResponseInputItem::LocalShellCall, OpenAI::Models::Responses::ResponseInputItem::LocalShellCallOutput, OpenAI::Models::Responses::ResponseInputItem::ShellCall, OpenAI::Models::Responses::ResponseInputItem::ShellCallOutput, OpenAI::Models::Responses::ResponseInputItem::ApplyPatchCall, OpenAI::Models::Responses::ResponseInputItem::ApplyPatchCallOutput, OpenAI::Models::Responses::ResponseInputItem::McpListTools, OpenAI::Models::Responses::ResponseInputItem::McpApprovalRequest, OpenAI::Models::Responses::ResponseInputItem::McpApprovalResponse, OpenAI::Models::Responses::ResponseInputItem::McpCall, OpenAI::Models::Responses::ResponseCustomToolCallOutput, OpenAI::Models::Responses::ResponseCustomToolCall, OpenAI::Models::Responses::ResponseInputItem::CompactionTrigger, OpenAI::Models::Responses::ResponseInputItem::ItemReference, OpenAI::Models::Responses::ResponseInputItem::Program, OpenAI::Models::Responses::ResponseInputItem::ProgramOutput>, nil]
|
|
35
40
|
# Initial items to include in the conversation context. You may add up to 20 items
|
|
36
41
|
# at a time.
|
|
37
42
|
#
|
|
38
43
|
# @param metadata [Hash{Symbol=>String}, nil]
|
|
39
44
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
40
|
-
# for storing additional information about the object in a structured format
|
|
41
|
-
# querying for objects via API or the dashboard.
|
|
45
|
+
# for storing additional information about the object in a structured format.
|
|
42
46
|
#
|
|
43
47
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
44
48
|
# a maximum length of 512 characters.
|
|
45
49
|
#
|
|
50
|
+
# @param safety_identifier [String, nil]
|
|
51
|
+
# A stable identifier used for safety monitoring and abuse detection.
|
|
52
|
+
#
|
|
46
53
|
# @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}]
|
|
47
54
|
end
|
|
48
55
|
end
|
|
@@ -28,8 +28,7 @@ module OpenAI
|
|
|
28
28
|
|
|
29
29
|
# @!attribute metadata
|
|
30
30
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
31
|
-
# for storing additional information about the object in a structured format
|
|
32
|
-
# querying for objects via API or the dashboard.
|
|
31
|
+
# for storing additional information about the object in a structured format.
|
|
33
32
|
#
|
|
34
33
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
35
34
|
# a maximum length of 512 characters.
|
|
@@ -56,8 +55,7 @@ module OpenAI
|
|
|
56
55
|
#
|
|
57
56
|
# @param metadata [Hash{Symbol=>String}, nil]
|
|
58
57
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
59
|
-
# for storing additional information about the object in a structured format
|
|
60
|
-
# querying for objects via API or the dashboard.
|
|
58
|
+
# for storing additional information about the object in a structured format.
|
|
61
59
|
#
|
|
62
60
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
63
61
|
# a maximum length of 512 characters.
|
|
@@ -24,8 +24,7 @@ module OpenAI
|
|
|
24
24
|
|
|
25
25
|
# @!attribute metadata
|
|
26
26
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
27
|
-
# for storing additional information about the object in a structured format
|
|
28
|
-
# querying for objects via API or the dashboard.
|
|
27
|
+
# for storing additional information about the object in a structured format.
|
|
29
28
|
#
|
|
30
29
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
31
30
|
# a maximum length of 512 characters.
|
|
@@ -60,7 +59,7 @@ module OpenAI
|
|
|
60
59
|
#
|
|
61
60
|
# - Improve the quality of my chatbot
|
|
62
61
|
# - See how well my chatbot handles customer support
|
|
63
|
-
# -
|
|
62
|
+
# - Compare how different models perform on the same task
|
|
64
63
|
#
|
|
65
64
|
# @param id [String]
|
|
66
65
|
# Unique identifier for the evaluation.
|
|
@@ -73,8 +72,7 @@ module OpenAI
|
|
|
73
72
|
#
|
|
74
73
|
# @param metadata [Hash{Symbol=>String}, nil]
|
|
75
74
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
76
|
-
# for storing additional information about the object in a structured format
|
|
77
|
-
# querying for objects via API or the dashboard.
|
|
75
|
+
# for storing additional information about the object in a structured format.
|
|
78
76
|
#
|
|
79
77
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
80
78
|
# a maximum length of 512 characters.
|
|
@@ -127,8 +125,7 @@ module OpenAI
|
|
|
127
125
|
|
|
128
126
|
# @!attribute metadata
|
|
129
127
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
130
|
-
# for storing additional information about the object in a structured format
|
|
131
|
-
# querying for objects via API or the dashboard.
|
|
128
|
+
# for storing additional information about the object in a structured format.
|
|
132
129
|
#
|
|
133
130
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
134
131
|
# a maximum length of 512 characters.
|
|
@@ -149,8 +146,7 @@ module OpenAI
|
|
|
149
146
|
#
|
|
150
147
|
# @param metadata [Hash{Symbol=>String}, nil]
|
|
151
148
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
152
|
-
# for storing additional information about the object in a structured format
|
|
153
|
-
# querying for objects via API or the dashboard.
|
|
149
|
+
# for storing additional information about the object in a structured format.
|
|
154
150
|
#
|
|
155
151
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
156
152
|
# a maximum length of 512 characters.
|
|
@@ -24,8 +24,7 @@ module OpenAI
|
|
|
24
24
|
|
|
25
25
|
# @!attribute metadata
|
|
26
26
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
27
|
-
# for storing additional information about the object in a structured format
|
|
28
|
-
# querying for objects via API or the dashboard.
|
|
27
|
+
# for storing additional information about the object in a structured format.
|
|
29
28
|
#
|
|
30
29
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
31
30
|
# a maximum length of 512 characters.
|
|
@@ -60,7 +59,7 @@ module OpenAI
|
|
|
60
59
|
#
|
|
61
60
|
# - Improve the quality of my chatbot
|
|
62
61
|
# - See how well my chatbot handles customer support
|
|
63
|
-
# -
|
|
62
|
+
# - Compare how different models perform on the same task
|
|
64
63
|
#
|
|
65
64
|
# @param id [String]
|
|
66
65
|
# Unique identifier for the evaluation.
|
|
@@ -73,8 +72,7 @@ module OpenAI
|
|
|
73
72
|
#
|
|
74
73
|
# @param metadata [Hash{Symbol=>String}, nil]
|
|
75
74
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
76
|
-
# for storing additional information about the object in a structured format
|
|
77
|
-
# querying for objects via API or the dashboard.
|
|
75
|
+
# for storing additional information about the object in a structured format.
|
|
78
76
|
#
|
|
79
77
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
80
78
|
# a maximum length of 512 characters.
|
|
@@ -127,8 +125,7 @@ module OpenAI
|
|
|
127
125
|
|
|
128
126
|
# @!attribute metadata
|
|
129
127
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
130
|
-
# for storing additional information about the object in a structured format
|
|
131
|
-
# querying for objects via API or the dashboard.
|
|
128
|
+
# for storing additional information about the object in a structured format.
|
|
132
129
|
#
|
|
133
130
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
134
131
|
# a maximum length of 512 characters.
|
|
@@ -149,8 +146,7 @@ module OpenAI
|
|
|
149
146
|
#
|
|
150
147
|
# @param metadata [Hash{Symbol=>String}, nil]
|
|
151
148
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
152
|
-
# for storing additional information about the object in a structured format
|
|
153
|
-
# querying for objects via API or the dashboard.
|
|
149
|
+
# for storing additional information about the object in a structured format.
|
|
154
150
|
#
|
|
155
151
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
156
152
|
# a maximum length of 512 characters.
|