openai 1.2.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 +18 -0
- data/README.md +1 -1
- 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/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 +11 -13
- data/lib/openai/models/beta/beta_responses_client_event.rb +11 -13
- data/lib/openai/models/beta/response_compact_params.rb +19 -10
- data/lib/openai/models/beta/response_create_params.rb +11 -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 +19 -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/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/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 +11 -13
- data/rbi/openai/models/beta/beta_responses_client_event.rbi +11 -13
- data/rbi/openai/models/beta/response_compact_params.rbi +19 -9
- data/rbi/openai/models/beta/response_create_params.rbi +11 -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 +19 -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/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/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 +8 -10
- data/sig/openai/models/beta/beta_responses_client_event.rbs +11 -13
- data/sig/openai/models/beta/response_compact_params.rbs +14 -6
- data/sig/openai/models/beta/response_create_params.rbs +11 -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 +14 -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/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
|
@@ -37,8 +37,7 @@ module OpenAI
|
|
|
37
37
|
|
|
38
38
|
# @!attribute metadata
|
|
39
39
|
# 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.
|
|
40
|
+
# for storing additional information about the object in a structured format.
|
|
42
41
|
#
|
|
43
42
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
44
43
|
# a maximum length of 512 characters.
|
|
@@ -120,8 +119,7 @@ module OpenAI
|
|
|
120
119
|
#
|
|
121
120
|
# @param metadata [Hash{Symbol=>String}, nil]
|
|
122
121
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
123
|
-
# for storing additional information about the object in a structured format
|
|
124
|
-
# querying for objects via API or the dashboard.
|
|
122
|
+
# for storing additional information about the object in a structured format.
|
|
125
123
|
#
|
|
126
124
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
127
125
|
# a maximum length of 512 characters.
|
|
@@ -193,7 +191,7 @@ module OpenAI
|
|
|
193
191
|
)
|
|
194
192
|
|
|
195
193
|
# @!attribute model
|
|
196
|
-
# The
|
|
194
|
+
# The model to use to sample outputs with the Responses API.
|
|
197
195
|
#
|
|
198
196
|
# @return [String, nil]
|
|
199
197
|
optional :model, String
|
|
@@ -219,7 +217,7 @@ module OpenAI
|
|
|
219
217
|
# namespace.
|
|
220
218
|
#
|
|
221
219
|
# @param model [String]
|
|
222
|
-
# The
|
|
220
|
+
# The model to use to sample outputs with the Responses API.
|
|
223
221
|
#
|
|
224
222
|
# @param sampling_params [OpenAI::Models::Evals::RunCancelResponse::DataSource::Responses::SamplingParams]
|
|
225
223
|
#
|
|
@@ -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.
|
|
@@ -44,8 +43,7 @@ module OpenAI
|
|
|
44
43
|
#
|
|
45
44
|
# @param metadata [Hash{Symbol=>String}, nil]
|
|
46
45
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
47
|
-
# for storing additional information about the object in a structured format
|
|
48
|
-
# querying for objects via API or the dashboard.
|
|
46
|
+
# for storing additional information about the object in a structured format.
|
|
49
47
|
#
|
|
50
48
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
51
49
|
# a maximum length of 512 characters.
|
|
@@ -100,7 +98,7 @@ module OpenAI
|
|
|
100
98
|
)
|
|
101
99
|
|
|
102
100
|
# @!attribute model
|
|
103
|
-
# The
|
|
101
|
+
# The model to use to sample outputs with the Responses API.
|
|
104
102
|
#
|
|
105
103
|
# @return [String, nil]
|
|
106
104
|
optional :model, String
|
|
@@ -129,7 +127,7 @@ module OpenAI
|
|
|
129
127
|
# namespace.
|
|
130
128
|
#
|
|
131
129
|
# @param model [String]
|
|
132
|
-
# The
|
|
130
|
+
# The model to use to sample outputs with the Responses API.
|
|
133
131
|
#
|
|
134
132
|
# @param sampling_params [OpenAI::Models::Evals::RunCreateParams::DataSource::CreateEvalResponsesRunDataSource::SamplingParams]
|
|
135
133
|
|
|
@@ -37,8 +37,7 @@ module OpenAI
|
|
|
37
37
|
|
|
38
38
|
# @!attribute metadata
|
|
39
39
|
# 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.
|
|
40
|
+
# for storing additional information about the object in a structured format.
|
|
42
41
|
#
|
|
43
42
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
44
43
|
# a maximum length of 512 characters.
|
|
@@ -120,8 +119,7 @@ module OpenAI
|
|
|
120
119
|
#
|
|
121
120
|
# @param metadata [Hash{Symbol=>String}, nil]
|
|
122
121
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
123
|
-
# for storing additional information about the object in a structured format
|
|
124
|
-
# querying for objects via API or the dashboard.
|
|
122
|
+
# for storing additional information about the object in a structured format.
|
|
125
123
|
#
|
|
126
124
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
127
125
|
# a maximum length of 512 characters.
|
|
@@ -193,7 +191,7 @@ module OpenAI
|
|
|
193
191
|
)
|
|
194
192
|
|
|
195
193
|
# @!attribute model
|
|
196
|
-
# The
|
|
194
|
+
# The model to use to sample outputs with the Responses API.
|
|
197
195
|
#
|
|
198
196
|
# @return [String, nil]
|
|
199
197
|
optional :model, String
|
|
@@ -219,7 +217,7 @@ module OpenAI
|
|
|
219
217
|
# namespace.
|
|
220
218
|
#
|
|
221
219
|
# @param model [String]
|
|
222
|
-
# The
|
|
220
|
+
# The model to use to sample outputs with the Responses API.
|
|
223
221
|
#
|
|
224
222
|
# @param sampling_params [OpenAI::Models::Evals::RunCreateResponse::DataSource::Responses::SamplingParams]
|
|
225
223
|
#
|
|
@@ -37,8 +37,7 @@ module OpenAI
|
|
|
37
37
|
|
|
38
38
|
# @!attribute metadata
|
|
39
39
|
# 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.
|
|
40
|
+
# for storing additional information about the object in a structured format.
|
|
42
41
|
#
|
|
43
42
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
44
43
|
# a maximum length of 512 characters.
|
|
@@ -120,8 +119,7 @@ module OpenAI
|
|
|
120
119
|
#
|
|
121
120
|
# @param metadata [Hash{Symbol=>String}, nil]
|
|
122
121
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
123
|
-
# for storing additional information about the object in a structured format
|
|
124
|
-
# querying for objects via API or the dashboard.
|
|
122
|
+
# for storing additional information about the object in a structured format.
|
|
125
123
|
#
|
|
126
124
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
127
125
|
# a maximum length of 512 characters.
|
|
@@ -193,7 +191,7 @@ module OpenAI
|
|
|
193
191
|
)
|
|
194
192
|
|
|
195
193
|
# @!attribute model
|
|
196
|
-
# The
|
|
194
|
+
# The model to use to sample outputs with the Responses API.
|
|
197
195
|
#
|
|
198
196
|
# @return [String, nil]
|
|
199
197
|
optional :model, String
|
|
@@ -219,7 +217,7 @@ module OpenAI
|
|
|
219
217
|
# namespace.
|
|
220
218
|
#
|
|
221
219
|
# @param model [String]
|
|
222
|
-
# The
|
|
220
|
+
# The model to use to sample outputs with the Responses API.
|
|
223
221
|
#
|
|
224
222
|
# @param sampling_params [OpenAI::Models::Evals::RunListResponse::DataSource::Responses::SamplingParams]
|
|
225
223
|
#
|
|
@@ -37,8 +37,7 @@ module OpenAI
|
|
|
37
37
|
|
|
38
38
|
# @!attribute metadata
|
|
39
39
|
# 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.
|
|
40
|
+
# for storing additional information about the object in a structured format.
|
|
42
41
|
#
|
|
43
42
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
44
43
|
# a maximum length of 512 characters.
|
|
@@ -120,8 +119,7 @@ module OpenAI
|
|
|
120
119
|
#
|
|
121
120
|
# @param metadata [Hash{Symbol=>String}, nil]
|
|
122
121
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
123
|
-
# for storing additional information about the object in a structured format
|
|
124
|
-
# querying for objects via API or the dashboard.
|
|
122
|
+
# for storing additional information about the object in a structured format.
|
|
125
123
|
#
|
|
126
124
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
127
125
|
# a maximum length of 512 characters.
|
|
@@ -193,7 +191,7 @@ module OpenAI
|
|
|
193
191
|
)
|
|
194
192
|
|
|
195
193
|
# @!attribute model
|
|
196
|
-
# The
|
|
194
|
+
# The model to use to sample outputs with the Responses API.
|
|
197
195
|
#
|
|
198
196
|
# @return [String, nil]
|
|
199
197
|
optional :model, String
|
|
@@ -219,7 +217,7 @@ module OpenAI
|
|
|
219
217
|
# namespace.
|
|
220
218
|
#
|
|
221
219
|
# @param model [String]
|
|
222
|
-
# The
|
|
220
|
+
# The model to use to sample outputs with the Responses API.
|
|
223
221
|
#
|
|
224
222
|
# @param sampling_params [OpenAI::Models::Evals::RunRetrieveResponse::DataSource::Responses::SamplingParams]
|
|
225
223
|
#
|
|
@@ -127,8 +127,7 @@ module OpenAI
|
|
|
127
127
|
|
|
128
128
|
# @!attribute metadata
|
|
129
129
|
# 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.
|
|
130
|
+
# for storing additional information about the object in a structured format.
|
|
132
131
|
#
|
|
133
132
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
134
133
|
# a maximum length of 512 characters.
|
|
@@ -208,8 +207,7 @@ module OpenAI
|
|
|
208
207
|
#
|
|
209
208
|
# @param metadata [Hash{Symbol=>String}, nil]
|
|
210
209
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
211
|
-
# for storing additional information about the object in a structured format
|
|
212
|
-
# querying for objects via API or the dashboard.
|
|
210
|
+
# for storing additional information about the object in a structured format.
|
|
213
211
|
#
|
|
214
212
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
215
213
|
# a maximum length of 512 characters.
|
|
@@ -60,8 +60,7 @@ module OpenAI
|
|
|
60
60
|
|
|
61
61
|
# @!attribute metadata
|
|
62
62
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
63
|
-
# for storing additional information about the object in a structured format
|
|
64
|
-
# querying for objects via API or the dashboard.
|
|
63
|
+
# for storing additional information about the object in a structured format.
|
|
65
64
|
#
|
|
66
65
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
67
66
|
# a maximum length of 512 characters.
|
|
@@ -88,7 +87,7 @@ module OpenAI
|
|
|
88
87
|
# name.
|
|
89
88
|
#
|
|
90
89
|
# For example, a `suffix` of "custom-model-name" would produce a model name like
|
|
91
|
-
# `ft:gpt-
|
|
90
|
+
# `ft:gpt-4.1-mini-2025-04-14:openai:custom-model-name:7p4lURel`.
|
|
92
91
|
#
|
|
93
92
|
# @return [String, nil]
|
|
94
93
|
optional :suffix, String, nil?: true
|
|
@@ -146,8 +145,7 @@ module OpenAI
|
|
|
146
145
|
#
|
|
147
146
|
# @param metadata [Hash{Symbol=>String}, nil]
|
|
148
147
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
149
|
-
# for storing additional information about the object in a structured format
|
|
150
|
-
# querying for objects via API or the dashboard.
|
|
148
|
+
# for storing additional information about the object in a structured format.
|
|
151
149
|
#
|
|
152
150
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
153
151
|
# a maximum length of 512 characters.
|
|
@@ -165,7 +163,7 @@ module OpenAI
|
|
|
165
163
|
# name.
|
|
166
164
|
#
|
|
167
165
|
# For example, a `suffix` of "custom-model-name" would produce a model name like
|
|
168
|
-
# `ft:gpt-
|
|
166
|
+
# `ft:gpt-4.1-mini-2025-04-14:openai:custom-model-name:7p4lURel`.
|
|
169
167
|
#
|
|
170
168
|
# @param validation_file [String, nil]
|
|
171
169
|
# The ID of an uploaded file that contains validation data.
|
|
@@ -191,6 +189,8 @@ module OpenAI
|
|
|
191
189
|
|
|
192
190
|
variant String
|
|
193
191
|
|
|
192
|
+
variant const: -> { OpenAI::Models::FineTuning::JobCreateParams::Model::GPT_4_1_MINI_2025_04_14 }
|
|
193
|
+
|
|
194
194
|
variant const: -> { OpenAI::Models::FineTuning::JobCreateParams::Model::BABBAGE_002 }
|
|
195
195
|
|
|
196
196
|
variant const: -> { OpenAI::Models::FineTuning::JobCreateParams::Model::DAVINCI_002 }
|
|
@@ -208,6 +208,7 @@ module OpenAI
|
|
|
208
208
|
|
|
209
209
|
# @!group
|
|
210
210
|
|
|
211
|
+
GPT_4_1_MINI_2025_04_14 = :"gpt-4.1-mini-2025-04-14"
|
|
211
212
|
BABBAGE_002 = :"babbage-002"
|
|
212
213
|
DAVINCI_002 = :"davinci-002"
|
|
213
214
|
GPT_3_5_TURBO = :"gpt-3.5-turbo"
|
|
@@ -19,7 +19,7 @@ module OpenAI
|
|
|
19
19
|
# Returned when a Live session update is accepted. Contains the resolved session configuration after the update.
|
|
20
20
|
variant :"session.updated", -> { OpenAI::Live::SessionUpdatedEvent }
|
|
21
21
|
|
|
22
|
-
# Sent when speech
|
|
22
|
+
# Sent when speech wakes inference and it is ready for audio in a Live WebRTC session. This occurs on the first wake and after each later wake. Delivered to the sideband and, when permitted by its event settings, the data channel.
|
|
23
23
|
variant :"session.resumed", -> { OpenAI::Live::ForkServerEvent::SessionResumed }
|
|
24
24
|
|
|
25
25
|
# Sent when the idle timeout pauses inference in a Live WebRTC session. The WebRTC connection, sideband, and session ID persist. Delivered to the sideband and, when permitted by its event settings, the data channel.
|
|
@@ -123,9 +123,9 @@ module OpenAI
|
|
|
123
123
|
optional :client_event_id, String
|
|
124
124
|
|
|
125
125
|
# @!method initialize(event_id:, client_event_id: nil, type: :"session.resumed")
|
|
126
|
-
# Sent when speech
|
|
127
|
-
#
|
|
128
|
-
# settings, the data channel.
|
|
126
|
+
# Sent when speech wakes inference and it is ready for audio in a Live WebRTC
|
|
127
|
+
# session. This occurs on the first wake and after each later wake. Delivered to
|
|
128
|
+
# the sideband and, when permitted by its event settings, the data channel.
|
|
129
129
|
#
|
|
130
130
|
# @param event_id [String]
|
|
131
131
|
# The unique ID of the Live server event.
|
|
@@ -34,9 +34,10 @@ module OpenAI
|
|
|
34
34
|
optional :delegation, union: -> { OpenAI::Live::MediaSessionConfig::Delegation }, nil?: true
|
|
35
35
|
|
|
36
36
|
# @!attribute idle_timeout_s
|
|
37
|
-
# Whole seconds of inactivity after which a Live WebRTC session with a
|
|
38
|
-
# policy pauses inference. The connection and conversation history are
|
|
39
|
-
# Omit to keep inference active until the session
|
|
37
|
+
# Whole seconds of inactivity after which a Live WebRTC or SIP session with a
|
|
38
|
+
# speech wake policy pauses inference. The connection and conversation history are
|
|
39
|
+
# retained. Omit to keep inference active after the first wake until the session
|
|
40
|
+
# ends.
|
|
40
41
|
#
|
|
41
42
|
# @return [Integer, nil]
|
|
42
43
|
optional :idle_timeout_s, Integer
|
|
@@ -85,8 +86,7 @@ module OpenAI
|
|
|
85
86
|
optional :triggers, -> { OpenAI::Internal::Type::ArrayOf[OpenAI::Live::DecisionTrigger] }
|
|
86
87
|
|
|
87
88
|
# @!attribute wake_policy
|
|
88
|
-
#
|
|
89
|
-
# microphone speech resumes inference.
|
|
89
|
+
# Starts inference when microphone speech is detected.
|
|
90
90
|
#
|
|
91
91
|
# @return [OpenAI::Models::Live::MediaSessionConfig::WakePolicy, nil]
|
|
92
92
|
optional :wake_policy, -> { OpenAI::Live::MediaSessionConfig::WakePolicy }
|
|
@@ -115,9 +115,10 @@ module OpenAI
|
|
|
115
115
|
# API.
|
|
116
116
|
#
|
|
117
117
|
# @param idle_timeout_s [Integer]
|
|
118
|
-
# Whole seconds of inactivity after which a Live WebRTC session with a
|
|
119
|
-
# policy pauses inference. The connection and conversation history are
|
|
120
|
-
# Omit to keep inference active until the session
|
|
118
|
+
# Whole seconds of inactivity after which a Live WebRTC or SIP session with a
|
|
119
|
+
# speech wake policy pauses inference. The connection and conversation history are
|
|
120
|
+
# retained. Omit to keep inference active after the first wake until the session
|
|
121
|
+
# ends.
|
|
121
122
|
#
|
|
122
123
|
# @param input [Array<OpenAI::Models::Live::InitialItem::Developer, OpenAI::Models::Live::InitialItem::User, OpenAI::Models::Live::InitialItem::Assistant>]
|
|
123
124
|
# Ordered text-only history supplied before startup. Supports developer, user, and
|
|
@@ -148,8 +149,7 @@ module OpenAI
|
|
|
148
149
|
# triggers.
|
|
149
150
|
#
|
|
150
151
|
# @param wake_policy [OpenAI::Models::Live::MediaSessionConfig::WakePolicy]
|
|
151
|
-
#
|
|
152
|
-
# microphone speech resumes inference.
|
|
152
|
+
# Starts inference when microphone speech is detected.
|
|
153
153
|
|
|
154
154
|
# The Live model. Required in the session configuration for every transport; do
|
|
155
155
|
# not pass it as a URL query parameter.
|
|
@@ -342,20 +342,19 @@ module OpenAI
|
|
|
342
342
|
required :type, const: :speech
|
|
343
343
|
|
|
344
344
|
# @!attribute vad_threshold
|
|
345
|
-
# The speech detection threshold for
|
|
346
|
-
# inclusive. Defaults to 0.5. Higher values require stronger evidence of speech.
|
|
345
|
+
# The speech detection threshold for the first wake and each later wake, from 0 to
|
|
346
|
+
# 1 inclusive. Defaults to 0.5. Higher values require stronger evidence of speech.
|
|
347
347
|
# This setting is independent of active turn detection.
|
|
348
348
|
#
|
|
349
349
|
# @return [Float, nil]
|
|
350
350
|
optional :vad_threshold, Float
|
|
351
351
|
|
|
352
352
|
# @!method initialize(vad_threshold: nil, type: :speech)
|
|
353
|
-
#
|
|
354
|
-
# microphone speech resumes inference.
|
|
353
|
+
# Starts inference when microphone speech is detected.
|
|
355
354
|
#
|
|
356
355
|
# @param vad_threshold [Float]
|
|
357
|
-
# The speech detection threshold for
|
|
358
|
-
# inclusive. Defaults to 0.5. Higher values require stronger evidence of speech.
|
|
356
|
+
# The speech detection threshold for the first wake and each later wake, from 0 to
|
|
357
|
+
# 1 inclusive. Defaults to 0.5. Higher values require stronger evidence of speech.
|
|
359
358
|
# This setting is independent of active turn detection.
|
|
360
359
|
#
|
|
361
360
|
# @param type [Symbol, :speech]
|
|
@@ -947,7 +947,10 @@ module OpenAI
|
|
|
947
947
|
)
|
|
948
948
|
|
|
949
949
|
# @!attribute skills
|
|
950
|
-
# An optional list of skills referenced by id or inline data.
|
|
950
|
+
# An optional list of skills referenced by id or inline data. Across all inline
|
|
951
|
+
# skills in this list, decoded ZIP data must total at most 50 MiB and Base64 text
|
|
952
|
+
# must total at most 70,254,592 characters, including line breaks. Skill
|
|
953
|
+
# references do not count toward these limits.
|
|
951
954
|
#
|
|
952
955
|
# @return [Array<OpenAI::Models::Live::ResponsesDelegationConfig::Tool::Shell::Environment::ContainerAuto::Skill::SkillReference, OpenAI::Models::Live::ResponsesDelegationConfig::Tool::Shell::Environment::ContainerAuto::Skill::Inline>, nil]
|
|
953
956
|
optional(
|
|
@@ -971,7 +974,10 @@ module OpenAI
|
|
|
971
974
|
# Network access policy for the container.
|
|
972
975
|
#
|
|
973
976
|
# @param skills [Array<OpenAI::Models::Live::ResponsesDelegationConfig::Tool::Shell::Environment::ContainerAuto::Skill::SkillReference, OpenAI::Models::Live::ResponsesDelegationConfig::Tool::Shell::Environment::ContainerAuto::Skill::Inline>, nil]
|
|
974
|
-
# An optional list of skills referenced by id or inline data.
|
|
977
|
+
# An optional list of skills referenced by id or inline data. Across all inline
|
|
978
|
+
# skills in this list, decoded ZIP data must total at most 50 MiB and Base64 text
|
|
979
|
+
# must total at most 70,254,592 characters, including line breaks. Skill
|
|
980
|
+
# references do not count toward these limits.
|
|
975
981
|
#
|
|
976
982
|
# @param type [Symbol, :container_auto]
|
|
977
983
|
# Automatically creates a container for this request
|
|
@@ -957,7 +957,10 @@ module OpenAI
|
|
|
957
957
|
)
|
|
958
958
|
|
|
959
959
|
# @!attribute skills
|
|
960
|
-
# An optional list of skills referenced by id or inline data.
|
|
960
|
+
# An optional list of skills referenced by id or inline data. Across all inline
|
|
961
|
+
# skills in this list, decoded ZIP data must total at most 50 MiB and Base64 text
|
|
962
|
+
# must total at most 70,254,592 characters, including line breaks. Skill
|
|
963
|
+
# references do not count toward these limits.
|
|
961
964
|
#
|
|
962
965
|
# @return [Array<OpenAI::Models::Live::ResponsesDelegationUpdateConfig::Tool::Shell::Environment::ContainerAuto::Skill::SkillReference, OpenAI::Models::Live::ResponsesDelegationUpdateConfig::Tool::Shell::Environment::ContainerAuto::Skill::Inline>, nil]
|
|
963
966
|
optional(
|
|
@@ -981,7 +984,10 @@ module OpenAI
|
|
|
981
984
|
# Network access policy for the container.
|
|
982
985
|
#
|
|
983
986
|
# @param skills [Array<OpenAI::Models::Live::ResponsesDelegationUpdateConfig::Tool::Shell::Environment::ContainerAuto::Skill::SkillReference, OpenAI::Models::Live::ResponsesDelegationUpdateConfig::Tool::Shell::Environment::ContainerAuto::Skill::Inline>, nil]
|
|
984
|
-
# An optional list of skills referenced by id or inline data.
|
|
987
|
+
# An optional list of skills referenced by id or inline data. Across all inline
|
|
988
|
+
# skills in this list, decoded ZIP data must total at most 50 MiB and Base64 text
|
|
989
|
+
# must total at most 70,254,592 characters, including line breaks. Skill
|
|
990
|
+
# references do not count toward these limits.
|
|
985
991
|
#
|
|
986
992
|
# @param type [Symbol, :container_auto]
|
|
987
993
|
# Automatically creates a container for this request
|
|
@@ -19,7 +19,7 @@ module OpenAI
|
|
|
19
19
|
# Returned when a Live session update is accepted. Contains the resolved session configuration after the update.
|
|
20
20
|
variant :"session.updated", -> { OpenAI::Live::SessionUpdatedEvent }
|
|
21
21
|
|
|
22
|
-
# Sent when speech
|
|
22
|
+
# Sent when speech wakes inference and it is ready for audio in a Live WebRTC session. This occurs on the first wake and after each later wake. Delivered to the sideband and, when permitted by its event settings, the data channel.
|
|
23
23
|
variant :"session.resumed", -> { OpenAI::Live::ServerEvent::SessionResumed }
|
|
24
24
|
|
|
25
25
|
# Sent when the idle timeout pauses inference in a Live WebRTC session. The WebRTC connection, sideband, and session ID persist. Delivered to the sideband and, when permitted by its event settings, the data channel.
|
|
@@ -123,9 +123,9 @@ module OpenAI
|
|
|
123
123
|
optional :client_event_id, String
|
|
124
124
|
|
|
125
125
|
# @!method initialize(event_id:, client_event_id: nil, type: :"session.resumed")
|
|
126
|
-
# Sent when speech
|
|
127
|
-
#
|
|
128
|
-
# settings, the data channel.
|
|
126
|
+
# Sent when speech wakes inference and it is ready for audio in a Live WebRTC
|
|
127
|
+
# session. This occurs on the first wake and after each later wake. Delivered to
|
|
128
|
+
# the sideband and, when permitted by its event settings, the data channel.
|
|
129
129
|
#
|
|
130
130
|
# @param event_id [String]
|
|
131
131
|
# The unique ID of the Live server event.
|
|
@@ -16,7 +16,7 @@ module OpenAI
|
|
|
16
16
|
# Returned when a Live session update is accepted. Contains the resolved session configuration after the update.
|
|
17
17
|
variant :"session.updated", -> { OpenAI::Live::SessionUpdatedEvent }
|
|
18
18
|
|
|
19
|
-
# Sent when speech
|
|
19
|
+
# Sent when speech wakes inference and it is ready for audio in a Live WebRTC session. This occurs on the first wake and after each later wake. Delivered to the sideband and, when permitted by its event settings, the data channel.
|
|
20
20
|
variant :"session.resumed", -> { OpenAI::Live::SidebandServerEvent::SessionResumed }
|
|
21
21
|
|
|
22
22
|
# Sent when the idle timeout pauses inference in a Live WebRTC session. The WebRTC connection, sideband, and session ID persist. Delivered to the sideband and, when permitted by its event settings, the data channel.
|
|
@@ -120,9 +120,9 @@ module OpenAI
|
|
|
120
120
|
optional :client_event_id, String
|
|
121
121
|
|
|
122
122
|
# @!method initialize(event_id:, client_event_id: nil, type: :"session.resumed")
|
|
123
|
-
# Sent when speech
|
|
124
|
-
#
|
|
125
|
-
# settings, the data channel.
|
|
123
|
+
# Sent when speech wakes inference and it is ready for audio in a Live WebRTC
|
|
124
|
+
# session. This occurs on the first wake and after each later wake. Delivered to
|
|
125
|
+
# the sideband and, when permitted by its event settings, the data channel.
|
|
126
126
|
#
|
|
127
127
|
# @param event_id [String]
|
|
128
128
|
# The unique ID of the Live server event.
|
|
@@ -11,9 +11,10 @@ module OpenAI
|
|
|
11
11
|
optional :format_, union: -> { OpenAI::Realtime::RealtimeAudioFormats }, api_name: :format
|
|
12
12
|
|
|
13
13
|
# @!attribute noise_reduction
|
|
14
|
-
#
|
|
15
|
-
#
|
|
16
|
-
#
|
|
14
|
+
# When you supply a `noise_reduction` object, you must set `type` to `near_field`
|
|
15
|
+
# or `far_field`. Set `noise_reduction` to `null` to turn off input audio noise
|
|
16
|
+
# reduction. Noise reduction filters audio added to the input audio buffer before
|
|
17
|
+
# it is sent to VAD and the model. Filtering the audio can improve VAD and turn
|
|
17
18
|
# detection accuracy (reducing false positives) and model performance by improving
|
|
18
19
|
# perception of the input audio.
|
|
19
20
|
#
|
|
@@ -59,9 +60,10 @@ module OpenAI
|
|
|
59
60
|
# The format of the input audio.
|
|
60
61
|
#
|
|
61
62
|
# @param noise_reduction [OpenAI::Models::Realtime::RealtimeAudioConfigInput::NoiseReduction]
|
|
62
|
-
#
|
|
63
|
-
#
|
|
64
|
-
#
|
|
63
|
+
# When you supply a `noise_reduction` object, you must set `type` to `near_field`
|
|
64
|
+
# or `far_field`. Set `noise_reduction` to `null` to turn off input audio noise
|
|
65
|
+
# reduction. Noise reduction filters audio added to the input audio buffer before
|
|
66
|
+
# it is sent to VAD and the model. Filtering the audio can improve VAD and turn
|
|
65
67
|
# detection accuracy (reducing false positives) and model performance by improving
|
|
66
68
|
# perception of the input audio.
|
|
67
69
|
#
|
|
@@ -112,9 +114,10 @@ module OpenAI
|
|
|
112
114
|
optional :type, enum: -> { OpenAI::Realtime::NoiseReductionType }
|
|
113
115
|
|
|
114
116
|
# @!method initialize(strength: nil, type: nil)
|
|
115
|
-
#
|
|
116
|
-
#
|
|
117
|
-
#
|
|
117
|
+
# When you supply a `noise_reduction` object, you must set `type` to `near_field`
|
|
118
|
+
# or `far_field`. Set `noise_reduction` to `null` to turn off input audio noise
|
|
119
|
+
# reduction. Noise reduction filters audio added to the input audio buffer before
|
|
120
|
+
# it is sent to VAD and the model. Filtering the audio can improve VAD and turn
|
|
118
121
|
# detection accuracy (reducing false positives) and model performance by improving
|
|
119
122
|
# perception of the input audio.
|
|
120
123
|
#
|
|
@@ -36,8 +36,7 @@ module OpenAI
|
|
|
36
36
|
|
|
37
37
|
# @!attribute metadata
|
|
38
38
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
39
|
-
# for storing additional information about the object in a structured format
|
|
40
|
-
# querying for objects via API or the dashboard.
|
|
39
|
+
# for storing additional information about the object in a structured format.
|
|
41
40
|
#
|
|
42
41
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
43
42
|
# a maximum length of 512 characters.
|
|
@@ -114,8 +113,7 @@ module OpenAI
|
|
|
114
113
|
#
|
|
115
114
|
# @param metadata [Hash{Symbol=>String}, nil]
|
|
116
115
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
117
|
-
# for storing additional information about the object in a structured format
|
|
118
|
-
# querying for objects via API or the dashboard.
|
|
116
|
+
# for storing additional information about the object in a structured format.
|
|
119
117
|
#
|
|
120
118
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
121
119
|
# a maximum length of 512 characters.
|
|
@@ -54,8 +54,7 @@ module OpenAI
|
|
|
54
54
|
|
|
55
55
|
# @!attribute metadata
|
|
56
56
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
57
|
-
# for storing additional information about the object in a structured format
|
|
58
|
-
# querying for objects via API or the dashboard.
|
|
57
|
+
# for storing additional information about the object in a structured format.
|
|
59
58
|
#
|
|
60
59
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
61
60
|
# a maximum length of 512 characters.
|
|
@@ -149,8 +148,7 @@ module OpenAI
|
|
|
149
148
|
#
|
|
150
149
|
# @param metadata [Hash{Symbol=>String}, nil]
|
|
151
150
|
# 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.
|
|
151
|
+
# for storing additional information about the object in a structured format.
|
|
154
152
|
#
|
|
155
153
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
156
154
|
# a maximum length of 512 characters.
|
|
@@ -42,7 +42,19 @@ module OpenAI
|
|
|
42
42
|
# @return [OpenAI::Models::Responses::CompactedResponse::Image, nil]
|
|
43
43
|
optional :image, -> { OpenAI::Responses::CompactedResponse::Image }
|
|
44
44
|
|
|
45
|
-
# @!
|
|
45
|
+
# @!attribute safety_identifier
|
|
46
|
+
# A stable identifier that was used for safety monitoring and abuse detection.
|
|
47
|
+
#
|
|
48
|
+
# @return [String, nil]
|
|
49
|
+
optional :safety_identifier, String, nil?: true
|
|
50
|
+
|
|
51
|
+
# @!attribute service_tier
|
|
52
|
+
# The service tier used for compaction, when reported.
|
|
53
|
+
#
|
|
54
|
+
# @return [String, nil]
|
|
55
|
+
optional :service_tier, String
|
|
56
|
+
|
|
57
|
+
# @!method initialize(id:, created_at:, output:, usage:, image: nil, safety_identifier: nil, service_tier: nil, object: :"response.compaction")
|
|
46
58
|
# @param id [String]
|
|
47
59
|
# The unique identifier for the compacted response.
|
|
48
60
|
#
|
|
@@ -59,6 +71,12 @@ module OpenAI
|
|
|
59
71
|
#
|
|
60
72
|
# @param image [OpenAI::Models::Responses::CompactedResponse::Image]
|
|
61
73
|
#
|
|
74
|
+
# @param safety_identifier [String, nil]
|
|
75
|
+
# A stable identifier that was used for safety monitoring and abuse detection.
|
|
76
|
+
#
|
|
77
|
+
# @param service_tier [String]
|
|
78
|
+
# The service tier used for compaction, when reported.
|
|
79
|
+
#
|
|
62
80
|
# @param object [Symbol, :"response.compaction"]
|
|
63
81
|
# The object type. Always `response.compaction`.
|
|
64
82
|
|
|
@@ -29,7 +29,10 @@ module OpenAI
|
|
|
29
29
|
optional :network_policy, union: -> { OpenAI::Responses::ContainerAuto::NetworkPolicy }
|
|
30
30
|
|
|
31
31
|
# @!attribute skills
|
|
32
|
-
# An optional list of skills referenced by id or inline data.
|
|
32
|
+
# An optional list of skills referenced by id or inline data. Across all inline
|
|
33
|
+
# skills in this list, decoded ZIP data must total at most 50 MiB and Base64 text
|
|
34
|
+
# must total at most 70,254,592 characters, including line breaks. Skill
|
|
35
|
+
# references do not count toward these limits.
|
|
33
36
|
#
|
|
34
37
|
# @return [Array<OpenAI::Models::Responses::SkillReference, OpenAI::Models::Responses::InlineSkill>, nil]
|
|
35
38
|
optional :skills, -> { OpenAI::Internal::Type::ArrayOf[union: OpenAI::Responses::ContainerAuto::Skill] }
|
|
@@ -45,7 +48,10 @@ module OpenAI
|
|
|
45
48
|
# Network access policy for the container.
|
|
46
49
|
#
|
|
47
50
|
# @param skills [Array<OpenAI::Models::Responses::SkillReference, OpenAI::Models::Responses::InlineSkill>]
|
|
48
|
-
# An optional list of skills referenced by id or inline data.
|
|
51
|
+
# An optional list of skills referenced by id or inline data. Across all inline
|
|
52
|
+
# skills in this list, decoded ZIP data must total at most 50 MiB and Base64 text
|
|
53
|
+
# must total at most 70,254,592 characters, including line breaks. Skill
|
|
54
|
+
# references do not count toward these limits.
|
|
49
55
|
#
|
|
50
56
|
# @param type [Symbol, :container_auto]
|
|
51
57
|
# Automatically creates a container for this request
|