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
|
@@ -48,8 +48,7 @@ module OpenAI
|
|
|
48
48
|
|
|
49
49
|
# @!attribute metadata
|
|
50
50
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
51
|
-
# for storing additional information about the object in a structured format
|
|
52
|
-
# querying for objects via API or the dashboard.
|
|
51
|
+
# for storing additional information about the object in a structured format.
|
|
53
52
|
#
|
|
54
53
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
55
54
|
# a maximum length of 512 characters.
|
|
@@ -58,9 +57,9 @@ module OpenAI
|
|
|
58
57
|
required :metadata, OpenAI::Internal::Type::HashOf[String], nil?: true
|
|
59
58
|
|
|
60
59
|
# @!attribute model
|
|
61
|
-
# Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a
|
|
62
|
-
# range of models with different capabilities, performance characteristics,
|
|
63
|
-
# price points. Refer to the
|
|
60
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
61
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
62
|
+
# and price points. Refer to the
|
|
64
63
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
65
64
|
# compare available models.
|
|
66
65
|
#
|
|
@@ -415,16 +414,15 @@ module OpenAI
|
|
|
415
414
|
#
|
|
416
415
|
# @param metadata [Hash{Symbol=>String}, nil]
|
|
417
416
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
418
|
-
# for storing additional information about the object in a structured format
|
|
419
|
-
# querying for objects via API or the dashboard.
|
|
417
|
+
# for storing additional information about the object in a structured format.
|
|
420
418
|
#
|
|
421
419
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
422
420
|
# a maximum length of 512 characters.
|
|
423
421
|
#
|
|
424
422
|
# @param model [String, Symbol, OpenAI::Models::ChatModel, OpenAI::Models::ResponsesModel::ResponsesOnlyModel]
|
|
425
|
-
# Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a
|
|
426
|
-
# range of models with different capabilities, performance characteristics,
|
|
427
|
-
# price points. Refer to the
|
|
423
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
424
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
425
|
+
# and price points. Refer to the
|
|
428
426
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
429
427
|
# compare available models.
|
|
430
428
|
#
|
|
@@ -9,9 +9,9 @@ module OpenAI
|
|
|
9
9
|
include OpenAI::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
11
|
# @!attribute model
|
|
12
|
-
# Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a
|
|
13
|
-
# range of models with different capabilities, performance characteristics,
|
|
14
|
-
# price points. Refer to the
|
|
12
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
13
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
14
|
+
# and price points. Refer to the
|
|
15
15
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
16
16
|
# compare available models.
|
|
17
17
|
#
|
|
@@ -86,6 +86,12 @@ module OpenAI
|
|
|
86
86
|
nil?: true
|
|
87
87
|
)
|
|
88
88
|
|
|
89
|
+
# @!attribute safety_identifier
|
|
90
|
+
# A stable identifier used for safety monitoring and abuse detection.
|
|
91
|
+
#
|
|
92
|
+
# @return [String, nil]
|
|
93
|
+
optional :safety_identifier, String, nil?: true
|
|
94
|
+
|
|
89
95
|
# @!attribute service_tier
|
|
90
96
|
# Specifies the processing type used for serving the request. - If set to 'auto',
|
|
91
97
|
# then the request will be processed with the service tier configured in the
|
|
@@ -107,11 +113,11 @@ module OpenAI
|
|
|
107
113
|
# @return [Symbol, OpenAI::Models::Responses::ResponseCompactParams::ServiceTier, nil]
|
|
108
114
|
optional :service_tier, enum: -> { OpenAI::Responses::ResponseCompactParams::ServiceTier }, nil?: true
|
|
109
115
|
|
|
110
|
-
# @!method initialize(model:, image: nil, input: nil, instructions: nil, previous_response_id: nil, prompt_cache_key: nil, prompt_cache_options: nil, prompt_cache_retention: nil, service_tier: nil, request_options: {})
|
|
116
|
+
# @!method initialize(model:, image: nil, input: nil, instructions: nil, previous_response_id: nil, prompt_cache_key: nil, prompt_cache_options: nil, prompt_cache_retention: nil, safety_identifier: nil, service_tier: nil, request_options: {})
|
|
111
117
|
# @param model [Symbol, String, OpenAI::Models::Responses::ResponseCompactParams::Model, nil]
|
|
112
|
-
# Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a
|
|
113
|
-
# range of models with different capabilities, performance characteristics,
|
|
114
|
-
# price points. Refer to the
|
|
118
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
119
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
120
|
+
# and price points. Refer to the
|
|
115
121
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
116
122
|
# compare available models.
|
|
117
123
|
#
|
|
@@ -150,6 +156,9 @@ module OpenAI
|
|
|
150
156
|
# @param prompt_cache_retention [Symbol, OpenAI::Models::Responses::ResponseCompactParams::PromptCacheRetention, nil]
|
|
151
157
|
# How long to retain a prompt cache entry created by this request.
|
|
152
158
|
#
|
|
159
|
+
# @param safety_identifier [String, nil]
|
|
160
|
+
# A stable identifier used for safety monitoring and abuse detection.
|
|
161
|
+
#
|
|
153
162
|
# @param service_tier [Symbol, OpenAI::Models::Responses::ResponseCompactParams::ServiceTier, nil]
|
|
154
163
|
# Specifies the processing type used for serving the request. - If set to 'auto',
|
|
155
164
|
# then the request will be processed with the service tier configured in the
|
|
@@ -170,9 +179,9 @@ module OpenAI
|
|
|
170
179
|
#
|
|
171
180
|
# @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}]
|
|
172
181
|
|
|
173
|
-
# Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a
|
|
174
|
-
# range of models with different capabilities, performance characteristics,
|
|
175
|
-
# price points. Refer to the
|
|
182
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
183
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
184
|
+
# and price points. Refer to the
|
|
176
185
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
177
186
|
# compare available models.
|
|
178
187
|
module Model
|
|
@@ -134,8 +134,7 @@ module OpenAI
|
|
|
134
134
|
|
|
135
135
|
# @!attribute metadata
|
|
136
136
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
137
|
-
# for storing additional information about the object in a structured format
|
|
138
|
-
# querying for objects via API or the dashboard.
|
|
137
|
+
# for storing additional information about the object in a structured format.
|
|
139
138
|
#
|
|
140
139
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
141
140
|
# a maximum length of 512 characters.
|
|
@@ -144,9 +143,9 @@ module OpenAI
|
|
|
144
143
|
optional :metadata, OpenAI::Internal::Type::HashOf[String], nil?: true
|
|
145
144
|
|
|
146
145
|
# @!attribute model
|
|
147
|
-
# Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a
|
|
148
|
-
# range of models with different capabilities, performance characteristics,
|
|
149
|
-
# price points. Refer to the
|
|
146
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
147
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
148
|
+
# and price points. Refer to the
|
|
150
149
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
151
150
|
# compare available models.
|
|
152
151
|
#
|
|
@@ -474,16 +473,15 @@ module OpenAI
|
|
|
474
473
|
#
|
|
475
474
|
# @param metadata [Hash{Symbol=>String}, nil]
|
|
476
475
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
477
|
-
# for storing additional information about the object in a structured format
|
|
478
|
-
# querying for objects via API or the dashboard.
|
|
476
|
+
# for storing additional information about the object in a structured format.
|
|
479
477
|
#
|
|
480
478
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
481
479
|
# a maximum length of 512 characters.
|
|
482
480
|
#
|
|
483
481
|
# @param model [String, Symbol, OpenAI::Models::ChatModel, OpenAI::Models::ResponsesModel::ResponsesOnlyModel]
|
|
484
|
-
# Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a
|
|
485
|
-
# range of models with different capabilities, performance characteristics,
|
|
486
|
-
# price points. Refer to the
|
|
482
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
483
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
484
|
+
# and price points. Refer to the
|
|
487
485
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
488
486
|
# compare available models.
|
|
489
487
|
#
|
|
@@ -191,8 +191,7 @@ module OpenAI
|
|
|
191
191
|
|
|
192
192
|
# @!attribute metadata
|
|
193
193
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
194
|
-
# for storing additional information about the object in a structured format
|
|
195
|
-
# querying for objects via API or the dashboard.
|
|
194
|
+
# for storing additional information about the object in a structured format.
|
|
196
195
|
#
|
|
197
196
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
198
197
|
# a maximum length of 512 characters.
|
|
@@ -201,9 +200,9 @@ module OpenAI
|
|
|
201
200
|
optional :metadata, OpenAI::Internal::Type::HashOf[String], nil?: true
|
|
202
201
|
|
|
203
202
|
# @!attribute model
|
|
204
|
-
# Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a
|
|
205
|
-
# range of models with different capabilities, performance characteristics,
|
|
206
|
-
# price points. Refer to the
|
|
203
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
204
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
205
|
+
# and price points. Refer to the
|
|
207
206
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
208
207
|
# compare available models.
|
|
209
208
|
#
|
|
@@ -581,16 +580,15 @@ module OpenAI
|
|
|
581
580
|
#
|
|
582
581
|
# @param metadata [Hash{Symbol=>String}, nil]
|
|
583
582
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
584
|
-
# for storing additional information about the object in a structured format
|
|
585
|
-
# querying for objects via API or the dashboard.
|
|
583
|
+
# for storing additional information about the object in a structured format.
|
|
586
584
|
#
|
|
587
585
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
588
586
|
# a maximum length of 512 characters.
|
|
589
587
|
#
|
|
590
588
|
# @param model [String, Symbol, OpenAI::Models::ChatModel, OpenAI::Models::ResponsesModel::ResponsesOnlyModel]
|
|
591
|
-
# Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a
|
|
592
|
-
# range of models with different capabilities, performance characteristics,
|
|
593
|
-
# price points. Refer to the
|
|
589
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
590
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
591
|
+
# and price points. Refer to the
|
|
594
592
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
595
593
|
# compare available models.
|
|
596
594
|
#
|
|
@@ -29,8 +29,7 @@ module OpenAI
|
|
|
29
29
|
|
|
30
30
|
# @!attribute metadata
|
|
31
31
|
# 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.
|
|
32
|
+
# for storing additional information about the object in a structured format.
|
|
34
33
|
#
|
|
35
34
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
36
35
|
# a maximum length of 512 characters.
|
|
@@ -93,8 +92,7 @@ module OpenAI
|
|
|
93
92
|
#
|
|
94
93
|
# @param metadata [Hash{Symbol=>String}, nil]
|
|
95
94
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
96
|
-
# for storing additional information about the object in a structured format
|
|
97
|
-
# querying for objects via API or the dashboard.
|
|
95
|
+
# for storing additional information about the object in a structured format.
|
|
98
96
|
#
|
|
99
97
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
100
98
|
# a maximum length of 512 characters.
|
|
@@ -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.
|
|
@@ -71,8 +70,7 @@ module OpenAI
|
|
|
71
70
|
#
|
|
72
71
|
# @param metadata [Hash{Symbol=>String}, nil]
|
|
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.
|
|
@@ -20,8 +20,7 @@ module OpenAI
|
|
|
20
20
|
|
|
21
21
|
# @!attribute metadata
|
|
22
22
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
23
|
-
# for storing additional information about the object in a structured format
|
|
24
|
-
# querying for objects via API or the dashboard.
|
|
23
|
+
# for storing additional information about the object in a structured format.
|
|
25
24
|
#
|
|
26
25
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
27
26
|
# a maximum length of 512 characters.
|
|
@@ -43,8 +42,7 @@ module OpenAI
|
|
|
43
42
|
#
|
|
44
43
|
# @param metadata [Hash{Symbol=>String}, nil]
|
|
45
44
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
46
|
-
# for storing additional information about the object in a structured format
|
|
47
|
-
# querying for objects via API or the dashboard.
|
|
45
|
+
# for storing additional information about the object in a structured format.
|
|
48
46
|
#
|
|
49
47
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
50
48
|
# a maximum length of 512 characters.
|
|
@@ -30,7 +30,7 @@ module OpenAI
|
|
|
30
30
|
|
|
31
31
|
# Create or replace a project's hard spend limit.
|
|
32
32
|
#
|
|
33
|
-
# @overload update(project_id, currency:, interval:, threshold_amount:, request_options: {})
|
|
33
|
+
# @overload update(project_id, currency:, interval:, threshold_amount:, notification_channel: nil, request_options: {})
|
|
34
34
|
#
|
|
35
35
|
# @param project_id [String]
|
|
36
36
|
# The ID of the project whose hard spend limit is being managed.
|
|
@@ -45,6 +45,10 @@ module OpenAI
|
|
|
45
45
|
# @param threshold_amount [Integer]
|
|
46
46
|
# The hard spend limit amount, in cents.
|
|
47
47
|
#
|
|
48
|
+
# @param notification_channel [OpenAI::Models::Admin::Organization::Projects::SpendLimitUpdateParams::NotificationChannel, nil]
|
|
49
|
+
# Configure email notifications when the spend limit is reached. Leave this out to
|
|
50
|
+
# keep the current settings, or send null to reset to owner-only notifications.
|
|
51
|
+
#
|
|
48
52
|
# @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
49
53
|
#
|
|
50
54
|
# @return [OpenAI::Models::Admin::Organization::Projects::ProjectSpendLimit]
|
|
@@ -26,7 +26,7 @@ module OpenAI
|
|
|
26
26
|
|
|
27
27
|
# Create or replace the organization's hard spend limit.
|
|
28
28
|
#
|
|
29
|
-
# @overload update(currency:, interval:, threshold_amount:, request_options: {})
|
|
29
|
+
# @overload update(currency:, interval:, threshold_amount:, notification_channel: nil, request_options: {})
|
|
30
30
|
#
|
|
31
31
|
# @param currency [Symbol, OpenAI::Models::Admin::Organization::SpendLimitUpdateParams::Currency]
|
|
32
32
|
# The currency for the threshold amount. Currently, only `USD` is supported.
|
|
@@ -38,6 +38,10 @@ module OpenAI
|
|
|
38
38
|
# @param threshold_amount [Integer]
|
|
39
39
|
# The hard spend limit amount, in cents.
|
|
40
40
|
#
|
|
41
|
+
# @param notification_channel [OpenAI::Models::Admin::Organization::SpendLimitUpdateParams::NotificationChannel, nil]
|
|
42
|
+
# Configure email notifications when the spend limit is reached. Leave this out to
|
|
43
|
+
# keep the current settings, or send null to reset to owner-only notifications.
|
|
44
|
+
#
|
|
41
45
|
# @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
42
46
|
#
|
|
43
47
|
# @return [OpenAI::Models::Admin::Organization::OrganizationSpendLimit]
|
|
@@ -271,7 +271,7 @@ module OpenAI
|
|
|
271
271
|
#
|
|
272
272
|
# @param line_items [Array<String>]
|
|
273
273
|
# Return only costs for these exact line item names. Each value must match the
|
|
274
|
-
# complete `line_item` value, for example `gpt-6-astra, input_tokens`.
|
|
274
|
+
# complete `line_item` value, for example `gpt-6.2-astra, input_tokens`.
|
|
275
275
|
#
|
|
276
276
|
# @param page [String]
|
|
277
277
|
# A cursor for use in pagination. Corresponding to the `next_page` field from the
|
|
@@ -30,8 +30,7 @@ module OpenAI
|
|
|
30
30
|
#
|
|
31
31
|
# @param metadata [Hash{Symbol=>String}, nil]
|
|
32
32
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
33
|
-
# for storing additional information about the object in a structured format
|
|
34
|
-
# querying for objects via API or the dashboard.
|
|
33
|
+
# for storing additional information about the object in a structured format.
|
|
35
34
|
#
|
|
36
35
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
37
36
|
# a maximum length of 512 characters.
|
|
@@ -23,8 +23,13 @@ module OpenAI
|
|
|
23
23
|
# Body param: The input events to submit to the session.
|
|
24
24
|
#
|
|
25
25
|
# @param idempotency_key [String]
|
|
26
|
-
# Header param: An optional client-generated key
|
|
27
|
-
#
|
|
26
|
+
# Header param: An optional client-generated key for message submissions. Retry
|
|
27
|
+
# the same message with the same key and identical input within the 24-hour replay
|
|
28
|
+
# window; a retry replays the original outcome if it is available. After the
|
|
29
|
+
# window expires, a key whose outcome is unavailable may return 409. After a
|
|
30
|
+
# timeout or server error, inspect the session history and items before
|
|
31
|
+
# resubmitting. Use a new key for a new message, or only after confirming the
|
|
32
|
+
# earlier message did not execute.
|
|
28
33
|
#
|
|
29
34
|
# @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
30
35
|
#
|
|
@@ -8,8 +8,10 @@ module OpenAI
|
|
|
8
8
|
class Traces
|
|
9
9
|
# Lists published root-turn traces as OTLP JSON, ordered by turn creation time and
|
|
10
10
|
# ID. Unpublished traces are skipped. Each page returns data available when read;
|
|
11
|
-
# it does not wait for late traces.
|
|
12
|
-
# to 16 MiB
|
|
11
|
+
# it does not wait for late traces. Pages may contain fewer traces than requested
|
|
12
|
+
# to fit the 16 MiB response limit. When `has_more` is true, pass `last_id` as
|
|
13
|
+
# `after` to continue. If the first trace exceeds 16 MiB before conversion or
|
|
14
|
+
# cannot fit on a page by itself, the API returns a `trace_too_large` error.
|
|
13
15
|
#
|
|
14
16
|
# @overload list(session_id, after: nil, limit: nil, order: nil, request_options: {})
|
|
15
17
|
#
|
|
@@ -209,12 +209,12 @@ module OpenAI
|
|
|
209
209
|
)
|
|
210
210
|
end
|
|
211
211
|
|
|
212
|
-
# Updates session tools, metadata, model, reasoning effort, service tier,
|
|
213
|
-
# default prompt cache lifetime. Model settings apply to subsequent turns.
|
|
214
|
-
# fields are unchanged. See
|
|
212
|
+
# Updates session tools, vaults, metadata, model, reasoning effort, service tier,
|
|
213
|
+
# or the default prompt cache lifetime. Model settings apply to subsequent turns.
|
|
214
|
+
# Omitted fields are unchanged. See
|
|
215
215
|
# [managing sessions](https://developers.openai.com/api/docs/guides/agents-api/sessions/manage).
|
|
216
216
|
#
|
|
217
|
-
# @overload update(session_id, agent: nil, metadata: nil, prompt_cache_options: nil, review: nil, spend_control: nil, request_options: {})
|
|
217
|
+
# @overload update(session_id, agent: nil, metadata: nil, prompt_cache_options: nil, review: nil, spend_control: nil, vault_ids: nil, request_options: {})
|
|
218
218
|
#
|
|
219
219
|
# @param session_id [String]
|
|
220
220
|
# The ID of the session.
|
|
@@ -239,6 +239,10 @@ module OpenAI
|
|
|
239
239
|
# Omit to retain the limit; null or a null limit removes it without resetting
|
|
240
240
|
# spend.
|
|
241
241
|
#
|
|
242
|
+
# @param vault_ids [Array<String>, nil]
|
|
243
|
+
# Replaces the session's referenced vaults. Omit to retain them; null or [] clears
|
|
244
|
+
# them.
|
|
245
|
+
#
|
|
242
246
|
# @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
243
247
|
#
|
|
244
248
|
# @return [OpenAI::Models::Beta::AgentSession]
|
|
@@ -125,13 +125,13 @@ module OpenAI
|
|
|
125
125
|
# @param metadata [Hash{Symbol=>String}, nil]
|
|
126
126
|
# Body param: Set of 16 key-value pairs that can be attached to an object. This
|
|
127
127
|
# can be useful for storing additional information about the object in a
|
|
128
|
-
# structured format
|
|
128
|
+
# structured format.
|
|
129
129
|
#
|
|
130
130
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
131
131
|
# a maximum length of 512 characters.
|
|
132
132
|
#
|
|
133
133
|
# @param model [Symbol, String, OpenAI::Models::Beta::ResponseCreateParams::Model]
|
|
134
|
-
# Body param: Model ID used to generate the response, like `gpt-6-astra`. OpenAI
|
|
134
|
+
# Body param: Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI
|
|
135
135
|
# offers a wide range of models with different capabilities, performance
|
|
136
136
|
# characteristics, and price points. Refer to the
|
|
137
137
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
@@ -436,13 +436,13 @@ module OpenAI
|
|
|
436
436
|
# @param metadata [Hash{Symbol=>String}, nil]
|
|
437
437
|
# Body param: Set of 16 key-value pairs that can be attached to an object. This
|
|
438
438
|
# can be useful for storing additional information about the object in a
|
|
439
|
-
# structured format
|
|
439
|
+
# structured format.
|
|
440
440
|
#
|
|
441
441
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
442
442
|
# a maximum length of 512 characters.
|
|
443
443
|
#
|
|
444
444
|
# @param model [Symbol, String, OpenAI::Models::Beta::ResponseCreateParams::Model]
|
|
445
|
-
# Body param: Model ID used to generate the response, like `gpt-6-astra`. OpenAI
|
|
445
|
+
# Body param: Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI
|
|
446
446
|
# offers a wide range of models with different capabilities, performance
|
|
447
447
|
# characteristics, and price points. Refer to the
|
|
448
448
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
@@ -840,10 +840,10 @@ module OpenAI
|
|
|
840
840
|
# For ZDR-compatible compaction details, see
|
|
841
841
|
# [Compaction (advanced)](https://developers.openai.com/api/docs/guides/conversation-state#compaction-advanced).
|
|
842
842
|
#
|
|
843
|
-
# @overload compact(model:, image: nil, input: nil, instructions: nil, previous_response_id: nil, prompt_cache_key: nil, prompt_cache_options: nil, prompt_cache_retention: nil, service_tier: nil, betas: nil, request_options: {})
|
|
843
|
+
# @overload compact(model:, image: nil, input: nil, instructions: nil, previous_response_id: nil, prompt_cache_key: nil, prompt_cache_options: nil, prompt_cache_retention: nil, safety_identifier: nil, service_tier: nil, betas: nil, request_options: {})
|
|
844
844
|
#
|
|
845
845
|
# @param model [Symbol, String, OpenAI::Models::Beta::ResponseCompactParams::Model, nil]
|
|
846
|
-
# Body param: Model ID used to generate the response, like `gpt-6-astra`. OpenAI
|
|
846
|
+
# Body param: Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI
|
|
847
847
|
# offers a wide range of models with different capabilities, performance
|
|
848
848
|
# characteristics, and price points. Refer to the
|
|
849
849
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
@@ -886,6 +886,9 @@ module OpenAI
|
|
|
886
886
|
# @param prompt_cache_retention [Symbol, OpenAI::Models::Beta::ResponseCompactParams::PromptCacheRetention, nil]
|
|
887
887
|
# Body param: How long to retain a prompt cache entry created by this request.
|
|
888
888
|
#
|
|
889
|
+
# @param safety_identifier [String, nil]
|
|
890
|
+
# Body param: A stable identifier used for safety monitoring and abuse detection.
|
|
891
|
+
#
|
|
889
892
|
# @param service_tier [Symbol, OpenAI::Models::Beta::ResponseCompactParams::ServiceTier, nil]
|
|
890
893
|
# Body param: Specifies the processing type used for serving the request. - If set
|
|
891
894
|
# to 'auto', then the request will be processed with the service tier configured
|
|
@@ -48,9 +48,9 @@ module OpenAI
|
|
|
48
48
|
# [audio](https://developers.openai.com/api/docs/guides/audio).
|
|
49
49
|
#
|
|
50
50
|
# @param model [String, Symbol, OpenAI::Models::ChatModel]
|
|
51
|
-
# Model ID used to generate the response, like `gpt-6-astra
|
|
52
|
-
#
|
|
53
|
-
#
|
|
51
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
52
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
53
|
+
# and price points. Refer to the
|
|
54
54
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
55
55
|
# compare available models.
|
|
56
56
|
#
|
|
@@ -116,8 +116,7 @@ module OpenAI
|
|
|
116
116
|
#
|
|
117
117
|
# @param metadata [Hash{Symbol=>String}, nil]
|
|
118
118
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
119
|
-
# for storing additional information about the object in a structured format
|
|
120
|
-
# querying for objects via API or the dashboard.
|
|
119
|
+
# for storing additional information about the object in a structured format.
|
|
121
120
|
#
|
|
122
121
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
123
122
|
# a maximum length of 512 characters.
|
|
@@ -255,7 +254,7 @@ module OpenAI
|
|
|
255
254
|
# parameter.
|
|
256
255
|
#
|
|
257
256
|
# @param stop [String, Array<String>, nil]
|
|
258
|
-
# Not supported with
|
|
257
|
+
# Not supported with reasoning models `o3` and `o4-mini`.
|
|
259
258
|
#
|
|
260
259
|
# Up to 4 sequences where the API will stop generating further tokens. The
|
|
261
260
|
# returned text will not contain the stop sequence.
|
|
@@ -386,9 +385,9 @@ module OpenAI
|
|
|
386
385
|
# [audio](https://developers.openai.com/api/docs/guides/audio).
|
|
387
386
|
#
|
|
388
387
|
# @param model [String, Symbol, OpenAI::Models::ChatModel]
|
|
389
|
-
# Model ID used to generate the response, like `gpt-6-astra
|
|
390
|
-
#
|
|
391
|
-
#
|
|
388
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
389
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
390
|
+
# and price points. Refer to the
|
|
392
391
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
393
392
|
# compare available models.
|
|
394
393
|
#
|
|
@@ -454,8 +453,7 @@ module OpenAI
|
|
|
454
453
|
#
|
|
455
454
|
# @param metadata [Hash{Symbol=>String}, nil]
|
|
456
455
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
457
|
-
# for storing additional information about the object in a structured format
|
|
458
|
-
# querying for objects via API or the dashboard.
|
|
456
|
+
# for storing additional information about the object in a structured format.
|
|
459
457
|
#
|
|
460
458
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
461
459
|
# a maximum length of 512 characters.
|
|
@@ -593,7 +591,7 @@ module OpenAI
|
|
|
593
591
|
# parameter.
|
|
594
592
|
#
|
|
595
593
|
# @param stop [String, Array<String>, nil]
|
|
596
|
-
# Not supported with
|
|
594
|
+
# Not supported with reasoning models `o3` and `o4-mini`.
|
|
597
595
|
#
|
|
598
596
|
# Up to 4 sequences where the API will stop generating further tokens. The
|
|
599
597
|
# returned text will not contain the stop sequence.
|
|
@@ -722,8 +720,7 @@ module OpenAI
|
|
|
722
720
|
#
|
|
723
721
|
# @param metadata [Hash{Symbol=>String}, nil]
|
|
724
722
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
725
|
-
# for storing additional information about the object in a structured format
|
|
726
|
-
# querying for objects via API or the dashboard.
|
|
723
|
+
# for storing additional information about the object in a structured format.
|
|
727
724
|
#
|
|
728
725
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
729
726
|
# a maximum length of 512 characters.
|
|
@@ -106,7 +106,7 @@ module OpenAI
|
|
|
106
106
|
# response parameter to monitor changes in the backend.
|
|
107
107
|
#
|
|
108
108
|
# @param stop [String, Array<String>, nil]
|
|
109
|
-
# Not supported with
|
|
109
|
+
# Not supported with reasoning models `o3` and `o4-mini`.
|
|
110
110
|
#
|
|
111
111
|
# Up to 4 sequences where the API will stop generating further tokens. The
|
|
112
112
|
# returned text will not contain the stop sequence.
|
|
@@ -261,7 +261,7 @@ module OpenAI
|
|
|
261
261
|
# response parameter to monitor changes in the backend.
|
|
262
262
|
#
|
|
263
263
|
# @param stop [String, Array<String>, nil]
|
|
264
|
-
# Not supported with
|
|
264
|
+
# Not supported with reasoning models `o3` and `o4-mini`.
|
|
265
265
|
#
|
|
266
266
|
# Up to 4 sequences where the API will stop generating further tokens. The
|
|
267
267
|
# returned text will not contain the stop sequence.
|
|
@@ -10,7 +10,7 @@ module OpenAI
|
|
|
10
10
|
|
|
11
11
|
# Create a conversation.
|
|
12
12
|
#
|
|
13
|
-
# @overload create(items: nil, metadata: nil, request_options: {})
|
|
13
|
+
# @overload create(items: nil, metadata: nil, safety_identifier: nil, request_options: {})
|
|
14
14
|
#
|
|
15
15
|
# @param items [Array<OpenAI::Models::Responses::EasyInputMessage, OpenAI::Models::Responses::ResponseInputItem::Message, OpenAI::Models::Responses::ResponseOutputMessage, OpenAI::Models::Responses::ResponseFileSearchToolCall, OpenAI::Models::Responses::ResponseComputerToolCall, OpenAI::Models::Responses::ResponseInputItem::ComputerCallOutput, OpenAI::Models::Responses::ResponseFunctionWebSearch, OpenAI::Models::Responses::ResponseFunctionToolCall, OpenAI::Models::Responses::ResponseInputItem::FunctionCallOutput, OpenAI::Models::Responses::ResponseInputItem::ToolSearchCall, OpenAI::Models::Responses::ResponseToolSearchOutputItemParam, OpenAI::Models::Responses::ResponseInputItem::AdditionalTools, OpenAI::Models::Responses::ResponseConfigurationUpdateItemParam, OpenAI::Models::Responses::ResponseReasoningItem, OpenAI::Models::Responses::ResponseCompactionItemParam, OpenAI::Models::Responses::ResponseInputItem::ImageGenerationCall, OpenAI::Models::Responses::ResponseCodeInterpreterToolCall, OpenAI::Models::Responses::ResponseInputItem::LocalShellCall, OpenAI::Models::Responses::ResponseInputItem::LocalShellCallOutput, OpenAI::Models::Responses::ResponseInputItem::ShellCall, OpenAI::Models::Responses::ResponseInputItem::ShellCallOutput, OpenAI::Models::Responses::ResponseInputItem::ApplyPatchCall, OpenAI::Models::Responses::ResponseInputItem::ApplyPatchCallOutput, OpenAI::Models::Responses::ResponseInputItem::McpListTools, OpenAI::Models::Responses::ResponseInputItem::McpApprovalRequest, OpenAI::Models::Responses::ResponseInputItem::McpApprovalResponse, OpenAI::Models::Responses::ResponseInputItem::McpCall, OpenAI::Models::Responses::ResponseCustomToolCallOutput, OpenAI::Models::Responses::ResponseCustomToolCall, OpenAI::Models::Responses::ResponseInputItem::CompactionTrigger, OpenAI::Models::Responses::ResponseInputItem::ItemReference, OpenAI::Models::Responses::ResponseInputItem::Program, OpenAI::Models::Responses::ResponseInputItem::ProgramOutput>, nil]
|
|
16
16
|
# Initial items to include in the conversation context. You may add up to 20 items
|
|
@@ -18,12 +18,14 @@ module OpenAI
|
|
|
18
18
|
#
|
|
19
19
|
# @param metadata [Hash{Symbol=>String}, nil]
|
|
20
20
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
21
|
-
# for storing additional information about the object in a structured format
|
|
22
|
-
# querying for objects via API or the dashboard.
|
|
21
|
+
# for storing additional information about the object in a structured format.
|
|
23
22
|
#
|
|
24
23
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
25
24
|
# a maximum length of 512 characters.
|
|
26
25
|
#
|
|
26
|
+
# @param safety_identifier [String, nil]
|
|
27
|
+
# A stable identifier used for safety monitoring and abuse detection.
|
|
28
|
+
#
|
|
27
29
|
# @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
28
30
|
#
|
|
29
31
|
# @return [OpenAI::Models::Conversations::Conversation]
|
|
@@ -23,8 +23,7 @@ module OpenAI
|
|
|
23
23
|
#
|
|
24
24
|
# @param metadata [Hash{Symbol=>String}, nil]
|
|
25
25
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
26
|
-
# for storing additional information about the object in a structured format
|
|
27
|
-
# querying for objects via API or the dashboard.
|
|
26
|
+
# for storing additional information about the object in a structured format.
|
|
28
27
|
#
|
|
29
28
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
30
29
|
# a maximum length of 512 characters.
|
|
@@ -29,8 +29,7 @@ module OpenAI
|
|
|
29
29
|
#
|
|
30
30
|
# @param metadata [Hash{Symbol=>String}, nil]
|
|
31
31
|
# 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.
|
|
32
|
+
# for storing additional information about the object in a structured format.
|
|
34
33
|
#
|
|
35
34
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
36
35
|
# a maximum length of 512 characters.
|
|
@@ -86,8 +85,7 @@ module OpenAI
|
|
|
86
85
|
#
|
|
87
86
|
# @param metadata [Hash{Symbol=>String}, nil]
|
|
88
87
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
89
|
-
# for storing additional information about the object in a structured format
|
|
90
|
-
# querying for objects via API or the dashboard.
|
|
88
|
+
# for storing additional information about the object in a structured format.
|
|
91
89
|
#
|
|
92
90
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
93
91
|
# a maximum length of 512 characters.
|
|
@@ -53,8 +53,7 @@ module OpenAI
|
|
|
53
53
|
#
|
|
54
54
|
# @param metadata [Hash{Symbol=>String}, nil]
|
|
55
55
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
56
|
-
# for storing additional information about the object in a structured format
|
|
57
|
-
# querying for objects via API or the dashboard.
|
|
56
|
+
# for storing additional information about the object in a structured format.
|
|
58
57
|
#
|
|
59
58
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
60
59
|
# a maximum length of 512 characters.
|
|
@@ -72,7 +71,7 @@ module OpenAI
|
|
|
72
71
|
# name.
|
|
73
72
|
#
|
|
74
73
|
# For example, a `suffix` of "custom-model-name" would produce a model name like
|
|
75
|
-
# `ft:gpt-
|
|
74
|
+
# `ft:gpt-4.1-mini-2025-04-14:openai:custom-model-name:7p4lURel`.
|
|
76
75
|
#
|
|
77
76
|
# @param validation_file [String, nil]
|
|
78
77
|
# The ID of an uploaded file that contains validation data.
|