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
|
@@ -74,11 +74,11 @@ module OpenAI
|
|
|
74
74
|
def limit=: (Integer) -> Integer
|
|
75
75
|
|
|
76
76
|
# Return only costs for these exact line item names. Each value must match the
|
|
77
|
-
# complete `line_item` value, for example `gpt-6-astra, input_tokens`.
|
|
77
|
+
# complete `line_item` value, for example `gpt-6.2-astra, input_tokens`.
|
|
78
78
|
attr_reader line_items: ::Array[String]?
|
|
79
79
|
|
|
80
80
|
# Return only costs for these exact line item names. Each value must match the
|
|
81
|
-
# complete `line_item` value, for example `gpt-6-astra, input_tokens`.
|
|
81
|
+
# complete `line_item` value, for example `gpt-6.2-astra, input_tokens`.
|
|
82
82
|
def line_items=: (::Array[String]) -> ::Array[String]
|
|
83
83
|
|
|
84
84
|
# A cursor for use in pagination. Corresponding to the `next_page` field from the
|
|
@@ -117,7 +117,7 @@ module OpenAI
|
|
|
117
117
|
# 180, and the default is 7.
|
|
118
118
|
# @param line_items
|
|
119
119
|
# Return only costs for these exact line item names. Each value must match the
|
|
120
|
-
# complete `line_item` value, for example `gpt-6-astra, input_tokens`.
|
|
120
|
+
# complete `line_item` value, for example `gpt-6.2-astra, input_tokens`.
|
|
121
121
|
# @param page
|
|
122
122
|
# A cursor for use in pagination. Corresponding to the `next_page` field from the
|
|
123
123
|
# previous response.
|
data/sig/openai/models/batch.rbs
CHANGED
|
@@ -106,21 +106,20 @@ module OpenAI
|
|
|
106
106
|
def in_progress_at=: (Integer) -> Integer
|
|
107
107
|
|
|
108
108
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
109
|
-
# for storing additional information about the object in a structured format
|
|
110
|
-
# querying for objects via API or the dashboard.
|
|
109
|
+
# for storing additional information about the object in a structured format.
|
|
111
110
|
#
|
|
112
111
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
113
112
|
# a maximum length of 512 characters.
|
|
114
113
|
attr_accessor metadata: OpenAI::Models::metadata?
|
|
115
114
|
|
|
116
|
-
# Model ID used to process the batch, like `gpt-6-astra`. OpenAI offers a wide
|
|
115
|
+
# Model ID used to process the batch, like `gpt-6.2-astra`. OpenAI offers a wide
|
|
117
116
|
# range of models with different capabilities, performance characteristics, and
|
|
118
117
|
# price points. Refer to the
|
|
119
118
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
120
119
|
# compare available models.
|
|
121
120
|
attr_reader model: String?
|
|
122
121
|
|
|
123
|
-
# Model ID used to process the batch, like `gpt-6-astra`. OpenAI offers a wide
|
|
122
|
+
# Model ID used to process the batch, like `gpt-6.2-astra`. OpenAI offers a wide
|
|
124
123
|
# range of models with different capabilities, performance characteristics, and
|
|
125
124
|
# price points. Refer to the
|
|
126
125
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
@@ -181,13 +180,12 @@ module OpenAI
|
|
|
181
180
|
# The Unix timestamp (in seconds) for when the batch started processing.
|
|
182
181
|
# @param metadata
|
|
183
182
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
184
|
-
# for storing additional information about the object in a structured format
|
|
185
|
-
# querying for objects via API or the dashboard.
|
|
183
|
+
# for storing additional information about the object in a structured format.
|
|
186
184
|
#
|
|
187
185
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
188
186
|
# a maximum length of 512 characters.
|
|
189
187
|
# @param model
|
|
190
|
-
# Model ID used to process the batch, like `gpt-6-astra`. OpenAI offers a wide
|
|
188
|
+
# Model ID used to process the batch, like `gpt-6.2-astra`. OpenAI offers a wide
|
|
191
189
|
# range of models with different capabilities, performance characteristics, and
|
|
192
190
|
# price points. Refer to the
|
|
193
191
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
@@ -35,8 +35,7 @@ module OpenAI
|
|
|
35
35
|
attr_accessor input_file_id: String
|
|
36
36
|
|
|
37
37
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
38
|
-
# for storing additional information about the object in a structured format
|
|
39
|
-
# querying for objects via API or the dashboard.
|
|
38
|
+
# for storing additional information about the object in a structured format.
|
|
40
39
|
#
|
|
41
40
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
42
41
|
# a maximum length of 512 characters.
|
|
@@ -71,8 +70,7 @@ module OpenAI
|
|
|
71
70
|
# requests, and can be up to 200 MB in size.
|
|
72
71
|
# @param metadata
|
|
73
72
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
74
|
-
# for storing additional information about the object in a structured format
|
|
75
|
-
# querying for objects via API or the dashboard.
|
|
73
|
+
# for storing additional information about the object in a structured format.
|
|
76
74
|
#
|
|
77
75
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
78
76
|
# a maximum length of 512 characters.
|
|
@@ -136,7 +136,7 @@ module OpenAI
|
|
|
136
136
|
attr_accessor text: OpenAI::Beta::AgentTextParam?
|
|
137
137
|
|
|
138
138
|
# Tools available to the agent. Omit to inherit, or pass null to clear them. The
|
|
139
|
-
# resolved tool list must fit within
|
|
139
|
+
# resolved tool list must fit within 8 MiB (8,388,608 bytes) of compact UTF-8
|
|
140
140
|
# JSON.
|
|
141
141
|
attr_accessor tools: ::Array[OpenAI::Models::Beta::agent_tool_param]?
|
|
142
142
|
|
|
@@ -162,7 +162,7 @@ module OpenAI
|
|
|
162
162
|
# Configuration for text generated by the agent.
|
|
163
163
|
# @param tools
|
|
164
164
|
# Tools available to the agent. Omit to inherit, or pass null to clear them. The
|
|
165
|
-
# resolved tool list must fit within
|
|
165
|
+
# resolved tool list must fit within 8 MiB (8,388,608 bytes) of compact UTF-8
|
|
166
166
|
# JSON.
|
|
167
167
|
def initialize: (
|
|
168
168
|
?compaction: OpenAI::Beta::Agents::AutomationTargetParam::NewSession::Agent::Compaction?,
|
|
@@ -187,7 +187,7 @@ module OpenAI
|
|
|
187
187
|
attr_accessor text: OpenAI::Beta::AgentTextParam?
|
|
188
188
|
|
|
189
189
|
# Tools available to the agent. Omit to inherit, or pass null to clear them. The
|
|
190
|
-
# resolved tool list must fit within
|
|
190
|
+
# resolved tool list must fit within 8 MiB (8,388,608 bytes) of compact UTF-8
|
|
191
191
|
# JSON.
|
|
192
192
|
attr_accessor tools: ::Array[OpenAI::Models::Beta::agent_tool_param]?
|
|
193
193
|
|
|
@@ -213,7 +213,7 @@ module OpenAI
|
|
|
213
213
|
# Configuration for text generated by the agent.
|
|
214
214
|
# @param tools
|
|
215
215
|
# Tools available to the agent. Omit to inherit, or pass null to clear them. The
|
|
216
|
-
# resolved tool list must fit within
|
|
216
|
+
# resolved tool list must fit within 8 MiB (8,388,608 bytes) of compact UTF-8
|
|
217
217
|
# JSON.
|
|
218
218
|
def initialize: (
|
|
219
219
|
?compaction: OpenAI::Beta::Agents::SessionCreateParams::Agent::Compaction?,
|
|
@@ -10,6 +10,7 @@ module OpenAI
|
|
|
10
10
|
?prompt_cache_options: OpenAI::Beta::Agents::SessionUpdateParams::PromptCacheOptions?,
|
|
11
11
|
?review: OpenAI::Models::Beta::Agents::SessionUpdateParams::review,
|
|
12
12
|
?spend_control: OpenAI::Beta::Agents::SessionUpdateParams::SpendControl?,
|
|
13
|
+
?vault_ids: ::Array[String]?,
|
|
13
14
|
?request_options: OpenAI::request_opts
|
|
14
15
|
}
|
|
15
16
|
|
|
@@ -50,6 +51,10 @@ module OpenAI
|
|
|
50
51
|
# spend.
|
|
51
52
|
attr_accessor spend_control: OpenAI::Beta::Agents::SessionUpdateParams::SpendControl?
|
|
52
53
|
|
|
54
|
+
# Replaces the session's referenced vaults. Omit to retain them; null or [] clears
|
|
55
|
+
# them.
|
|
56
|
+
attr_accessor vault_ids: ::Array[String]?
|
|
57
|
+
|
|
53
58
|
# @param agent
|
|
54
59
|
# Agent settings to update on this session. Omitted fields stay unchanged.
|
|
55
60
|
# @param metadata
|
|
@@ -65,6 +70,9 @@ module OpenAI
|
|
|
65
70
|
# @param spend_control
|
|
66
71
|
# Omit to retain the limit; null or a null limit removes it without resetting
|
|
67
72
|
# spend.
|
|
73
|
+
# @param vault_ids
|
|
74
|
+
# Replaces the session's referenced vaults. Omit to retain them; null or [] clears
|
|
75
|
+
# them.
|
|
68
76
|
def initialize: (
|
|
69
77
|
session_id: String,
|
|
70
78
|
?agent: OpenAI::Beta::Agents::SessionUpdateParams::Agent,
|
|
@@ -72,6 +80,7 @@ module OpenAI
|
|
|
72
80
|
?prompt_cache_options: OpenAI::Beta::Agents::SessionUpdateParams::PromptCacheOptions?,
|
|
73
81
|
?review: OpenAI::Models::Beta::Agents::SessionUpdateParams::review,
|
|
74
82
|
?spend_control: OpenAI::Beta::Agents::SessionUpdateParams::SpendControl?,
|
|
83
|
+
?vault_ids: ::Array[String]?,
|
|
75
84
|
?request_options: OpenAI::request_opts
|
|
76
85
|
) -> void
|
|
77
86
|
|
|
@@ -82,6 +91,7 @@ module OpenAI
|
|
|
82
91
|
?prompt_cache_options: OpenAI::Beta::Agents::SessionUpdateParams::PromptCacheOptions?,
|
|
83
92
|
?review: OpenAI::Models::Beta::Agents::SessionUpdateParams::review,
|
|
84
93
|
?spend_control: OpenAI::Beta::Agents::SessionUpdateParams::SpendControl?,
|
|
94
|
+
?vault_ids: ::Array[String]?,
|
|
85
95
|
?request_options: OpenAI::RequestOptions
|
|
86
96
|
}
|
|
87
97
|
|
|
@@ -10,7 +10,9 @@ module OpenAI
|
|
|
10
10
|
?object: :"response.compaction",
|
|
11
11
|
output: ::Array[OpenAI::Models::Beta::beta_response_item],
|
|
12
12
|
usage: OpenAI::Beta::BetaResponseUsage,
|
|
13
|
-
?image: OpenAI::Beta::BetaCompactedResponse::Image
|
|
13
|
+
?image: OpenAI::Beta::BetaCompactedResponse::Image,
|
|
14
|
+
?safety_identifier: String?,
|
|
15
|
+
?service_tier: String
|
|
14
16
|
}
|
|
15
17
|
|
|
16
18
|
class BetaCompactedResponse < OpenAI::Internal::Type::BaseModel
|
|
@@ -37,6 +39,15 @@ module OpenAI
|
|
|
37
39
|
OpenAI::Beta::BetaCompactedResponse::Image
|
|
38
40
|
) -> OpenAI::Beta::BetaCompactedResponse::Image
|
|
39
41
|
|
|
42
|
+
# A stable identifier that was used for safety monitoring and abuse detection.
|
|
43
|
+
attr_accessor safety_identifier: String?
|
|
44
|
+
|
|
45
|
+
# The service tier used for compaction, when reported.
|
|
46
|
+
attr_reader service_tier: String?
|
|
47
|
+
|
|
48
|
+
# The service tier used for compaction, when reported.
|
|
49
|
+
def service_tier=: (String) -> String
|
|
50
|
+
|
|
40
51
|
# @param id
|
|
41
52
|
# The unique identifier for the compacted response.
|
|
42
53
|
# @param created_at
|
|
@@ -47,6 +58,10 @@ module OpenAI
|
|
|
47
58
|
# @param usage
|
|
48
59
|
# Token accounting for the compaction pass, including cached, reasoning, and total
|
|
49
60
|
# tokens.
|
|
61
|
+
# @param safety_identifier
|
|
62
|
+
# A stable identifier that was used for safety monitoring and abuse detection.
|
|
63
|
+
# @param service_tier
|
|
64
|
+
# The service tier used for compaction, when reported.
|
|
50
65
|
# @param object
|
|
51
66
|
# The object type. Always `response.compaction`.
|
|
52
67
|
def initialize: (
|
|
@@ -55,6 +70,8 @@ module OpenAI
|
|
|
55
70
|
output: ::Array[OpenAI::Models::Beta::beta_response_item],
|
|
56
71
|
usage: OpenAI::Beta::BetaResponseUsage,
|
|
57
72
|
?image: OpenAI::Beta::BetaCompactedResponse::Image,
|
|
73
|
+
?safety_identifier: String?,
|
|
74
|
+
?service_tier: String,
|
|
58
75
|
?object: :"response.compaction"
|
|
59
76
|
) -> void
|
|
60
77
|
|
|
@@ -64,7 +81,9 @@ module OpenAI
|
|
|
64
81
|
?object: :"response.compaction",
|
|
65
82
|
output: ::Array[OpenAI::Models::Beta::beta_response_item],
|
|
66
83
|
usage: OpenAI::Beta::BetaResponseUsage,
|
|
67
|
-
?image: OpenAI::Beta::BetaCompactedResponse::Image
|
|
84
|
+
?image: OpenAI::Beta::BetaCompactedResponse::Image,
|
|
85
|
+
?safety_identifier: String?,
|
|
86
|
+
?service_tier: String
|
|
68
87
|
}
|
|
69
88
|
|
|
70
89
|
type image =
|
|
@@ -33,10 +33,16 @@ module OpenAI
|
|
|
33
33
|
OpenAI::Models::Beta::BetaContainerAuto::network_policy
|
|
34
34
|
) -> OpenAI::Models::Beta::BetaContainerAuto::network_policy
|
|
35
35
|
|
|
36
|
-
# An optional list of skills referenced by id or inline data.
|
|
36
|
+
# An optional list of skills referenced by id or inline data. Across all inline
|
|
37
|
+
# skills in this list, decoded ZIP data must total at most 50 MiB and Base64 text
|
|
38
|
+
# must total at most 70,254,592 characters, including line breaks. Skill
|
|
39
|
+
# references do not count toward these limits.
|
|
37
40
|
attr_reader skills: ::Array[OpenAI::Models::Beta::BetaContainerAuto::skill]?
|
|
38
41
|
|
|
39
|
-
# An optional list of skills referenced by id or inline data.
|
|
42
|
+
# An optional list of skills referenced by id or inline data. Across all inline
|
|
43
|
+
# skills in this list, decoded ZIP data must total at most 50 MiB and Base64 text
|
|
44
|
+
# must total at most 70,254,592 characters, including line breaks. Skill
|
|
45
|
+
# references do not count toward these limits.
|
|
40
46
|
def skills=: (
|
|
41
47
|
::Array[OpenAI::Models::Beta::BetaContainerAuto::skill]
|
|
42
48
|
) -> ::Array[OpenAI::Models::Beta::BetaContainerAuto::skill]
|
|
@@ -48,7 +54,10 @@ module OpenAI
|
|
|
48
54
|
# @param network_policy
|
|
49
55
|
# Network access policy for the container.
|
|
50
56
|
# @param skills
|
|
51
|
-
# An optional list of skills referenced by id or inline data.
|
|
57
|
+
# An optional list of skills referenced by id or inline data. Across all inline
|
|
58
|
+
# skills in this list, decoded ZIP data must total at most 50 MiB and Base64 text
|
|
59
|
+
# must total at most 70,254,592 characters, including line breaks. Skill
|
|
60
|
+
# references do not count toward these limits.
|
|
52
61
|
# @param type
|
|
53
62
|
# Automatically creates a container for this request
|
|
54
63
|
def initialize: (
|
|
@@ -69,16 +69,15 @@ module OpenAI
|
|
|
69
69
|
attr_accessor instructions: OpenAI::Models::Beta::BetaResponse::instructions?
|
|
70
70
|
|
|
71
71
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
72
|
-
# for storing additional information about the object in a structured format
|
|
73
|
-
# querying for objects via API or the dashboard.
|
|
72
|
+
# for storing additional information about the object in a structured format.
|
|
74
73
|
#
|
|
75
74
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
76
75
|
# a maximum length of 512 characters.
|
|
77
76
|
attr_accessor metadata: ::Hash[Symbol, String]?
|
|
78
77
|
|
|
79
|
-
# Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a
|
|
80
|
-
# range of models with different capabilities, performance characteristics,
|
|
81
|
-
# price points. Refer to the
|
|
78
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
79
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
80
|
+
# and price points. Refer to the
|
|
82
81
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
83
82
|
# compare available models.
|
|
84
83
|
attr_accessor model: OpenAI::Models::Beta::BetaResponse::model
|
|
@@ -383,15 +382,14 @@ module OpenAI
|
|
|
383
382
|
# swap out system (or developer) messages in new responses.
|
|
384
383
|
# @param metadata
|
|
385
384
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
386
|
-
# for storing additional information about the object in a structured format
|
|
387
|
-
# querying for objects via API or the dashboard.
|
|
385
|
+
# for storing additional information about the object in a structured format.
|
|
388
386
|
#
|
|
389
387
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
390
388
|
# a maximum length of 512 characters.
|
|
391
389
|
# @param model
|
|
392
|
-
# Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a
|
|
393
|
-
# range of models with different capabilities, performance characteristics,
|
|
394
|
-
# price points. Refer to the
|
|
390
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
391
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
392
|
+
# and price points. Refer to the
|
|
395
393
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
396
394
|
# compare available models.
|
|
397
395
|
# @param output
|
|
@@ -171,23 +171,22 @@ module OpenAI
|
|
|
171
171
|
attr_accessor max_tool_calls: Integer?
|
|
172
172
|
|
|
173
173
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
174
|
-
# for storing additional information about the object in a structured format
|
|
175
|
-
# querying for objects via API or the dashboard.
|
|
174
|
+
# for storing additional information about the object in a structured format.
|
|
176
175
|
#
|
|
177
176
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
178
177
|
# a maximum length of 512 characters.
|
|
179
178
|
attr_accessor metadata: ::Hash[Symbol, String]?
|
|
180
179
|
|
|
181
|
-
# Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a
|
|
182
|
-
# range of models with different capabilities, performance characteristics,
|
|
183
|
-
# price points. Refer to the
|
|
180
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
181
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
182
|
+
# and price points. Refer to the
|
|
184
183
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
185
184
|
# compare available models.
|
|
186
185
|
attr_reader model: OpenAI::Models::Beta::BetaResponsesClientEvent::ResponseCreate::model?
|
|
187
186
|
|
|
188
|
-
# Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a
|
|
189
|
-
# range of models with different capabilities, performance characteristics,
|
|
190
|
-
# price points. Refer to the
|
|
187
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
188
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
189
|
+
# and price points. Refer to the
|
|
191
190
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
192
191
|
# compare available models.
|
|
193
192
|
def model=: (
|
|
@@ -517,15 +516,14 @@ module OpenAI
|
|
|
517
516
|
# ignored.
|
|
518
517
|
# @param metadata
|
|
519
518
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
520
|
-
# for storing additional information about the object in a structured format
|
|
521
|
-
# querying for objects via API or the dashboard.
|
|
519
|
+
# for storing additional information about the object in a structured format.
|
|
522
520
|
#
|
|
523
521
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
524
522
|
# a maximum length of 512 characters.
|
|
525
523
|
# @param model
|
|
526
|
-
# Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a
|
|
527
|
-
# range of models with different capabilities, performance characteristics,
|
|
528
|
-
# price points. Refer to the
|
|
524
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
525
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
526
|
+
# and price points. Refer to the
|
|
529
527
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
530
528
|
# compare available models.
|
|
531
529
|
# @param moderation
|
|
@@ -11,6 +11,7 @@ module OpenAI
|
|
|
11
11
|
?prompt_cache_key: String?,
|
|
12
12
|
?prompt_cache_options: OpenAI::Beta::ResponseCompactParams::PromptCacheOptions?,
|
|
13
13
|
?prompt_cache_retention: OpenAI::Models::Beta::ResponseCompactParams::prompt_cache_retention?,
|
|
14
|
+
?safety_identifier: String?,
|
|
14
15
|
?service_tier: OpenAI::Models::Beta::ResponseCompactParams::service_tier?,
|
|
15
16
|
?betas: ::Array[OpenAI::Models::Beta::ResponseCompactParams::beta],
|
|
16
17
|
?request_options: OpenAI::request_opts
|
|
@@ -20,9 +21,9 @@ module OpenAI
|
|
|
20
21
|
extend OpenAI::Internal::Type::RequestParameters::Converter
|
|
21
22
|
include OpenAI::Internal::Type::RequestParameters
|
|
22
23
|
|
|
23
|
-
# Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a
|
|
24
|
-
# range of models with different capabilities, performance characteristics,
|
|
25
|
-
# price points. Refer to the
|
|
24
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
25
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
26
|
+
# and price points. Refer to the
|
|
26
27
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
27
28
|
# compare available models.
|
|
28
29
|
attr_accessor model: OpenAI::Models::Beta::ResponseCompactParams::model?
|
|
@@ -67,6 +68,9 @@ module OpenAI
|
|
|
67
68
|
# How long to retain a prompt cache entry created by this request.
|
|
68
69
|
attr_accessor prompt_cache_retention: OpenAI::Models::Beta::ResponseCompactParams::prompt_cache_retention?
|
|
69
70
|
|
|
71
|
+
# A stable identifier used for safety monitoring and abuse detection.
|
|
72
|
+
attr_accessor safety_identifier: String?
|
|
73
|
+
|
|
70
74
|
# Specifies the processing type used for serving the request. - If set to 'auto',
|
|
71
75
|
# then the request will be processed with the service tier configured in the
|
|
72
76
|
# Project settings. Unless otherwise configured, the Project will use 'default'. -
|
|
@@ -92,9 +96,9 @@ module OpenAI
|
|
|
92
96
|
) -> ::Array[OpenAI::Models::Beta::ResponseCompactParams::beta]
|
|
93
97
|
|
|
94
98
|
# @param model
|
|
95
|
-
# Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a
|
|
96
|
-
# range of models with different capabilities, performance characteristics,
|
|
97
|
-
# price points. Refer to the
|
|
99
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
100
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
101
|
+
# and price points. Refer to the
|
|
98
102
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
99
103
|
# compare available models.
|
|
100
104
|
# @param image
|
|
@@ -125,6 +129,8 @@ module OpenAI
|
|
|
125
129
|
# for current details.
|
|
126
130
|
# @param prompt_cache_retention
|
|
127
131
|
# How long to retain a prompt cache entry created by this request.
|
|
132
|
+
# @param safety_identifier
|
|
133
|
+
# A stable identifier used for safety monitoring and abuse detection.
|
|
128
134
|
# @param service_tier
|
|
129
135
|
# Specifies the processing type used for serving the request. - If set to 'auto',
|
|
130
136
|
# then the request will be processed with the service tier configured in the
|
|
@@ -151,6 +157,7 @@ module OpenAI
|
|
|
151
157
|
?prompt_cache_key: String?,
|
|
152
158
|
?prompt_cache_options: OpenAI::Beta::ResponseCompactParams::PromptCacheOptions?,
|
|
153
159
|
?prompt_cache_retention: OpenAI::Models::Beta::ResponseCompactParams::prompt_cache_retention?,
|
|
160
|
+
?safety_identifier: String?,
|
|
154
161
|
?service_tier: OpenAI::Models::Beta::ResponseCompactParams::service_tier?,
|
|
155
162
|
?betas: ::Array[OpenAI::Models::Beta::ResponseCompactParams::beta],
|
|
156
163
|
?request_options: OpenAI::request_opts
|
|
@@ -165,6 +172,7 @@ module OpenAI
|
|
|
165
172
|
?prompt_cache_key: String?,
|
|
166
173
|
?prompt_cache_options: OpenAI::Beta::ResponseCompactParams::PromptCacheOptions?,
|
|
167
174
|
?prompt_cache_retention: OpenAI::Models::Beta::ResponseCompactParams::prompt_cache_retention?,
|
|
175
|
+
?safety_identifier: String?,
|
|
168
176
|
?service_tier: OpenAI::Models::Beta::ResponseCompactParams::service_tier?,
|
|
169
177
|
?betas: ::Array[OpenAI::Models::Beta::ResponseCompactParams::beta],
|
|
170
178
|
?request_options: OpenAI::RequestOptions
|
|
@@ -149,23 +149,22 @@ module OpenAI
|
|
|
149
149
|
attr_accessor max_tool_calls: Integer?
|
|
150
150
|
|
|
151
151
|
# 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.
|
|
152
|
+
# for storing additional information about the object in a structured format.
|
|
154
153
|
#
|
|
155
154
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
156
155
|
# a maximum length of 512 characters.
|
|
157
156
|
attr_accessor metadata: ::Hash[Symbol, String]?
|
|
158
157
|
|
|
159
|
-
# Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a
|
|
160
|
-
# range of models with different capabilities, performance characteristics,
|
|
161
|
-
# price points. Refer to the
|
|
158
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
159
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
160
|
+
# and price points. Refer to the
|
|
162
161
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
163
162
|
# compare available models.
|
|
164
163
|
attr_reader model: OpenAI::Models::Beta::ResponseCreateParams::model?
|
|
165
164
|
|
|
166
|
-
# Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a
|
|
167
|
-
# range of models with different capabilities, performance characteristics,
|
|
168
|
-
# price points. Refer to the
|
|
165
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
166
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
167
|
+
# and price points. Refer to the
|
|
169
168
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
170
169
|
# compare available models.
|
|
171
170
|
def model=: (
|
|
@@ -477,15 +476,14 @@ module OpenAI
|
|
|
477
476
|
# ignored.
|
|
478
477
|
# @param metadata
|
|
479
478
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
480
|
-
# for storing additional information about the object in a structured format
|
|
481
|
-
# querying for objects via API or the dashboard.
|
|
479
|
+
# for storing additional information about the object in a structured format.
|
|
482
480
|
#
|
|
483
481
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
484
482
|
# a maximum length of 512 characters.
|
|
485
483
|
# @param model
|
|
486
|
-
# Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a
|
|
487
|
-
# range of models with different capabilities, performance characteristics,
|
|
488
|
-
# price points. Refer to the
|
|
484
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
485
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
486
|
+
# and price points. Refer to the
|
|
489
487
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
490
488
|
# compare available models.
|
|
491
489
|
# @param moderation
|
|
@@ -35,8 +35,7 @@ module OpenAI
|
|
|
35
35
|
attr_accessor object: :"chat.completion"
|
|
36
36
|
|
|
37
37
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
38
|
-
# for storing additional information about the object in a structured format
|
|
39
|
-
# querying for objects via API or the dashboard.
|
|
38
|
+
# for storing additional information about the object in a structured format.
|
|
40
39
|
#
|
|
41
40
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
42
41
|
# a maximum length of 512 characters.
|
|
@@ -99,8 +98,7 @@ module OpenAI
|
|
|
99
98
|
# The model used for the chat completion.
|
|
100
99
|
# @param metadata
|
|
101
100
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
102
|
-
# for storing additional information about the object in a structured format
|
|
103
|
-
# querying for objects via API or the dashboard.
|
|
101
|
+
# for storing additional information about the object in a structured format.
|
|
104
102
|
#
|
|
105
103
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
106
104
|
# a maximum length of 512 characters.
|
|
@@ -54,9 +54,9 @@ module OpenAI
|
|
|
54
54
|
# [audio](https://developers.openai.com/api/docs/guides/audio).
|
|
55
55
|
attr_accessor messages: ::Array[OpenAI::Models::Chat::chat_completion_message_param]
|
|
56
56
|
|
|
57
|
-
# Model ID used to generate the response, like `gpt-6-astra
|
|
58
|
-
#
|
|
59
|
-
#
|
|
57
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
58
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
59
|
+
# and price points. Refer to the
|
|
60
60
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
61
61
|
# compare available models.
|
|
62
62
|
attr_accessor model: OpenAI::Models::Chat::CompletionCreateParams::model
|
|
@@ -147,8 +147,7 @@ module OpenAI
|
|
|
147
147
|
attr_accessor max_tokens: Integer?
|
|
148
148
|
|
|
149
149
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
150
|
-
# for storing additional information about the object in a structured format
|
|
151
|
-
# querying for objects via API or the dashboard.
|
|
150
|
+
# for storing additional information about the object in a structured format.
|
|
152
151
|
#
|
|
153
152
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
154
153
|
# a maximum length of 512 characters.
|
|
@@ -318,7 +317,7 @@ module OpenAI
|
|
|
318
317
|
# parameter.
|
|
319
318
|
attr_accessor service_tier: OpenAI::Models::Chat::CompletionCreateParams::service_tier?
|
|
320
319
|
|
|
321
|
-
# Not supported with
|
|
320
|
+
# Not supported with reasoning models `o3` and `o4-mini`.
|
|
322
321
|
#
|
|
323
322
|
# Up to 4 sequences where the API will stop generating further tokens. The
|
|
324
323
|
# returned text will not contain the stop sequence.
|
|
@@ -432,9 +431,9 @@ module OpenAI
|
|
|
432
431
|
# [images](https://developers.openai.com/api/docs/guides/images-vision), and
|
|
433
432
|
# [audio](https://developers.openai.com/api/docs/guides/audio).
|
|
434
433
|
# @param model
|
|
435
|
-
# Model ID used to generate the response, like `gpt-6-astra
|
|
436
|
-
#
|
|
437
|
-
#
|
|
434
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
435
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
436
|
+
# and price points. Refer to the
|
|
438
437
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
439
438
|
# compare available models.
|
|
440
439
|
# @param audio
|
|
@@ -491,8 +490,7 @@ module OpenAI
|
|
|
491
490
|
# [o-series models](https://developers.openai.com/api/docs/guides/reasoning).
|
|
492
491
|
# @param metadata
|
|
493
492
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
494
|
-
# for storing additional information about the object in a structured format
|
|
495
|
-
# querying for objects via API or the dashboard.
|
|
493
|
+
# for storing additional information about the object in a structured format.
|
|
496
494
|
#
|
|
497
495
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
498
496
|
# a maximum length of 512 characters.
|
|
@@ -615,7 +613,7 @@ module OpenAI
|
|
|
615
613
|
# request. This response value may be different from the value set in the
|
|
616
614
|
# parameter.
|
|
617
615
|
# @param stop
|
|
618
|
-
# Not supported with
|
|
616
|
+
# Not supported with reasoning models `o3` and `o4-mini`.
|
|
619
617
|
#
|
|
620
618
|
# Up to 4 sequences where the API will stop generating further tokens. The
|
|
621
619
|
# returned text will not contain the stop sequence.
|
|
@@ -15,8 +15,7 @@ module OpenAI
|
|
|
15
15
|
attr_accessor completion_id: String
|
|
16
16
|
|
|
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.
|
|
@@ -24,8 +23,7 @@ module OpenAI
|
|
|
24
23
|
|
|
25
24
|
# @param metadata
|
|
26
25
|
# 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.
|
|
26
|
+
# for storing additional information about the object in a structured format.
|
|
29
27
|
#
|
|
30
28
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
31
29
|
# a maximum length of 512 characters.
|
|
@@ -117,7 +117,7 @@ module OpenAI
|
|
|
117
117
|
# response parameter to monitor changes in the backend.
|
|
118
118
|
attr_accessor seed: Integer?
|
|
119
119
|
|
|
120
|
-
# Not supported with
|
|
120
|
+
# Not supported with reasoning models `o3` and `o4-mini`.
|
|
121
121
|
#
|
|
122
122
|
# Up to 4 sequences where the API will stop generating further tokens. The
|
|
123
123
|
# returned text will not contain the stop sequence.
|
|
@@ -236,7 +236,7 @@ module OpenAI
|
|
|
236
236
|
# Determinism is not guaranteed, and you should refer to the `system_fingerprint`
|
|
237
237
|
# response parameter to monitor changes in the backend.
|
|
238
238
|
# @param stop
|
|
239
|
-
# Not supported with
|
|
239
|
+
# Not supported with reasoning models `o3` and `o4-mini`.
|
|
240
240
|
#
|
|
241
241
|
# Up to 4 sequences where the API will stop generating further tokens. The
|
|
242
242
|
# returned text will not contain the stop sequence.
|
|
@@ -5,6 +5,7 @@ module OpenAI
|
|
|
5
5
|
{
|
|
6
6
|
?items: ::Array[OpenAI::Models::Responses::response_input_item]?,
|
|
7
7
|
?metadata: OpenAI::Models::metadata?,
|
|
8
|
+
?safety_identifier: String?,
|
|
8
9
|
?request_options: OpenAI::request_opts
|
|
9
10
|
}
|
|
10
11
|
|
|
@@ -17,32 +18,37 @@ module OpenAI
|
|
|
17
18
|
attr_accessor items: ::Array[OpenAI::Models::Responses::response_input_item]?
|
|
18
19
|
|
|
19
20
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
20
|
-
# for storing additional information about the object in a structured format
|
|
21
|
-
# querying for objects via API or the dashboard.
|
|
21
|
+
# for storing additional information about the object in a structured format.
|
|
22
22
|
#
|
|
23
23
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
24
24
|
# a maximum length of 512 characters.
|
|
25
25
|
attr_accessor metadata: OpenAI::Models::metadata?
|
|
26
26
|
|
|
27
|
+
# A stable identifier used for safety monitoring and abuse detection.
|
|
28
|
+
attr_accessor safety_identifier: String?
|
|
29
|
+
|
|
27
30
|
# @param items
|
|
28
31
|
# Initial items to include in the conversation context. You may add up to 20 items
|
|
29
32
|
# at a time.
|
|
30
33
|
# @param metadata
|
|
31
34
|
# 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.
|
|
35
|
+
# for storing additional information about the object in a structured format.
|
|
34
36
|
#
|
|
35
37
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
36
38
|
# a maximum length of 512 characters.
|
|
39
|
+
# @param safety_identifier
|
|
40
|
+
# A stable identifier used for safety monitoring and abuse detection.
|
|
37
41
|
def initialize: (
|
|
38
42
|
?items: ::Array[OpenAI::Models::Responses::response_input_item]?,
|
|
39
43
|
?metadata: OpenAI::Models::metadata?,
|
|
44
|
+
?safety_identifier: String?,
|
|
40
45
|
?request_options: OpenAI::request_opts
|
|
41
46
|
) -> void
|
|
42
47
|
|
|
43
48
|
def to_hash: -> {
|
|
44
49
|
?items: ::Array[OpenAI::Models::Responses::response_input_item]?,
|
|
45
50
|
?metadata: OpenAI::Models::metadata?,
|
|
51
|
+
?safety_identifier: String?,
|
|
46
52
|
?request_options: OpenAI::RequestOptions
|
|
47
53
|
}
|
|
48
54
|
end
|