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
|
@@ -190,12 +190,12 @@ module OpenAI
|
|
|
190
190
|
max_tool_calls: nil,
|
|
191
191
|
# Body param: Set of 16 key-value pairs that can be attached to an object. This
|
|
192
192
|
# can be useful for storing additional information about the object in a
|
|
193
|
-
# structured format
|
|
193
|
+
# structured format.
|
|
194
194
|
#
|
|
195
195
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
196
196
|
# a maximum length of 512 characters.
|
|
197
197
|
metadata: nil,
|
|
198
|
-
# Body param: Model ID used to generate the response, like `gpt-6-astra`. OpenAI
|
|
198
|
+
# Body param: Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI
|
|
199
199
|
# offers a wide range of models with different capabilities, performance
|
|
200
200
|
# characteristics, and price points. Refer to the
|
|
201
201
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
@@ -522,12 +522,12 @@ module OpenAI
|
|
|
522
522
|
max_tool_calls: nil,
|
|
523
523
|
# Body param: Set of 16 key-value pairs that can be attached to an object. This
|
|
524
524
|
# can be useful for storing additional information about the object in a
|
|
525
|
-
# structured format
|
|
525
|
+
# structured format.
|
|
526
526
|
#
|
|
527
527
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
528
528
|
# a maximum length of 512 characters.
|
|
529
529
|
metadata: nil,
|
|
530
|
-
# Body param: Model ID used to generate the response, like `gpt-6-astra`. OpenAI
|
|
530
|
+
# Body param: Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI
|
|
531
531
|
# offers a wide range of models with different capabilities, performance
|
|
532
532
|
# characteristics, and price points. Refer to the
|
|
533
533
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
@@ -839,6 +839,7 @@ module OpenAI
|
|
|
839
839
|
prompt_cache_key: T.nilable(String),
|
|
840
840
|
prompt_cache_options: T.nilable(OpenAI::Beta::ResponseCompactParams::PromptCacheOptions::OrHash),
|
|
841
841
|
prompt_cache_retention: T.nilable(OpenAI::Beta::ResponseCompactParams::PromptCacheRetention::OrSymbol),
|
|
842
|
+
safety_identifier: T.nilable(String),
|
|
842
843
|
service_tier: T.nilable(OpenAI::Beta::ResponseCompactParams::ServiceTier::OrSymbol),
|
|
843
844
|
betas: T::Array[OpenAI::Beta::ResponseCompactParams::Beta::OrSymbol],
|
|
844
845
|
request_options: OpenAI::RequestOptions::OrHash
|
|
@@ -846,7 +847,7 @@ module OpenAI
|
|
|
846
847
|
.returns(OpenAI::Beta::BetaCompactedResponse)
|
|
847
848
|
}
|
|
848
849
|
def compact(
|
|
849
|
-
# Body param: Model ID used to generate the response, like `gpt-6-astra`. OpenAI
|
|
850
|
+
# Body param: Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI
|
|
850
851
|
# offers a wide range of models with different capabilities, performance
|
|
851
852
|
# characteristics, and price points. Refer to the
|
|
852
853
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
@@ -882,6 +883,8 @@ module OpenAI
|
|
|
882
883
|
prompt_cache_options: nil,
|
|
883
884
|
# Body param: How long to retain a prompt cache entry created by this request.
|
|
884
885
|
prompt_cache_retention: nil,
|
|
886
|
+
# Body param: A stable identifier used for safety monitoring and abuse detection.
|
|
887
|
+
safety_identifier: nil,
|
|
885
888
|
# Body param: Specifies the processing type used for serving the request. - If set
|
|
886
889
|
# to 'auto', then the request will be processed with the service tier configured
|
|
887
890
|
# in the Project settings. Unless otherwise configured, the Project will use
|
|
@@ -116,9 +116,9 @@ module OpenAI
|
|
|
116
116
|
# [images](https://developers.openai.com/api/docs/guides/images-vision), and
|
|
117
117
|
# [audio](https://developers.openai.com/api/docs/guides/audio).
|
|
118
118
|
messages:,
|
|
119
|
-
# Model ID used to generate the response, like `gpt-6-astra
|
|
120
|
-
#
|
|
121
|
-
#
|
|
119
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
120
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
121
|
+
# and price points. Refer to the
|
|
122
122
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
123
123
|
# compare available models.
|
|
124
124
|
model:,
|
|
@@ -175,8 +175,7 @@ module OpenAI
|
|
|
175
175
|
# [o-series models](https://developers.openai.com/api/docs/guides/reasoning).
|
|
176
176
|
max_tokens: nil,
|
|
177
177
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
178
|
-
# for storing additional information about the object in a structured format
|
|
179
|
-
# querying for objects via API or the dashboard.
|
|
178
|
+
# for storing additional information about the object in a structured format.
|
|
180
179
|
#
|
|
181
180
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
182
181
|
# a maximum length of 512 characters.
|
|
@@ -299,7 +298,7 @@ module OpenAI
|
|
|
299
298
|
# request. This response value may be different from the value set in the
|
|
300
299
|
# parameter.
|
|
301
300
|
service_tier: nil,
|
|
302
|
-
# Not supported with
|
|
301
|
+
# Not supported with reasoning models `o3` and `o4-mini`.
|
|
303
302
|
#
|
|
304
303
|
# Up to 4 sequences where the API will stop generating further tokens. The
|
|
305
304
|
# returned text will not contain the stop sequence.
|
|
@@ -462,9 +461,9 @@ module OpenAI
|
|
|
462
461
|
# [images](https://developers.openai.com/api/docs/guides/images-vision), and
|
|
463
462
|
# [audio](https://developers.openai.com/api/docs/guides/audio).
|
|
464
463
|
messages:,
|
|
465
|
-
# Model ID used to generate the response, like `gpt-6-astra
|
|
466
|
-
#
|
|
467
|
-
#
|
|
464
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
465
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
466
|
+
# and price points. Refer to the
|
|
468
467
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
469
468
|
# compare available models.
|
|
470
469
|
model:,
|
|
@@ -521,8 +520,7 @@ module OpenAI
|
|
|
521
520
|
# [o-series models](https://developers.openai.com/api/docs/guides/reasoning).
|
|
522
521
|
max_tokens: nil,
|
|
523
522
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
524
|
-
# for storing additional information about the object in a structured format
|
|
525
|
-
# querying for objects via API or the dashboard.
|
|
523
|
+
# for storing additional information about the object in a structured format.
|
|
526
524
|
#
|
|
527
525
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
528
526
|
# a maximum length of 512 characters.
|
|
@@ -645,7 +643,7 @@ module OpenAI
|
|
|
645
643
|
# request. This response value may be different from the value set in the
|
|
646
644
|
# parameter.
|
|
647
645
|
service_tier: nil,
|
|
648
|
-
# Not supported with
|
|
646
|
+
# Not supported with reasoning models `o3` and `o4-mini`.
|
|
649
647
|
#
|
|
650
648
|
# Up to 4 sequences where the API will stop generating further tokens. The
|
|
651
649
|
# returned text will not contain the stop sequence.
|
|
@@ -741,8 +739,7 @@ module OpenAI
|
|
|
741
739
|
# The ID of the chat completion to update.
|
|
742
740
|
completion_id,
|
|
743
741
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
744
|
-
# for storing additional information about the object in a structured format
|
|
745
|
-
# querying for objects via API or the dashboard.
|
|
742
|
+
# for storing additional information about the object in a structured format.
|
|
746
743
|
#
|
|
747
744
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
748
745
|
# a maximum length of 512 characters.
|
|
@@ -118,7 +118,7 @@ module OpenAI
|
|
|
118
118
|
# Determinism is not guaranteed, and you should refer to the `system_fingerprint`
|
|
119
119
|
# response parameter to monitor changes in the backend.
|
|
120
120
|
seed: nil,
|
|
121
|
-
# Not supported with
|
|
121
|
+
# Not supported with reasoning models `o3` and `o4-mini`.
|
|
122
122
|
#
|
|
123
123
|
# Up to 4 sequences where the API will stop generating further tokens. The
|
|
124
124
|
# returned text will not contain the stop sequence.
|
|
@@ -263,7 +263,7 @@ module OpenAI
|
|
|
263
263
|
# Determinism is not guaranteed, and you should refer to the `system_fingerprint`
|
|
264
264
|
# response parameter to monitor changes in the backend.
|
|
265
265
|
seed: nil,
|
|
266
|
-
# Not supported with
|
|
266
|
+
# Not supported with reasoning models `o3` and `o4-mini`.
|
|
267
267
|
#
|
|
268
268
|
# Up to 4 sequences where the API will stop generating further tokens. The
|
|
269
269
|
# returned text will not contain the stop sequence.
|
|
@@ -53,6 +53,7 @@ module OpenAI
|
|
|
53
53
|
]
|
|
54
54
|
),
|
|
55
55
|
metadata: T.nilable(T::Hash[Symbol, String]),
|
|
56
|
+
safety_identifier: T.nilable(String),
|
|
56
57
|
request_options: OpenAI::RequestOptions::OrHash
|
|
57
58
|
)
|
|
58
59
|
.returns(OpenAI::Conversations::Conversation)
|
|
@@ -62,12 +63,13 @@ module OpenAI
|
|
|
62
63
|
# at a time.
|
|
63
64
|
items: nil,
|
|
64
65
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
65
|
-
# for storing additional information about the object in a structured format
|
|
66
|
-
# querying for objects via API or the dashboard.
|
|
66
|
+
# for storing additional information about the object in a structured format.
|
|
67
67
|
#
|
|
68
68
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
69
69
|
# a maximum length of 512 characters.
|
|
70
70
|
metadata: nil,
|
|
71
|
+
# A stable identifier used for safety monitoring and abuse detection.
|
|
72
|
+
safety_identifier: nil,
|
|
71
73
|
request_options: {}
|
|
72
74
|
)
|
|
73
75
|
end
|
|
@@ -35,8 +35,7 @@ module OpenAI
|
|
|
35
35
|
# Details about the run's data source.
|
|
36
36
|
data_source:,
|
|
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.
|
|
@@ -48,8 +48,7 @@ module OpenAI
|
|
|
48
48
|
# namespace (ie, `{{sample.output_text}}`).
|
|
49
49
|
testing_criteria:,
|
|
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.
|
|
@@ -87,8 +86,7 @@ module OpenAI
|
|
|
87
86
|
# The ID of the evaluation to update.
|
|
88
87
|
eval_id,
|
|
89
88
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
90
|
-
# for storing additional information about the object in a structured format
|
|
91
|
-
# querying for objects via API or the dashboard.
|
|
89
|
+
# for storing additional information about the object in a structured format.
|
|
92
90
|
#
|
|
93
91
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
94
92
|
# a maximum length of 512 characters.
|
|
@@ -64,8 +64,7 @@ module OpenAI
|
|
|
64
64
|
# A list of integrations to enable for your fine-tuning job.
|
|
65
65
|
integrations: nil,
|
|
66
66
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
67
|
-
# for storing additional information about the object in a structured format
|
|
68
|
-
# querying for objects via API or the dashboard.
|
|
67
|
+
# for storing additional information about the object in a structured format.
|
|
69
68
|
#
|
|
70
69
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
71
70
|
# a maximum length of 512 characters.
|
|
@@ -80,7 +79,7 @@ module OpenAI
|
|
|
80
79
|
# name.
|
|
81
80
|
#
|
|
82
81
|
# For example, a `suffix` of "custom-model-name" would produce a model name like
|
|
83
|
-
# `ft:gpt-
|
|
82
|
+
# `ft:gpt-4.1-mini-2025-04-14:openai:custom-model-name:7p4lURel`.
|
|
84
83
|
suffix: nil,
|
|
85
84
|
# The ID of an uploaded file that contains validation data.
|
|
86
85
|
#
|
|
@@ -184,15 +184,14 @@ module OpenAI
|
|
|
184
184
|
# ignored.
|
|
185
185
|
max_tool_calls: nil,
|
|
186
186
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
187
|
-
# for storing additional information about the object in a structured format
|
|
188
|
-
# querying for objects via API or the dashboard.
|
|
187
|
+
# for storing additional information about the object in a structured format.
|
|
189
188
|
#
|
|
190
189
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
191
190
|
# a maximum length of 512 characters.
|
|
192
191
|
metadata: nil,
|
|
193
|
-
# Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a
|
|
194
|
-
# range of models with different capabilities, performance characteristics,
|
|
195
|
-
# price points. Refer to the
|
|
192
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
193
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
194
|
+
# and price points. Refer to the
|
|
196
195
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
197
196
|
# compare available models.
|
|
198
197
|
model: nil,
|
|
@@ -505,15 +504,14 @@ module OpenAI
|
|
|
505
504
|
# ignored.
|
|
506
505
|
max_tool_calls: nil,
|
|
507
506
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
508
|
-
# for storing additional information about the object in a structured format
|
|
509
|
-
# querying for objects via API or the dashboard.
|
|
507
|
+
# for storing additional information about the object in a structured format.
|
|
510
508
|
#
|
|
511
509
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
512
510
|
# a maximum length of 512 characters.
|
|
513
511
|
metadata: nil,
|
|
514
|
-
# Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a
|
|
515
|
-
# range of models with different capabilities, performance characteristics,
|
|
516
|
-
# price points. Refer to the
|
|
512
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
513
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
514
|
+
# and price points. Refer to the
|
|
517
515
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
518
516
|
# compare available models.
|
|
519
517
|
model: nil,
|
|
@@ -804,15 +802,16 @@ module OpenAI
|
|
|
804
802
|
prompt_cache_key: T.nilable(String),
|
|
805
803
|
prompt_cache_options: T.nilable(OpenAI::Responses::ResponseCompactParams::PromptCacheOptions::OrHash),
|
|
806
804
|
prompt_cache_retention: T.nilable(OpenAI::Responses::ResponseCompactParams::PromptCacheRetention::OrSymbol),
|
|
805
|
+
safety_identifier: T.nilable(String),
|
|
807
806
|
service_tier: T.nilable(OpenAI::Responses::ResponseCompactParams::ServiceTier::OrSymbol),
|
|
808
807
|
request_options: OpenAI::RequestOptions::OrHash
|
|
809
808
|
)
|
|
810
809
|
.returns(OpenAI::Responses::CompactedResponse)
|
|
811
810
|
}
|
|
812
811
|
def compact(
|
|
813
|
-
# Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a
|
|
814
|
-
# range of models with different capabilities, performance characteristics,
|
|
815
|
-
# price points. Refer to the
|
|
812
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
813
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
814
|
+
# and price points. Refer to the
|
|
816
815
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
817
816
|
# compare available models.
|
|
818
817
|
model:,
|
|
@@ -844,6 +843,8 @@ module OpenAI
|
|
|
844
843
|
prompt_cache_options: nil,
|
|
845
844
|
# How long to retain a prompt cache entry created by this request.
|
|
846
845
|
prompt_cache_retention: nil,
|
|
846
|
+
# A stable identifier used for safety monitoring and abuse detection.
|
|
847
|
+
safety_identifier: nil,
|
|
847
848
|
# Specifies the processing type used for serving the request. - If set to 'auto',
|
|
848
849
|
# then the request will be processed with the service tier configured in the
|
|
849
850
|
# Project settings. Unless otherwise configured, the Project will use 'default'. -
|
|
@@ -41,8 +41,7 @@ module OpenAI
|
|
|
41
41
|
# can access files.
|
|
42
42
|
file_ids: nil,
|
|
43
43
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
44
|
-
# for storing additional information about the object in a structured format
|
|
45
|
-
# querying for objects via API or the dashboard.
|
|
44
|
+
# for storing additional information about the object in a structured format.
|
|
46
45
|
#
|
|
47
46
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
48
47
|
# a maximum length of 512 characters.
|
|
@@ -81,8 +80,7 @@ module OpenAI
|
|
|
81
80
|
# The expiration policy for a vector store.
|
|
82
81
|
expires_after: nil,
|
|
83
82
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
84
|
-
# for storing additional information about the object in a structured format
|
|
85
|
-
# querying for objects via API or the dashboard.
|
|
83
|
+
# for storing additional information about the object in a structured format.
|
|
86
84
|
#
|
|
87
85
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
88
86
|
# a maximum length of 512 characters.
|
|
@@ -10,7 +10,8 @@ module OpenAI
|
|
|
10
10
|
enforcement: OpenAI::Admin::Organization::OrganizationSpendLimit::Enforcement,
|
|
11
11
|
interval: OpenAI::Models::Admin::Organization::OrganizationSpendLimit::interval,
|
|
12
12
|
?object: :"organization.spend_limit",
|
|
13
|
-
threshold_amount: Integer
|
|
13
|
+
threshold_amount: Integer,
|
|
14
|
+
?notification_channel: OpenAI::Admin::Organization::OrganizationSpendLimit::NotificationChannel
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
class OrganizationSpendLimit < OpenAI::Internal::Type::BaseModel
|
|
@@ -30,6 +31,14 @@ module OpenAI
|
|
|
30
31
|
# The hard spend limit amount, in cents.
|
|
31
32
|
attr_accessor threshold_amount: Integer
|
|
32
33
|
|
|
34
|
+
# Email notifications sent when the hard spend limit is reached.
|
|
35
|
+
attr_reader notification_channel: OpenAI::Admin::Organization::OrganizationSpendLimit::NotificationChannel?
|
|
36
|
+
|
|
37
|
+
# Email notifications sent when the hard spend limit is reached.
|
|
38
|
+
def notification_channel=: (
|
|
39
|
+
OpenAI::Admin::Organization::OrganizationSpendLimit::NotificationChannel
|
|
40
|
+
) -> OpenAI::Admin::Organization::OrganizationSpendLimit::NotificationChannel
|
|
41
|
+
|
|
33
42
|
# @param currency
|
|
34
43
|
# The currency for the threshold amount. Currently, only `USD` is supported.
|
|
35
44
|
# @param enforcement
|
|
@@ -39,6 +48,8 @@ module OpenAI
|
|
|
39
48
|
# `month` is supported.
|
|
40
49
|
# @param threshold_amount
|
|
41
50
|
# The hard spend limit amount, in cents.
|
|
51
|
+
# @param notification_channel
|
|
52
|
+
# Email notifications sent when the hard spend limit is reached.
|
|
42
53
|
# @param object
|
|
43
54
|
# The object type, which is always `organization.spend_limit`.
|
|
44
55
|
def initialize: (
|
|
@@ -46,6 +57,7 @@ module OpenAI
|
|
|
46
57
|
enforcement: OpenAI::Admin::Organization::OrganizationSpendLimit::Enforcement,
|
|
47
58
|
interval: OpenAI::Models::Admin::Organization::OrganizationSpendLimit::interval,
|
|
48
59
|
threshold_amount: Integer,
|
|
60
|
+
?notification_channel: OpenAI::Admin::Organization::OrganizationSpendLimit::NotificationChannel,
|
|
49
61
|
?object: :"organization.spend_limit"
|
|
50
62
|
) -> void
|
|
51
63
|
|
|
@@ -54,7 +66,8 @@ module OpenAI
|
|
|
54
66
|
enforcement: OpenAI::Admin::Organization::OrganizationSpendLimit::Enforcement,
|
|
55
67
|
interval: OpenAI::Models::Admin::Organization::OrganizationSpendLimit::interval,
|
|
56
68
|
?object: :"organization.spend_limit",
|
|
57
|
-
threshold_amount: Integer
|
|
69
|
+
threshold_amount: Integer,
|
|
70
|
+
?notification_channel: OpenAI::Admin::Organization::OrganizationSpendLimit::NotificationChannel
|
|
58
71
|
}
|
|
59
72
|
|
|
60
73
|
type currency = String | :USD
|
|
@@ -107,6 +120,33 @@ module OpenAI
|
|
|
107
120
|
|
|
108
121
|
MONTH: :month
|
|
109
122
|
end
|
|
123
|
+
|
|
124
|
+
type notification_channel =
|
|
125
|
+
{
|
|
126
|
+
recipients: ::Array[String],
|
|
127
|
+
?type: :email,
|
|
128
|
+
?subject_prefix: String?
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
class NotificationChannel < OpenAI::Internal::Type::BaseModel
|
|
132
|
+
attr_accessor recipients: ::Array[String]
|
|
133
|
+
|
|
134
|
+
attr_accessor type: :email
|
|
135
|
+
|
|
136
|
+
attr_accessor subject_prefix: String?
|
|
137
|
+
|
|
138
|
+
def initialize: (
|
|
139
|
+
recipients: ::Array[String],
|
|
140
|
+
?subject_prefix: String?,
|
|
141
|
+
?type: :email
|
|
142
|
+
) -> void
|
|
143
|
+
|
|
144
|
+
def to_hash: -> {
|
|
145
|
+
recipients: ::Array[String],
|
|
146
|
+
?type: :email,
|
|
147
|
+
?subject_prefix: String?
|
|
148
|
+
}
|
|
149
|
+
end
|
|
110
150
|
end
|
|
111
151
|
end
|
|
112
152
|
end
|
|
@@ -11,7 +11,8 @@ module OpenAI
|
|
|
11
11
|
enforcement: OpenAI::Admin::Organization::Projects::ProjectSpendLimit::Enforcement,
|
|
12
12
|
interval: OpenAI::Models::Admin::Organization::Projects::ProjectSpendLimit::interval,
|
|
13
13
|
?object: :"project.spend_limit",
|
|
14
|
-
threshold_amount: Integer
|
|
14
|
+
threshold_amount: Integer,
|
|
15
|
+
?notification_channel: OpenAI::Admin::Organization::Projects::ProjectSpendLimit::NotificationChannel
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
class ProjectSpendLimit < OpenAI::Internal::Type::BaseModel
|
|
@@ -31,6 +32,14 @@ module OpenAI
|
|
|
31
32
|
# The hard spend limit amount, in cents.
|
|
32
33
|
attr_accessor threshold_amount: Integer
|
|
33
34
|
|
|
35
|
+
# Email notifications sent when the hard spend limit is reached.
|
|
36
|
+
attr_reader notification_channel: OpenAI::Admin::Organization::Projects::ProjectSpendLimit::NotificationChannel?
|
|
37
|
+
|
|
38
|
+
# Email notifications sent when the hard spend limit is reached.
|
|
39
|
+
def notification_channel=: (
|
|
40
|
+
OpenAI::Admin::Organization::Projects::ProjectSpendLimit::NotificationChannel
|
|
41
|
+
) -> OpenAI::Admin::Organization::Projects::ProjectSpendLimit::NotificationChannel
|
|
42
|
+
|
|
34
43
|
# @param currency
|
|
35
44
|
# The currency for the threshold amount. Currently, only `USD` is supported.
|
|
36
45
|
# @param enforcement
|
|
@@ -40,6 +49,8 @@ module OpenAI
|
|
|
40
49
|
# `month` is supported.
|
|
41
50
|
# @param threshold_amount
|
|
42
51
|
# The hard spend limit amount, in cents.
|
|
52
|
+
# @param notification_channel
|
|
53
|
+
# Email notifications sent when the hard spend limit is reached.
|
|
43
54
|
# @param object
|
|
44
55
|
# The object type, which is always `project.spend_limit`.
|
|
45
56
|
def initialize: (
|
|
@@ -47,6 +58,7 @@ module OpenAI
|
|
|
47
58
|
enforcement: OpenAI::Admin::Organization::Projects::ProjectSpendLimit::Enforcement,
|
|
48
59
|
interval: OpenAI::Models::Admin::Organization::Projects::ProjectSpendLimit::interval,
|
|
49
60
|
threshold_amount: Integer,
|
|
61
|
+
?notification_channel: OpenAI::Admin::Organization::Projects::ProjectSpendLimit::NotificationChannel,
|
|
50
62
|
?object: :"project.spend_limit"
|
|
51
63
|
) -> void
|
|
52
64
|
|
|
@@ -55,7 +67,8 @@ module OpenAI
|
|
|
55
67
|
enforcement: OpenAI::Admin::Organization::Projects::ProjectSpendLimit::Enforcement,
|
|
56
68
|
interval: OpenAI::Models::Admin::Organization::Projects::ProjectSpendLimit::interval,
|
|
57
69
|
?object: :"project.spend_limit",
|
|
58
|
-
threshold_amount: Integer
|
|
70
|
+
threshold_amount: Integer,
|
|
71
|
+
?notification_channel: OpenAI::Admin::Organization::Projects::ProjectSpendLimit::NotificationChannel
|
|
59
72
|
}
|
|
60
73
|
|
|
61
74
|
type currency = String | :USD
|
|
@@ -108,6 +121,33 @@ module OpenAI
|
|
|
108
121
|
|
|
109
122
|
MONTH: :month
|
|
110
123
|
end
|
|
124
|
+
|
|
125
|
+
type notification_channel =
|
|
126
|
+
{
|
|
127
|
+
recipients: ::Array[String],
|
|
128
|
+
?type: :email,
|
|
129
|
+
?subject_prefix: String?
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
class NotificationChannel < OpenAI::Internal::Type::BaseModel
|
|
133
|
+
attr_accessor recipients: ::Array[String]
|
|
134
|
+
|
|
135
|
+
attr_accessor type: :email
|
|
136
|
+
|
|
137
|
+
attr_accessor subject_prefix: String?
|
|
138
|
+
|
|
139
|
+
def initialize: (
|
|
140
|
+
recipients: ::Array[String],
|
|
141
|
+
?subject_prefix: String?,
|
|
142
|
+
?type: :email
|
|
143
|
+
) -> void
|
|
144
|
+
|
|
145
|
+
def to_hash: -> {
|
|
146
|
+
recipients: ::Array[String],
|
|
147
|
+
?type: :email,
|
|
148
|
+
?subject_prefix: String?
|
|
149
|
+
}
|
|
150
|
+
end
|
|
111
151
|
end
|
|
112
152
|
end
|
|
113
153
|
end
|
|
@@ -9,6 +9,7 @@ module OpenAI
|
|
|
9
9
|
currency: OpenAI::Models::Admin::Organization::Projects::SpendLimitUpdateParams::currency,
|
|
10
10
|
interval: OpenAI::Models::Admin::Organization::Projects::SpendLimitUpdateParams::interval,
|
|
11
11
|
threshold_amount: Integer,
|
|
12
|
+
?notification_channel: OpenAI::Admin::Organization::Projects::SpendLimitUpdateParams::NotificationChannel?,
|
|
12
13
|
?request_options: OpenAI::request_opts
|
|
13
14
|
}
|
|
14
15
|
|
|
@@ -28,6 +29,10 @@ module OpenAI
|
|
|
28
29
|
# The hard spend limit amount, in cents.
|
|
29
30
|
attr_accessor threshold_amount: Integer
|
|
30
31
|
|
|
32
|
+
# Configure email notifications when the spend limit is reached. Leave this out to
|
|
33
|
+
# keep the current settings, or send null to reset to owner-only notifications.
|
|
34
|
+
attr_accessor notification_channel: OpenAI::Admin::Organization::Projects::SpendLimitUpdateParams::NotificationChannel?
|
|
35
|
+
|
|
31
36
|
# @param currency
|
|
32
37
|
# The currency for the threshold amount. Currently, only `USD` is supported.
|
|
33
38
|
# @param interval
|
|
@@ -35,11 +40,15 @@ module OpenAI
|
|
|
35
40
|
# `month` is supported.
|
|
36
41
|
# @param threshold_amount
|
|
37
42
|
# The hard spend limit amount, in cents.
|
|
43
|
+
# @param notification_channel
|
|
44
|
+
# Configure email notifications when the spend limit is reached. Leave this out to
|
|
45
|
+
# keep the current settings, or send null to reset to owner-only notifications.
|
|
38
46
|
def initialize: (
|
|
39
47
|
project_id: String,
|
|
40
48
|
currency: OpenAI::Models::Admin::Organization::Projects::SpendLimitUpdateParams::currency,
|
|
41
49
|
interval: OpenAI::Models::Admin::Organization::Projects::SpendLimitUpdateParams::interval,
|
|
42
50
|
threshold_amount: Integer,
|
|
51
|
+
?notification_channel: OpenAI::Admin::Organization::Projects::SpendLimitUpdateParams::NotificationChannel?,
|
|
43
52
|
?request_options: OpenAI::request_opts
|
|
44
53
|
) -> void
|
|
45
54
|
|
|
@@ -48,6 +57,7 @@ module OpenAI
|
|
|
48
57
|
currency: OpenAI::Models::Admin::Organization::Projects::SpendLimitUpdateParams::currency,
|
|
49
58
|
interval: OpenAI::Models::Admin::Organization::Projects::SpendLimitUpdateParams::interval,
|
|
50
59
|
threshold_amount: Integer,
|
|
60
|
+
?notification_channel: OpenAI::Admin::Organization::Projects::SpendLimitUpdateParams::NotificationChannel?,
|
|
51
61
|
?request_options: OpenAI::RequestOptions
|
|
52
62
|
}
|
|
53
63
|
|
|
@@ -70,6 +80,44 @@ module OpenAI
|
|
|
70
80
|
|
|
71
81
|
def self?.values: -> ::Array[OpenAI::Models::Admin::Organization::Projects::SpendLimitUpdateParams::interval]
|
|
72
82
|
end
|
|
83
|
+
|
|
84
|
+
type notification_channel =
|
|
85
|
+
{
|
|
86
|
+
?type: :email,
|
|
87
|
+
?recipients: ::Array[String],
|
|
88
|
+
?subject_prefix: String?
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
class NotificationChannel < OpenAI::Internal::Type::BaseModel
|
|
92
|
+
attr_accessor type: :email
|
|
93
|
+
|
|
94
|
+
# Additional email recipients. Omit to keep them unchanged; send [] to clear them.
|
|
95
|
+
attr_reader recipients: ::Array[String]?
|
|
96
|
+
|
|
97
|
+
# Additional email recipients. Omit to keep them unchanged; send [] to clear them.
|
|
98
|
+
def recipients=: (::Array[String]) -> ::Array[String]
|
|
99
|
+
|
|
100
|
+
# Email subject prefix. Omit to keep it unchanged; send null or an empty string to
|
|
101
|
+
# clear it.
|
|
102
|
+
attr_accessor subject_prefix: String?
|
|
103
|
+
|
|
104
|
+
# @param recipients
|
|
105
|
+
# Additional email recipients. Omit to keep them unchanged; send [] to clear them.
|
|
106
|
+
# @param subject_prefix
|
|
107
|
+
# Email subject prefix. Omit to keep it unchanged; send null or an empty string to
|
|
108
|
+
# clear it.
|
|
109
|
+
def initialize: (
|
|
110
|
+
?recipients: ::Array[String],
|
|
111
|
+
?subject_prefix: String?,
|
|
112
|
+
?type: :email
|
|
113
|
+
) -> void
|
|
114
|
+
|
|
115
|
+
def to_hash: -> {
|
|
116
|
+
?type: :email,
|
|
117
|
+
?recipients: ::Array[String],
|
|
118
|
+
?subject_prefix: String?
|
|
119
|
+
}
|
|
120
|
+
end
|
|
73
121
|
end
|
|
74
122
|
end
|
|
75
123
|
end
|
|
@@ -7,6 +7,7 @@ module OpenAI
|
|
|
7
7
|
currency: OpenAI::Models::Admin::Organization::SpendLimitUpdateParams::currency,
|
|
8
8
|
interval: OpenAI::Models::Admin::Organization::SpendLimitUpdateParams::interval,
|
|
9
9
|
threshold_amount: Integer,
|
|
10
|
+
?notification_channel: OpenAI::Admin::Organization::SpendLimitUpdateParams::NotificationChannel?,
|
|
10
11
|
?request_options: OpenAI::request_opts
|
|
11
12
|
}
|
|
12
13
|
|
|
@@ -24,6 +25,10 @@ module OpenAI
|
|
|
24
25
|
# The hard spend limit amount, in cents.
|
|
25
26
|
attr_accessor threshold_amount: Integer
|
|
26
27
|
|
|
28
|
+
# Configure email notifications when the spend limit is reached. Leave this out to
|
|
29
|
+
# keep the current settings, or send null to reset to owner-only notifications.
|
|
30
|
+
attr_accessor notification_channel: OpenAI::Admin::Organization::SpendLimitUpdateParams::NotificationChannel?
|
|
31
|
+
|
|
27
32
|
# @param currency
|
|
28
33
|
# The currency for the threshold amount. Currently, only `USD` is supported.
|
|
29
34
|
# @param interval
|
|
@@ -31,10 +36,14 @@ module OpenAI
|
|
|
31
36
|
# `month` is supported.
|
|
32
37
|
# @param threshold_amount
|
|
33
38
|
# The hard spend limit amount, in cents.
|
|
39
|
+
# @param notification_channel
|
|
40
|
+
# Configure email notifications when the spend limit is reached. Leave this out to
|
|
41
|
+
# keep the current settings, or send null to reset to owner-only notifications.
|
|
34
42
|
def initialize: (
|
|
35
43
|
currency: OpenAI::Models::Admin::Organization::SpendLimitUpdateParams::currency,
|
|
36
44
|
interval: OpenAI::Models::Admin::Organization::SpendLimitUpdateParams::interval,
|
|
37
45
|
threshold_amount: Integer,
|
|
46
|
+
?notification_channel: OpenAI::Admin::Organization::SpendLimitUpdateParams::NotificationChannel?,
|
|
38
47
|
?request_options: OpenAI::request_opts
|
|
39
48
|
) -> void
|
|
40
49
|
|
|
@@ -42,6 +51,7 @@ module OpenAI
|
|
|
42
51
|
currency: OpenAI::Models::Admin::Organization::SpendLimitUpdateParams::currency,
|
|
43
52
|
interval: OpenAI::Models::Admin::Organization::SpendLimitUpdateParams::interval,
|
|
44
53
|
threshold_amount: Integer,
|
|
54
|
+
?notification_channel: OpenAI::Admin::Organization::SpendLimitUpdateParams::NotificationChannel?,
|
|
45
55
|
?request_options: OpenAI::RequestOptions
|
|
46
56
|
}
|
|
47
57
|
|
|
@@ -64,6 +74,44 @@ module OpenAI
|
|
|
64
74
|
|
|
65
75
|
def self?.values: -> ::Array[OpenAI::Models::Admin::Organization::SpendLimitUpdateParams::interval]
|
|
66
76
|
end
|
|
77
|
+
|
|
78
|
+
type notification_channel =
|
|
79
|
+
{
|
|
80
|
+
?type: :email,
|
|
81
|
+
?recipients: ::Array[String],
|
|
82
|
+
?subject_prefix: String?
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
class NotificationChannel < OpenAI::Internal::Type::BaseModel
|
|
86
|
+
attr_accessor type: :email
|
|
87
|
+
|
|
88
|
+
# Additional email recipients. Omit to keep them unchanged; send [] to clear them.
|
|
89
|
+
attr_reader recipients: ::Array[String]?
|
|
90
|
+
|
|
91
|
+
# Additional email recipients. Omit to keep them unchanged; send [] to clear them.
|
|
92
|
+
def recipients=: (::Array[String]) -> ::Array[String]
|
|
93
|
+
|
|
94
|
+
# Email subject prefix. Omit to keep it unchanged; send null or an empty string to
|
|
95
|
+
# clear it.
|
|
96
|
+
attr_accessor subject_prefix: String?
|
|
97
|
+
|
|
98
|
+
# @param recipients
|
|
99
|
+
# Additional email recipients. Omit to keep them unchanged; send [] to clear them.
|
|
100
|
+
# @param subject_prefix
|
|
101
|
+
# Email subject prefix. Omit to keep it unchanged; send null or an empty string to
|
|
102
|
+
# clear it.
|
|
103
|
+
def initialize: (
|
|
104
|
+
?recipients: ::Array[String],
|
|
105
|
+
?subject_prefix: String?,
|
|
106
|
+
?type: :email
|
|
107
|
+
) -> void
|
|
108
|
+
|
|
109
|
+
def to_hash: -> {
|
|
110
|
+
?type: :email,
|
|
111
|
+
?recipients: ::Array[String],
|
|
112
|
+
?subject_prefix: String?
|
|
113
|
+
}
|
|
114
|
+
end
|
|
67
115
|
end
|
|
68
116
|
end
|
|
69
117
|
end
|