openai 0.116.0 → 0.118.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 +20 -0
- data/README.md +1 -1
- data/lib/openai/models/admin/organization/projects/project_optional_service_tier.rb +24 -0
- data/lib/openai/models/admin/organization/projects/project_service_tier_settings.rb +88 -0
- data/lib/openai/models/admin/organization/projects/service_tier_setting_retrieve_params.rb +29 -0
- data/lib/openai/models/admin/organization/projects/service_tier_setting_update_params.rb +92 -0
- data/lib/openai/models/admin/organization/workload_identity_provider.rb +158 -0
- data/lib/openai/models/admin/organization/workload_identity_provider_create_params.rb +143 -0
- data/lib/openai/models/admin/organization/workload_identity_provider_delete_params.rb +24 -0
- data/lib/openai/models/admin/organization/workload_identity_provider_deleted.rb +32 -0
- data/lib/openai/models/admin/organization/workload_identity_provider_list_params.rb +58 -0
- data/lib/openai/models/admin/organization/workload_identity_provider_retrieve_params.rb +24 -0
- data/lib/openai/models/admin/organization/workload_identity_provider_update_params.rb +143 -0
- data/lib/openai/models/admin/organization/workload_identity_providers/federation_rule.rb +161 -0
- data/lib/openai/models/admin/organization/workload_identity_providers/federation_rule_create_params.rb +144 -0
- data/lib/openai/models/admin/organization/workload_identity_providers/federation_rule_delete_params.rb +32 -0
- data/lib/openai/models/admin/organization/workload_identity_providers/federation_rule_deleted.rb +34 -0
- data/lib/openai/models/admin/organization/workload_identity_providers/federation_rule_list_params.rb +85 -0
- data/lib/openai/models/admin/organization/workload_identity_providers/federation_rule_retrieve_params.rb +32 -0
- data/lib/openai/models/admin/organization/workload_identity_providers/federation_rule_update_params.rb +134 -0
- data/lib/openai/models/beta/beta_response.rb +1 -0
- data/lib/openai/models/beta/beta_response_usage.rb +33 -1
- data/lib/openai/models/beta/beta_responses_client_event.rb +10 -9
- data/lib/openai/models/beta/chatkit/chat_session_workflow_param.rb +5 -3
- data/lib/openai/models/beta/chatkit_workflow.rb +5 -3
- data/lib/openai/models/beta/response_compact_params.rb +3 -3
- data/lib/openai/models/beta/response_create_params.rb +10 -9
- data/lib/openai/models/chat/completion_create_params.rb +3 -3
- data/lib/openai/models/responses/response.rb +1 -0
- data/lib/openai/models/responses/response_compact_params.rb +3 -3
- data/lib/openai/models/responses/response_create_params.rb +10 -9
- data/lib/openai/models/responses/response_usage.rb +33 -1
- data/lib/openai/models/responses/responses_client_event.rb +10 -9
- data/lib/openai/resources/admin/organization/projects/service_tier_settings.rb +77 -0
- data/lib/openai/resources/admin/organization/projects.rb +6 -0
- data/lib/openai/resources/admin/organization/workload_identity_providers/federation_rules.rb +198 -0
- data/lib/openai/resources/admin/organization/workload_identity_providers.rb +148 -0
- data/lib/openai/resources/admin/organization.rb +6 -0
- data/lib/openai/resources/beta/responses.rb +6 -6
- data/lib/openai/resources/chat/completions.rb +2 -2
- data/lib/openai/resources/responses.rb +3 -3
- data/lib/openai/version.rb +1 -1
- data/lib/openai.rb +21 -0
- data/rbi/openai/models/admin/organization/projects/project_optional_service_tier.rbi +45 -0
- data/rbi/openai/models/admin/organization/projects/project_service_tier_settings.rbi +143 -0
- data/rbi/openai/models/admin/organization/projects/service_tier_setting_retrieve_params.rbi +63 -0
- data/rbi/openai/models/admin/organization/projects/service_tier_setting_update_params.rbi +183 -0
- data/rbi/openai/models/admin/organization/workload_identity_provider.rbi +288 -0
- data/rbi/openai/models/admin/organization/workload_identity_provider_create_params.rbi +311 -0
- data/rbi/openai/models/admin/organization/workload_identity_provider_delete_params.rbi +57 -0
- data/rbi/openai/models/admin/organization/workload_identity_provider_deleted.rbi +64 -0
- data/rbi/openai/models/admin/organization/workload_identity_provider_list_params.rbi +111 -0
- data/rbi/openai/models/admin/organization/workload_identity_provider_retrieve_params.rbi +57 -0
- data/rbi/openai/models/admin/organization/workload_identity_provider_update_params.rbi +317 -0
- data/rbi/openai/models/admin/organization/workload_identity_providers/federation_rule.rbi +276 -0
- data/rbi/openai/models/admin/organization/workload_identity_providers/federation_rule_create_params.rbi +282 -0
- data/rbi/openai/models/admin/organization/workload_identity_providers/federation_rule_delete_params.rbi +72 -0
- data/rbi/openai/models/admin/organization/workload_identity_providers/federation_rule_deleted.rbi +68 -0
- data/rbi/openai/models/admin/organization/workload_identity_providers/federation_rule_list_params.rbi +153 -0
- data/rbi/openai/models/admin/organization/workload_identity_providers/federation_rule_retrieve_params.rbi +72 -0
- data/rbi/openai/models/admin/organization/workload_identity_providers/federation_rule_update_params.rbi +281 -0
- data/rbi/openai/models/beta/beta_response.rbi +1 -0
- data/rbi/openai/models/beta/beta_response_usage.rbi +66 -3
- data/rbi/openai/models/beta/beta_responses_client_event.rbi +13 -9
- data/rbi/openai/models/beta/chatkit/chat_session_workflow_param.rbi +1 -1
- data/rbi/openai/models/beta/chatkit_workflow.rbi +1 -1
- data/rbi/openai/models/beta/response_compact_params.rbi +3 -3
- data/rbi/openai/models/beta/response_create_params.rbi +10 -9
- data/rbi/openai/models/chat/completion_create_params.rbi +3 -3
- data/rbi/openai/models/responses/response.rbi +1 -0
- data/rbi/openai/models/responses/response_compact_params.rbi +3 -3
- data/rbi/openai/models/responses/response_create_params.rbi +10 -9
- data/rbi/openai/models/responses/response_usage.rbi +66 -3
- data/rbi/openai/models/responses/responses_client_event.rbi +13 -9
- data/rbi/openai/resources/admin/organization/projects/service_tier_settings.rbi +67 -0
- data/rbi/openai/resources/admin/organization/projects.rbi +3 -0
- data/rbi/openai/resources/admin/organization/workload_identity_providers/federation_rules.rbi +148 -0
- data/rbi/openai/resources/admin/organization/workload_identity_providers.rbi +123 -0
- data/rbi/openai/resources/admin/organization.rbi +3 -0
- data/rbi/openai/resources/beta/responses.rbi +6 -6
- data/rbi/openai/resources/chat/completions.rbi +2 -2
- data/rbi/openai/resources/responses.rbi +3 -3
- data/sig/openai/models/admin/organization/external_key_create_params.rbs +9 -9
- data/sig/openai/models/admin/organization/projects/project_optional_service_tier.rbs +23 -0
- data/sig/openai/models/admin/organization/projects/project_service_tier_settings.rbs +72 -0
- data/sig/openai/models/admin/organization/projects/service_tier_setting_retrieve_params.rbs +32 -0
- data/sig/openai/models/admin/organization/projects/service_tier_setting_update_params.rbs +91 -0
- data/sig/openai/models/admin/organization/workload_identity_provider.rbs +136 -0
- data/sig/openai/models/admin/organization/workload_identity_provider_create_params.rbs +140 -0
- data/sig/openai/models/admin/organization/workload_identity_provider_delete_params.rbs +30 -0
- data/sig/openai/models/admin/organization/workload_identity_provider_deleted.rbs +34 -0
- data/sig/openai/models/admin/organization/workload_identity_provider_list_params.rbs +59 -0
- data/sig/openai/models/admin/organization/workload_identity_provider_retrieve_params.rbs +30 -0
- data/sig/openai/models/admin/organization/workload_identity_provider_update_params.rbs +145 -0
- data/sig/openai/models/admin/organization/workload_identity_providers/federation_rule.rbs +124 -0
- data/sig/openai/models/admin/organization/workload_identity_providers/federation_rule_create_params.rbs +126 -0
- data/sig/openai/models/admin/organization/workload_identity_providers/federation_rule_delete_params.rbs +37 -0
- data/sig/openai/models/admin/organization/workload_identity_providers/federation_rule_deleted.rbs +36 -0
- data/sig/openai/models/admin/organization/workload_identity_providers/federation_rule_list_params.rbs +73 -0
- data/sig/openai/models/admin/organization/workload_identity_providers/federation_rule_retrieve_params.rbs +37 -0
- data/sig/openai/models/admin/organization/workload_identity_providers/federation_rule_update_params.rbs +123 -0
- data/sig/openai/models/audio/transcription_create_params.rbs +3 -3
- data/sig/openai/models/audio/voice_create_params.rbs +6 -6
- data/sig/openai/models/beta/assistant_create_params.rbs +14 -2
- data/sig/openai/models/beta/beta_response.rbs +2 -1
- data/sig/openai/models/beta/beta_response_usage.rbs +40 -3
- data/sig/openai/models/beta/beta_responses_client_event.rbs +11 -10
- data/sig/openai/models/beta/chatkit/chat_session_workflow_param.rbs +1 -1
- data/sig/openai/models/beta/chatkit_workflow.rbs +1 -1
- data/sig/openai/models/beta/response_compact_params.rbs +2 -2
- data/sig/openai/models/beta/response_create_params.rbs +11 -10
- data/sig/openai/models/beta/thread_create_and_run_params.rbs +14 -2
- data/sig/openai/models/beta/thread_create_params.rbs +14 -2
- data/sig/openai/models/chat/completion_create_params.rbs +3 -3
- data/sig/openai/models/decision_create_params.rbs +42 -0
- data/sig/openai/models/eval_create_params.rbs +29 -2
- data/sig/openai/models/evals/run_create_params.rbs +53 -2
- data/sig/openai/models/responses/response.rbs +2 -1
- data/sig/openai/models/responses/response_compact_params.rbs +2 -2
- data/sig/openai/models/responses/response_create_params.rbs +11 -10
- data/sig/openai/models/responses/response_usage.rbs +40 -3
- data/sig/openai/models/responses/responses_client_event.rbs +11 -10
- data/sig/openai/resources/admin/organization/external_keys.rbs +3 -3
- data/sig/openai/resources/admin/organization/projects/service_tier_settings.rbs +25 -0
- data/sig/openai/resources/admin/organization/projects.rbs +2 -0
- data/sig/openai/resources/admin/organization/workload_identity_providers/federation_rules.rbs +61 -0
- data/sig/openai/resources/admin/organization/workload_identity_providers.rbs +58 -0
- data/sig/openai/resources/admin/organization.rbs +2 -0
- data/sig/openai/resources/audio/transcriptions.rbs +2 -2
- data/sig/openai/resources/audio/voices.rbs +2 -2
- data/sig/openai/resources/decisions.rbs +14 -0
- data/sig/openai/resources/evals.rbs +8 -1
- metadata +64 -1
|
@@ -180,7 +180,7 @@ module OpenAI
|
|
|
180
180
|
# request can write up to four breakpoints. For cache matching, OpenAI considers
|
|
181
181
|
# up to the latest 80 breakpoints in the conversation, without a content-block
|
|
182
182
|
# lookback limit. Set `mode` to `explicit` to disable the implicit breakpoint. The
|
|
183
|
-
# `ttl` defaults to `30m
|
|
183
|
+
# `ttl` defaults to `30m`. Supported lifetimes depend on the API. See the
|
|
184
184
|
# [prompt caching guide](https://developers.openai.com/api/docs/guides/prompt-caching)
|
|
185
185
|
# for current details.
|
|
186
186
|
attr_reader prompt_cache_options: OpenAI::Beta::ResponseCreateParams::PromptCacheOptions?
|
|
@@ -191,7 +191,7 @@ module OpenAI
|
|
|
191
191
|
# request can write up to four breakpoints. For cache matching, OpenAI considers
|
|
192
192
|
# up to the latest 80 breakpoints in the conversation, without a content-block
|
|
193
193
|
# lookback limit. Set `mode` to `explicit` to disable the implicit breakpoint. The
|
|
194
|
-
# `ttl` defaults to `30m
|
|
194
|
+
# `ttl` defaults to `30m`. Supported lifetimes depend on the API. See the
|
|
195
195
|
# [prompt caching guide](https://developers.openai.com/api/docs/guides/prompt-caching)
|
|
196
196
|
# for current details.
|
|
197
197
|
def prompt_cache_options=: (
|
|
@@ -483,7 +483,7 @@ module OpenAI
|
|
|
483
483
|
# request can write up to four breakpoints. For cache matching, OpenAI considers
|
|
484
484
|
# up to the latest 80 breakpoints in the conversation, without a content-block
|
|
485
485
|
# lookback limit. Set `mode` to `explicit` to disable the implicit breakpoint. The
|
|
486
|
-
# `ttl` defaults to `30m
|
|
486
|
+
# `ttl` defaults to `30m`. Supported lifetimes depend on the API. See the
|
|
487
487
|
# [prompt caching guide](https://developers.openai.com/api/docs/guides/prompt-caching)
|
|
488
488
|
# for current details.
|
|
489
489
|
# @param prompt_cache_retention
|
|
@@ -1204,13 +1204,13 @@ module OpenAI
|
|
|
1204
1204
|
def prewarm=: (bool) -> bool
|
|
1205
1205
|
|
|
1206
1206
|
# The minimum lifetime applied to every implicit and explicit cache breakpoint
|
|
1207
|
-
# written by the request.
|
|
1208
|
-
#
|
|
1207
|
+
# written by the request. Supported values are `30m` (the default) and `12h`. The
|
|
1208
|
+
# backend may retain cache entries for longer.
|
|
1209
1209
|
attr_reader ttl: OpenAI::Models::Beta::ResponseCreateParams::PromptCacheOptions::ttl?
|
|
1210
1210
|
|
|
1211
1211
|
# The minimum lifetime applied to every implicit and explicit cache breakpoint
|
|
1212
|
-
# written by the request.
|
|
1213
|
-
#
|
|
1212
|
+
# written by the request. Supported values are `30m` (the default) and `12h`. The
|
|
1213
|
+
# backend may retain cache entries for longer.
|
|
1214
1214
|
def ttl=: (
|
|
1215
1215
|
OpenAI::Models::Beta::ResponseCreateParams::PromptCacheOptions::ttl
|
|
1216
1216
|
) -> OpenAI::Models::Beta::ResponseCreateParams::PromptCacheOptions::ttl
|
|
@@ -1230,8 +1230,8 @@ module OpenAI
|
|
|
1230
1230
|
# set to `true`, overrides the `generate` field to `false`.
|
|
1231
1231
|
# @param ttl
|
|
1232
1232
|
# The minimum lifetime applied to every implicit and explicit cache breakpoint
|
|
1233
|
-
# written by the request.
|
|
1234
|
-
#
|
|
1233
|
+
# written by the request. Supported values are `30m` (the default) and `12h`. The
|
|
1234
|
+
# backend may retain cache entries for longer.
|
|
1235
1235
|
def initialize: (
|
|
1236
1236
|
?comparison_response_id: String?,
|
|
1237
1237
|
?mode: OpenAI::Models::Beta::ResponseCreateParams::PromptCacheOptions::mode,
|
|
@@ -1257,12 +1257,13 @@ module OpenAI
|
|
|
1257
1257
|
def self?.values: -> ::Array[OpenAI::Models::Beta::ResponseCreateParams::PromptCacheOptions::mode]
|
|
1258
1258
|
end
|
|
1259
1259
|
|
|
1260
|
-
type ttl = :"30m"
|
|
1260
|
+
type ttl = :"30m" | :"12h"
|
|
1261
1261
|
|
|
1262
1262
|
module Ttl
|
|
1263
1263
|
extend OpenAI::Internal::Type::Enum
|
|
1264
1264
|
|
|
1265
1265
|
TTL_30M: :"30m"
|
|
1266
|
+
TTL_12H: :"12h"
|
|
1266
1267
|
|
|
1267
1268
|
def self?.values: -> ::Array[OpenAI::Models::Beta::ResponseCreateParams::PromptCacheOptions::ttl]
|
|
1268
1269
|
end
|
|
@@ -607,8 +607,16 @@ module OpenAI
|
|
|
607
607
|
def chunking_strategy=: (
|
|
608
608
|
OpenAI::Models::Beta::ThreadCreateAndRunParams::Thread::ToolResources::FileSearch::VectorStore::chunking_strategy
|
|
609
609
|
| { type: :auto }
|
|
610
|
+
| {
|
|
611
|
+
static: OpenAI::Models::Beta::ThreadCreateAndRunParams::Thread::ToolResources::FileSearch::VectorStore::ChunkingStrategy::Static::Static,
|
|
612
|
+
type: :static
|
|
613
|
+
}
|
|
610
614
|
) -> (OpenAI::Models::Beta::ThreadCreateAndRunParams::Thread::ToolResources::FileSearch::VectorStore::chunking_strategy
|
|
611
|
-
| { type: :auto }
|
|
615
|
+
| { type: :auto }
|
|
616
|
+
| {
|
|
617
|
+
static: OpenAI::Models::Beta::ThreadCreateAndRunParams::Thread::ToolResources::FileSearch::VectorStore::ChunkingStrategy::Static::Static,
|
|
618
|
+
type: :static
|
|
619
|
+
})
|
|
612
620
|
|
|
613
621
|
# A list of [file](https://developers.openai.com/api/reference/resources/files)
|
|
614
622
|
# IDs to add to the vector store. For vector stores created before Nov 2025, there
|
|
@@ -647,7 +655,11 @@ module OpenAI
|
|
|
647
655
|
# a maximum length of 512 characters.
|
|
648
656
|
def initialize: (
|
|
649
657
|
?chunking_strategy: OpenAI::Models::Beta::ThreadCreateAndRunParams::Thread::ToolResources::FileSearch::VectorStore::chunking_strategy
|
|
650
|
-
| { type: :auto }
|
|
658
|
+
| { type: :auto }
|
|
659
|
+
| {
|
|
660
|
+
static: OpenAI::Models::Beta::ThreadCreateAndRunParams::Thread::ToolResources::FileSearch::VectorStore::ChunkingStrategy::Static::Static,
|
|
661
|
+
type: :static
|
|
662
|
+
},
|
|
651
663
|
?file_ids: ::Array[String],
|
|
652
664
|
?metadata: OpenAI::Models::metadata?
|
|
653
665
|
) -> void
|
|
@@ -339,8 +339,16 @@ module OpenAI
|
|
|
339
339
|
def chunking_strategy=: (
|
|
340
340
|
OpenAI::Models::Beta::ThreadCreateParams::ToolResources::FileSearch::VectorStore::chunking_strategy
|
|
341
341
|
| { type: :auto }
|
|
342
|
+
| {
|
|
343
|
+
static: OpenAI::Models::Beta::ThreadCreateParams::ToolResources::FileSearch::VectorStore::ChunkingStrategy::Static::Static,
|
|
344
|
+
type: :static
|
|
345
|
+
}
|
|
342
346
|
) -> (OpenAI::Models::Beta::ThreadCreateParams::ToolResources::FileSearch::VectorStore::chunking_strategy
|
|
343
|
-
| { type: :auto }
|
|
347
|
+
| { type: :auto }
|
|
348
|
+
| {
|
|
349
|
+
static: OpenAI::Models::Beta::ThreadCreateParams::ToolResources::FileSearch::VectorStore::ChunkingStrategy::Static::Static,
|
|
350
|
+
type: :static
|
|
351
|
+
})
|
|
344
352
|
|
|
345
353
|
# A list of [file](https://developers.openai.com/api/reference/resources/files)
|
|
346
354
|
# IDs to add to the vector store. For vector stores created before Nov 2025, there
|
|
@@ -379,7 +387,11 @@ module OpenAI
|
|
|
379
387
|
# a maximum length of 512 characters.
|
|
380
388
|
def initialize: (
|
|
381
389
|
?chunking_strategy: OpenAI::Models::Beta::ThreadCreateParams::ToolResources::FileSearch::VectorStore::chunking_strategy
|
|
382
|
-
| { type: :auto }
|
|
390
|
+
| { type: :auto }
|
|
391
|
+
| {
|
|
392
|
+
static: OpenAI::Models::Beta::ThreadCreateParams::ToolResources::FileSearch::VectorStore::ChunkingStrategy::Static::Static,
|
|
393
|
+
type: :static
|
|
394
|
+
},
|
|
383
395
|
?file_ids: ::Array[String],
|
|
384
396
|
?metadata: OpenAI::Models::metadata?
|
|
385
397
|
) -> void
|
|
@@ -207,7 +207,7 @@ module OpenAI
|
|
|
207
207
|
# request can write up to four breakpoints. For cache matching, OpenAI considers
|
|
208
208
|
# up to the latest 80 breakpoints in the conversation, without a content-block
|
|
209
209
|
# lookback limit. Set `mode` to `explicit` to disable the implicit breakpoint. The
|
|
210
|
-
# `ttl` defaults to `30m
|
|
210
|
+
# `ttl` defaults to `30m`. Supported lifetimes depend on the API. See the
|
|
211
211
|
# [prompt caching guide](https://developers.openai.com/api/docs/guides/prompt-caching)
|
|
212
212
|
# for current details.
|
|
213
213
|
attr_reader prompt_cache_options: OpenAI::Chat::CompletionCreateParams::PromptCacheOptions?
|
|
@@ -218,7 +218,7 @@ module OpenAI
|
|
|
218
218
|
# request can write up to four breakpoints. For cache matching, OpenAI considers
|
|
219
219
|
# up to the latest 80 breakpoints in the conversation, without a content-block
|
|
220
220
|
# lookback limit. Set `mode` to `explicit` to disable the implicit breakpoint. The
|
|
221
|
-
# `ttl` defaults to `30m
|
|
221
|
+
# `ttl` defaults to `30m`. Supported lifetimes depend on the API. See the
|
|
222
222
|
# [prompt caching guide](https://developers.openai.com/api/docs/guides/prompt-caching)
|
|
223
223
|
# for current details.
|
|
224
224
|
def prompt_cache_options=: (
|
|
@@ -537,7 +537,7 @@ module OpenAI
|
|
|
537
537
|
# request can write up to four breakpoints. For cache matching, OpenAI considers
|
|
538
538
|
# up to the latest 80 breakpoints in the conversation, without a content-block
|
|
539
539
|
# lookback limit. Set `mode` to `explicit` to disable the implicit breakpoint. The
|
|
540
|
-
# `ttl` defaults to `30m
|
|
540
|
+
# `ttl` defaults to `30m`. Supported lifetimes depend on the API. See the
|
|
541
541
|
# [prompt caching guide](https://developers.openai.com/api/docs/guides/prompt-caching)
|
|
542
542
|
# for current details.
|
|
543
543
|
# @param prompt_cache_retention
|
|
@@ -37,6 +37,20 @@ module OpenAI
|
|
|
37
37
|
| ::Array[OpenAI::Models::decision_question_input_part],
|
|
38
38
|
type: :predicate,
|
|
39
39
|
?name: String
|
|
40
|
+
}
|
|
41
|
+
| {
|
|
42
|
+
choices: ::Array[OpenAI::Models::DecisionCreateParams::Question::Choice::Choice],
|
|
43
|
+
instructions: String
|
|
44
|
+
| ::Array[OpenAI::Models::decision_question_input_part],
|
|
45
|
+
type: :choice,
|
|
46
|
+
?name: String
|
|
47
|
+
}
|
|
48
|
+
| {
|
|
49
|
+
instructions: String
|
|
50
|
+
| ::Array[OpenAI::Models::decision_question_input_part],
|
|
51
|
+
levels: ::Array[OpenAI::Models::DecisionCreateParams::Question::Score::Level],
|
|
52
|
+
type: :score,
|
|
53
|
+
?name: String
|
|
40
54
|
}]
|
|
41
55
|
) -> ::Array[(OpenAI::Models::DecisionCreateParams::question
|
|
42
56
|
| {
|
|
@@ -44,6 +58,20 @@ module OpenAI
|
|
|
44
58
|
| ::Array[OpenAI::Models::decision_question_input_part]),
|
|
45
59
|
type: :predicate,
|
|
46
60
|
?name: String
|
|
61
|
+
}
|
|
62
|
+
| {
|
|
63
|
+
choices: ::Array[OpenAI::Models::DecisionCreateParams::Question::Choice::Choice],
|
|
64
|
+
instructions: (String
|
|
65
|
+
| ::Array[OpenAI::Models::decision_question_input_part]),
|
|
66
|
+
type: :choice,
|
|
67
|
+
?name: String
|
|
68
|
+
}
|
|
69
|
+
| {
|
|
70
|
+
instructions: (String
|
|
71
|
+
| ::Array[OpenAI::Models::decision_question_input_part]),
|
|
72
|
+
levels: ::Array[OpenAI::Models::DecisionCreateParams::Question::Score::Level],
|
|
73
|
+
type: :score,
|
|
74
|
+
?name: String
|
|
47
75
|
})]
|
|
48
76
|
|
|
49
77
|
# Partition prompt cache reuse by caller-provided key.
|
|
@@ -98,6 +126,20 @@ module OpenAI
|
|
|
98
126
|
| ::Array[OpenAI::Models::decision_question_input_part],
|
|
99
127
|
type: :predicate,
|
|
100
128
|
?name: String
|
|
129
|
+
}
|
|
130
|
+
| {
|
|
131
|
+
choices: ::Array[OpenAI::Models::DecisionCreateParams::Question::Choice::Choice],
|
|
132
|
+
instructions: String
|
|
133
|
+
| ::Array[OpenAI::Models::decision_question_input_part],
|
|
134
|
+
type: :choice,
|
|
135
|
+
?name: String
|
|
136
|
+
}
|
|
137
|
+
| {
|
|
138
|
+
instructions: String
|
|
139
|
+
| ::Array[OpenAI::Models::decision_question_input_part],
|
|
140
|
+
levels: ::Array[OpenAI::Models::DecisionCreateParams::Question::Score::Level],
|
|
141
|
+
type: :score,
|
|
142
|
+
?name: String
|
|
101
143
|
}],
|
|
102
144
|
?prompt_cache_key: String?,
|
|
103
145
|
?prompt_cache_options: (OpenAI::DecisionCreateParams::PromptCacheOptions
|
|
@@ -15,7 +15,27 @@ module OpenAI
|
|
|
15
15
|
|
|
16
16
|
# The configuration for the data source used for the evaluation runs. Dictates the
|
|
17
17
|
# schema of the data used in the evaluation.
|
|
18
|
-
|
|
18
|
+
attr_reader data_source_config: OpenAI::Models::EvalCreateParams::data_source_config
|
|
19
|
+
|
|
20
|
+
# The configuration for the data source used for the evaluation runs. Dictates the
|
|
21
|
+
# schema of the data used in the evaluation.
|
|
22
|
+
def data_source_config=: (
|
|
23
|
+
OpenAI::Models::EvalCreateParams::data_source_config
|
|
24
|
+
| {
|
|
25
|
+
item_schema: ::Hash[Symbol, top],
|
|
26
|
+
type: :custom,
|
|
27
|
+
?include_sample_schema: bool
|
|
28
|
+
}
|
|
29
|
+
| { type: :logs, ?metadata: ::Hash[Symbol, top] }
|
|
30
|
+
| { type: :stored_completions, ?metadata: ::Hash[Symbol, top] }
|
|
31
|
+
) -> (OpenAI::Models::EvalCreateParams::data_source_config
|
|
32
|
+
| {
|
|
33
|
+
item_schema: ::Hash[Symbol, top],
|
|
34
|
+
type: :custom,
|
|
35
|
+
?include_sample_schema: bool
|
|
36
|
+
}
|
|
37
|
+
| { type: :logs, ?metadata: ::Hash[Symbol, top] }
|
|
38
|
+
| { type: :stored_completions, ?metadata: ::Hash[Symbol, top] })
|
|
19
39
|
|
|
20
40
|
# A list of graders for all eval runs in this group. Graders can reference
|
|
21
41
|
# variables in the data source using double curly braces notation, like
|
|
@@ -55,7 +75,14 @@ module OpenAI
|
|
|
55
75
|
# @param name
|
|
56
76
|
# The name of the evaluation.
|
|
57
77
|
def initialize: (
|
|
58
|
-
data_source_config: OpenAI::Models::EvalCreateParams::data_source_config
|
|
78
|
+
data_source_config: OpenAI::Models::EvalCreateParams::data_source_config
|
|
79
|
+
| {
|
|
80
|
+
item_schema: ::Hash[Symbol, top],
|
|
81
|
+
type: :custom,
|
|
82
|
+
?include_sample_schema: bool
|
|
83
|
+
}
|
|
84
|
+
| { type: :logs, ?metadata: ::Hash[Symbol, top] }
|
|
85
|
+
| { type: :stored_completions, ?metadata: ::Hash[Symbol, top] },
|
|
59
86
|
testing_criteria: ::Array[OpenAI::Models::EvalCreateParams::testing_criterion],
|
|
60
87
|
?metadata: OpenAI::Models::metadata?,
|
|
61
88
|
?name: String,
|
|
@@ -84,9 +84,43 @@ module OpenAI
|
|
|
84
84
|
# Determines what populates the `item` namespace in this run's data source.
|
|
85
85
|
def source=: (
|
|
86
86
|
OpenAI::Models::Evals::RunCreateParams::DataSource::CreateEvalResponsesRunDataSource::source
|
|
87
|
+
| {
|
|
88
|
+
content: ::Array[OpenAI::Models::Evals::RunCreateParams::DataSource::CreateEvalResponsesRunDataSource::Source::FileContent::Content],
|
|
89
|
+
type: :file_content
|
|
90
|
+
}
|
|
87
91
|
| { id: String, type: :file_id }
|
|
92
|
+
| {
|
|
93
|
+
type: :responses,
|
|
94
|
+
?created_after: Integer?,
|
|
95
|
+
?created_before: Integer?,
|
|
96
|
+
?instructions_search: String?,
|
|
97
|
+
?metadata: top?,
|
|
98
|
+
?model: String?,
|
|
99
|
+
?reasoning_effort: OpenAI::Models::reasoning_effort?,
|
|
100
|
+
?temperature: Float?,
|
|
101
|
+
?tools: ::Array[String]?,
|
|
102
|
+
?top_p: Float?,
|
|
103
|
+
?users: ::Array[String]?
|
|
104
|
+
}
|
|
88
105
|
) -> (OpenAI::Models::Evals::RunCreateParams::DataSource::CreateEvalResponsesRunDataSource::source
|
|
89
|
-
| {
|
|
106
|
+
| {
|
|
107
|
+
content: ::Array[OpenAI::Models::Evals::RunCreateParams::DataSource::CreateEvalResponsesRunDataSource::Source::FileContent::Content],
|
|
108
|
+
type: :file_content
|
|
109
|
+
}
|
|
110
|
+
| { id: String, type: :file_id }
|
|
111
|
+
| {
|
|
112
|
+
type: :responses,
|
|
113
|
+
?created_after: Integer?,
|
|
114
|
+
?created_before: Integer?,
|
|
115
|
+
?instructions_search: String?,
|
|
116
|
+
?metadata: top?,
|
|
117
|
+
?model: String?,
|
|
118
|
+
?reasoning_effort: OpenAI::Models::reasoning_effort?,
|
|
119
|
+
?temperature: Float?,
|
|
120
|
+
?tools: ::Array[String]?,
|
|
121
|
+
?top_p: Float?,
|
|
122
|
+
?users: ::Array[String]?
|
|
123
|
+
})
|
|
90
124
|
|
|
91
125
|
# The type of run data source. Always `responses`.
|
|
92
126
|
attr_accessor type: OpenAI::Models::Evals::RunCreateParams::DataSource::CreateEvalResponsesRunDataSource::type_
|
|
@@ -132,7 +166,24 @@ module OpenAI
|
|
|
132
166
|
# The name of the model to use for generating completions (e.g. "o3-mini").
|
|
133
167
|
def initialize: (
|
|
134
168
|
source: OpenAI::Models::Evals::RunCreateParams::DataSource::CreateEvalResponsesRunDataSource::source
|
|
135
|
-
| {
|
|
169
|
+
| {
|
|
170
|
+
content: ::Array[OpenAI::Models::Evals::RunCreateParams::DataSource::CreateEvalResponsesRunDataSource::Source::FileContent::Content],
|
|
171
|
+
type: :file_content
|
|
172
|
+
}
|
|
173
|
+
| { id: String, type: :file_id }
|
|
174
|
+
| {
|
|
175
|
+
type: :responses,
|
|
176
|
+
?created_after: Integer?,
|
|
177
|
+
?created_before: Integer?,
|
|
178
|
+
?instructions_search: String?,
|
|
179
|
+
?metadata: top?,
|
|
180
|
+
?model: String?,
|
|
181
|
+
?reasoning_effort: OpenAI::Models::reasoning_effort?,
|
|
182
|
+
?temperature: Float?,
|
|
183
|
+
?tools: ::Array[String]?,
|
|
184
|
+
?top_p: Float?,
|
|
185
|
+
?users: ::Array[String]?
|
|
186
|
+
},
|
|
136
187
|
type: OpenAI::Models::Evals::RunCreateParams::DataSource::CreateEvalResponsesRunDataSource::type_,
|
|
137
188
|
?input_messages: OpenAI::Models::Evals::RunCreateParams::DataSource::CreateEvalResponsesRunDataSource::input_messages
|
|
138
189
|
| { item_reference: String, type: :item_reference },
|
|
@@ -1182,12 +1182,13 @@ module OpenAI
|
|
|
1182
1182
|
def self?.values: -> ::Array[OpenAI::Models::Responses::Response::PromptCacheOptions::mode]
|
|
1183
1183
|
end
|
|
1184
1184
|
|
|
1185
|
-
type ttl = :"30m"
|
|
1185
|
+
type ttl = :"30m" | :"12h"
|
|
1186
1186
|
|
|
1187
1187
|
module Ttl
|
|
1188
1188
|
extend OpenAI::Internal::Type::Enum
|
|
1189
1189
|
|
|
1190
1190
|
TTL_30M: :"30m"
|
|
1191
|
+
TTL_12H: :"12h"
|
|
1191
1192
|
|
|
1192
1193
|
def self?.values: -> ::Array[OpenAI::Models::Responses::Response::PromptCacheOptions::ttl]
|
|
1193
1194
|
end
|
|
@@ -49,7 +49,7 @@ module OpenAI
|
|
|
49
49
|
# request can write up to four breakpoints. For cache matching, OpenAI considers
|
|
50
50
|
# up to the latest 80 breakpoints in the conversation, without a content-block
|
|
51
51
|
# lookback limit. Set `mode` to `explicit` to disable the implicit breakpoint. The
|
|
52
|
-
# `ttl` defaults to `30m
|
|
52
|
+
# `ttl` defaults to `30m`. Supported lifetimes depend on the API. See the
|
|
53
53
|
# [prompt caching guide](https://developers.openai.com/api/docs/guides/prompt-caching)
|
|
54
54
|
# for current details.
|
|
55
55
|
attr_accessor prompt_cache_options: OpenAI::Responses::ResponseCompactParams::PromptCacheOptions?
|
|
@@ -102,7 +102,7 @@ module OpenAI
|
|
|
102
102
|
# request can write up to four breakpoints. For cache matching, OpenAI considers
|
|
103
103
|
# up to the latest 80 breakpoints in the conversation, without a content-block
|
|
104
104
|
# lookback limit. Set `mode` to `explicit` to disable the implicit breakpoint. The
|
|
105
|
-
# `ttl` defaults to `30m
|
|
105
|
+
# `ttl` defaults to `30m`. Supported lifetimes depend on the API. See the
|
|
106
106
|
# [prompt caching guide](https://developers.openai.com/api/docs/guides/prompt-caching)
|
|
107
107
|
# for current details.
|
|
108
108
|
# @param prompt_cache_retention
|
|
@@ -175,7 +175,7 @@ module OpenAI
|
|
|
175
175
|
# request can write up to four breakpoints. For cache matching, OpenAI considers
|
|
176
176
|
# up to the latest 80 breakpoints in the conversation, without a content-block
|
|
177
177
|
# lookback limit. Set `mode` to `explicit` to disable the implicit breakpoint. The
|
|
178
|
-
# `ttl` defaults to `30m
|
|
178
|
+
# `ttl` defaults to `30m`. Supported lifetimes depend on the API. See the
|
|
179
179
|
# [prompt caching guide](https://developers.openai.com/api/docs/guides/prompt-caching)
|
|
180
180
|
# for current details.
|
|
181
181
|
attr_reader prompt_cache_options: OpenAI::Responses::ResponseCreateParams::PromptCacheOptions?
|
|
@@ -186,7 +186,7 @@ module OpenAI
|
|
|
186
186
|
# request can write up to four breakpoints. For cache matching, OpenAI considers
|
|
187
187
|
# up to the latest 80 breakpoints in the conversation, without a content-block
|
|
188
188
|
# lookback limit. Set `mode` to `explicit` to disable the implicit breakpoint. The
|
|
189
|
-
# `ttl` defaults to `30m
|
|
189
|
+
# `ttl` defaults to `30m`. Supported lifetimes depend on the API. See the
|
|
190
190
|
# [prompt caching guide](https://developers.openai.com/api/docs/guides/prompt-caching)
|
|
191
191
|
# for current details.
|
|
192
192
|
def prompt_cache_options=: (
|
|
@@ -470,7 +470,7 @@ module OpenAI
|
|
|
470
470
|
# request can write up to four breakpoints. For cache matching, OpenAI considers
|
|
471
471
|
# up to the latest 80 breakpoints in the conversation, without a content-block
|
|
472
472
|
# lookback limit. Set `mode` to `explicit` to disable the implicit breakpoint. The
|
|
473
|
-
# `ttl` defaults to `30m
|
|
473
|
+
# `ttl` defaults to `30m`. Supported lifetimes depend on the API. See the
|
|
474
474
|
# [prompt caching guide](https://developers.openai.com/api/docs/guides/prompt-caching)
|
|
475
475
|
# for current details.
|
|
476
476
|
# @param prompt_cache_retention
|
|
@@ -919,13 +919,13 @@ module OpenAI
|
|
|
919
919
|
def prewarm=: (bool) -> bool
|
|
920
920
|
|
|
921
921
|
# The minimum lifetime applied to every implicit and explicit cache breakpoint
|
|
922
|
-
# written by the request.
|
|
923
|
-
#
|
|
922
|
+
# written by the request. Supported values are `30m` (the default) and `12h`. The
|
|
923
|
+
# backend may retain cache entries for longer.
|
|
924
924
|
attr_reader ttl: OpenAI::Models::Responses::ResponseCreateParams::PromptCacheOptions::ttl?
|
|
925
925
|
|
|
926
926
|
# The minimum lifetime applied to every implicit and explicit cache breakpoint
|
|
927
|
-
# written by the request.
|
|
928
|
-
#
|
|
927
|
+
# written by the request. Supported values are `30m` (the default) and `12h`. The
|
|
928
|
+
# backend may retain cache entries for longer.
|
|
929
929
|
def ttl=: (
|
|
930
930
|
OpenAI::Models::Responses::ResponseCreateParams::PromptCacheOptions::ttl
|
|
931
931
|
) -> OpenAI::Models::Responses::ResponseCreateParams::PromptCacheOptions::ttl
|
|
@@ -945,8 +945,8 @@ module OpenAI
|
|
|
945
945
|
# set to `true`, overrides the `generate` field to `false`.
|
|
946
946
|
# @param ttl
|
|
947
947
|
# The minimum lifetime applied to every implicit and explicit cache breakpoint
|
|
948
|
-
# written by the request.
|
|
949
|
-
#
|
|
948
|
+
# written by the request. Supported values are `30m` (the default) and `12h`. The
|
|
949
|
+
# backend may retain cache entries for longer.
|
|
950
950
|
def initialize: (
|
|
951
951
|
?comparison_response_id: String?,
|
|
952
952
|
?mode: OpenAI::Models::Responses::ResponseCreateParams::PromptCacheOptions::mode,
|
|
@@ -972,12 +972,13 @@ module OpenAI
|
|
|
972
972
|
def self?.values: -> ::Array[OpenAI::Models::Responses::ResponseCreateParams::PromptCacheOptions::mode]
|
|
973
973
|
end
|
|
974
974
|
|
|
975
|
-
type ttl = :"30m"
|
|
975
|
+
type ttl = :"30m" | :"12h"
|
|
976
976
|
|
|
977
977
|
module Ttl
|
|
978
978
|
extend OpenAI::Internal::Type::Enum
|
|
979
979
|
|
|
980
980
|
TTL_30M: :"30m"
|
|
981
|
+
TTL_12H: :"12h"
|
|
981
982
|
|
|
982
983
|
def self?.values: -> ::Array[OpenAI::Models::Responses::ResponseCreateParams::PromptCacheOptions::ttl]
|
|
983
984
|
end
|
|
@@ -53,7 +53,11 @@ module OpenAI
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
type input_tokens_details =
|
|
56
|
-
{
|
|
56
|
+
{
|
|
57
|
+
cache_write_tokens: Integer,
|
|
58
|
+
cached_tokens: Integer,
|
|
59
|
+
?cache_write_tokens_details: OpenAI::Responses::ResponseUsage::InputTokensDetails::CacheWriteTokensDetails
|
|
60
|
+
}
|
|
57
61
|
|
|
58
62
|
class InputTokensDetails < OpenAI::Internal::Type::BaseModel
|
|
59
63
|
# The number of input tokens that were written to the cache.
|
|
@@ -63,6 +67,12 @@ module OpenAI
|
|
|
63
67
|
# [More on prompt caching](https://developers.openai.com/api/docs/guides/prompt-caching).
|
|
64
68
|
attr_accessor cached_tokens: Integer
|
|
65
69
|
|
|
70
|
+
attr_reader cache_write_tokens_details: OpenAI::Responses::ResponseUsage::InputTokensDetails::CacheWriteTokensDetails?
|
|
71
|
+
|
|
72
|
+
def cache_write_tokens_details=: (
|
|
73
|
+
OpenAI::Responses::ResponseUsage::InputTokensDetails::CacheWriteTokensDetails
|
|
74
|
+
) -> OpenAI::Responses::ResponseUsage::InputTokensDetails::CacheWriteTokensDetails
|
|
75
|
+
|
|
66
76
|
# @param cache_write_tokens
|
|
67
77
|
# The number of input tokens that were written to the cache.
|
|
68
78
|
# @param cached_tokens
|
|
@@ -70,13 +80,40 @@ module OpenAI
|
|
|
70
80
|
# [More on prompt caching](https://developers.openai.com/api/docs/guides/prompt-caching).
|
|
71
81
|
def initialize: (
|
|
72
82
|
cache_write_tokens: Integer,
|
|
73
|
-
cached_tokens: Integer
|
|
83
|
+
cached_tokens: Integer,
|
|
84
|
+
?cache_write_tokens_details: OpenAI::Responses::ResponseUsage::InputTokensDetails::CacheWriteTokensDetails
|
|
74
85
|
) -> void
|
|
75
86
|
|
|
76
87
|
def to_hash: -> {
|
|
77
88
|
cache_write_tokens: Integer,
|
|
78
|
-
cached_tokens: Integer
|
|
89
|
+
cached_tokens: Integer,
|
|
90
|
+
?cache_write_tokens_details: OpenAI::Responses::ResponseUsage::InputTokensDetails::CacheWriteTokensDetails
|
|
79
91
|
}
|
|
92
|
+
|
|
93
|
+
type cache_write_tokens_details =
|
|
94
|
+
{ :ttl_12h_tokens => Integer, :ttl_30m_tokens => Integer }
|
|
95
|
+
|
|
96
|
+
class CacheWriteTokensDetails < OpenAI::Internal::Type::BaseModel
|
|
97
|
+
# The number of input tokens written with 12-hour retention.
|
|
98
|
+
attr_accessor ttl_12h_tokens: Integer
|
|
99
|
+
|
|
100
|
+
# The number of input tokens written with 30-minute retention.
|
|
101
|
+
attr_accessor ttl_30m_tokens: Integer
|
|
102
|
+
|
|
103
|
+
# @param ttl_12h_tokens
|
|
104
|
+
# The number of input tokens written with 12-hour retention.
|
|
105
|
+
# @param ttl_30m_tokens
|
|
106
|
+
# The number of input tokens written with 30-minute retention.
|
|
107
|
+
def initialize: (
|
|
108
|
+
ttl_12h_tokens: Integer,
|
|
109
|
+
ttl_30m_tokens: Integer
|
|
110
|
+
) -> void
|
|
111
|
+
|
|
112
|
+
def to_hash: -> {
|
|
113
|
+
:ttl_12h_tokens => Integer,
|
|
114
|
+
:ttl_30m_tokens => Integer
|
|
115
|
+
}
|
|
116
|
+
end
|
|
80
117
|
end
|
|
81
118
|
|
|
82
119
|
type output_tokens_details = { reasoning_tokens: Integer }
|
|
@@ -195,7 +195,7 @@ module OpenAI
|
|
|
195
195
|
# request can write up to four breakpoints. For cache matching, OpenAI considers
|
|
196
196
|
# up to the latest 80 breakpoints in the conversation, without a content-block
|
|
197
197
|
# lookback limit. Set `mode` to `explicit` to disable the implicit breakpoint. The
|
|
198
|
-
# `ttl` defaults to `30m
|
|
198
|
+
# `ttl` defaults to `30m`. Supported lifetimes depend on the API. See the
|
|
199
199
|
# [prompt caching guide](https://developers.openai.com/api/docs/guides/prompt-caching)
|
|
200
200
|
# for current details.
|
|
201
201
|
attr_reader prompt_cache_options: OpenAI::Responses::ResponsesClientEvent::ResponseCreate::PromptCacheOptions?
|
|
@@ -206,7 +206,7 @@ module OpenAI
|
|
|
206
206
|
# request can write up to four breakpoints. For cache matching, OpenAI considers
|
|
207
207
|
# up to the latest 80 breakpoints in the conversation, without a content-block
|
|
208
208
|
# lookback limit. Set `mode` to `explicit` to disable the implicit breakpoint. The
|
|
209
|
-
# `ttl` defaults to `30m
|
|
209
|
+
# `ttl` defaults to `30m`. Supported lifetimes depend on the API. See the
|
|
210
210
|
# [prompt caching guide](https://developers.openai.com/api/docs/guides/prompt-caching)
|
|
211
211
|
# for current details.
|
|
212
212
|
def prompt_cache_options=: (
|
|
@@ -514,7 +514,7 @@ module OpenAI
|
|
|
514
514
|
# request can write up to four breakpoints. For cache matching, OpenAI considers
|
|
515
515
|
# up to the latest 80 breakpoints in the conversation, without a content-block
|
|
516
516
|
# lookback limit. Set `mode` to `explicit` to disable the implicit breakpoint. The
|
|
517
|
-
# `ttl` defaults to `30m
|
|
517
|
+
# `ttl` defaults to `30m`. Supported lifetimes depend on the API. See the
|
|
518
518
|
# [prompt caching guide](https://developers.openai.com/api/docs/guides/prompt-caching)
|
|
519
519
|
# for current details.
|
|
520
520
|
# @param prompt_cache_retention
|
|
@@ -984,13 +984,13 @@ module OpenAI
|
|
|
984
984
|
def prewarm=: (bool) -> bool
|
|
985
985
|
|
|
986
986
|
# The minimum lifetime applied to every implicit and explicit cache breakpoint
|
|
987
|
-
# written by the request.
|
|
988
|
-
#
|
|
987
|
+
# written by the request. Supported values are `30m` (the default) and `12h`. The
|
|
988
|
+
# backend may retain cache entries for longer.
|
|
989
989
|
attr_reader ttl: OpenAI::Models::Responses::ResponsesClientEvent::ResponseCreate::PromptCacheOptions::ttl?
|
|
990
990
|
|
|
991
991
|
# The minimum lifetime applied to every implicit and explicit cache breakpoint
|
|
992
|
-
# written by the request.
|
|
993
|
-
#
|
|
992
|
+
# written by the request. Supported values are `30m` (the default) and `12h`. The
|
|
993
|
+
# backend may retain cache entries for longer.
|
|
994
994
|
def ttl=: (
|
|
995
995
|
OpenAI::Models::Responses::ResponsesClientEvent::ResponseCreate::PromptCacheOptions::ttl
|
|
996
996
|
) -> OpenAI::Models::Responses::ResponsesClientEvent::ResponseCreate::PromptCacheOptions::ttl
|
|
@@ -1010,8 +1010,8 @@ module OpenAI
|
|
|
1010
1010
|
# set to `true`, overrides the `generate` field to `false`.
|
|
1011
1011
|
# @param ttl
|
|
1012
1012
|
# The minimum lifetime applied to every implicit and explicit cache breakpoint
|
|
1013
|
-
# written by the request.
|
|
1014
|
-
#
|
|
1013
|
+
# written by the request. Supported values are `30m` (the default) and `12h`. The
|
|
1014
|
+
# backend may retain cache entries for longer.
|
|
1015
1015
|
def initialize: (
|
|
1016
1016
|
?comparison_response_id: String?,
|
|
1017
1017
|
?mode: OpenAI::Models::Responses::ResponsesClientEvent::ResponseCreate::PromptCacheOptions::mode,
|
|
@@ -1037,12 +1037,13 @@ module OpenAI
|
|
|
1037
1037
|
def self?.values: -> ::Array[OpenAI::Models::Responses::ResponsesClientEvent::ResponseCreate::PromptCacheOptions::mode]
|
|
1038
1038
|
end
|
|
1039
1039
|
|
|
1040
|
-
type ttl = :"30m"
|
|
1040
|
+
type ttl = :"30m" | :"12h"
|
|
1041
1041
|
|
|
1042
1042
|
module Ttl
|
|
1043
1043
|
extend OpenAI::Internal::Type::Enum
|
|
1044
1044
|
|
|
1045
1045
|
TTL_30M: :"30m"
|
|
1046
|
+
TTL_12H: :"12h"
|
|
1046
1047
|
|
|
1047
1048
|
def self?.values: -> ::Array[OpenAI::Models::Responses::ResponsesClientEvent::ResponseCreate::PromptCacheOptions::ttl]
|
|
1048
1049
|
end
|
|
@@ -11,7 +11,7 @@ module OpenAI
|
|
|
11
11
|
name: String,
|
|
12
12
|
role_arn: String,
|
|
13
13
|
type: :aws,
|
|
14
|
-
?purpose:
|
|
14
|
+
?purpose: OpenAI::Models::Admin::Organization::ExternalKeyCreateParams::Body::Aws::purpose
|
|
15
15
|
}
|
|
16
16
|
| {
|
|
17
17
|
audience: String,
|
|
@@ -25,7 +25,7 @@ module OpenAI
|
|
|
25
25
|
workload_identity_project_number: String,
|
|
26
26
|
workload_identity_provider_id: String,
|
|
27
27
|
?kms_key_version: String,
|
|
28
|
-
?purpose:
|
|
28
|
+
?purpose: OpenAI::Models::Admin::Organization::ExternalKeyCreateParams::Body::Gcp::purpose
|
|
29
29
|
}
|
|
30
30
|
| {
|
|
31
31
|
key_name: String,
|
|
@@ -34,7 +34,7 @@ module OpenAI
|
|
|
34
34
|
type: :azure,
|
|
35
35
|
vault_uri: String,
|
|
36
36
|
?key_version: String,
|
|
37
|
-
?purpose:
|
|
37
|
+
?purpose: OpenAI::Models::Admin::Organization::ExternalKeyCreateParams::Body::Azure::purpose
|
|
38
38
|
},
|
|
39
39
|
?request_options: OpenAI::request_opts
|
|
40
40
|
) -> OpenAI::Admin::Organization::ExternalKey
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
module OpenAI
|
|
2
|
+
module Resources
|
|
3
|
+
class Admin
|
|
4
|
+
class Organization
|
|
5
|
+
class Projects
|
|
6
|
+
class ServiceTierSettings
|
|
7
|
+
def retrieve: (
|
|
8
|
+
String project_id,
|
|
9
|
+
?request_options: OpenAI::request_opts
|
|
10
|
+
) -> OpenAI::Admin::Organization::Projects::ProjectServiceTierSettings
|
|
11
|
+
|
|
12
|
+
def update: (
|
|
13
|
+
String project_id,
|
|
14
|
+
?default: OpenAI::Models::Admin::Organization::Projects::ServiceTierSettingUpdateParams::default,
|
|
15
|
+
?enabled_tiers: OpenAI::Models::Admin::Organization::Projects::ServiceTierSettingUpdateParams::enabled_tiers,
|
|
16
|
+
?request_options: OpenAI::request_opts
|
|
17
|
+
) -> OpenAI::Admin::Organization::Projects::ProjectServiceTierSettings
|
|
18
|
+
|
|
19
|
+
def initialize: (client: OpenAI::Client) -> void
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -27,6 +27,8 @@ module OpenAI
|
|
|
27
27
|
|
|
28
28
|
attr_reader certificates: OpenAI::Resources::Admin::Organization::Projects::Certificates
|
|
29
29
|
|
|
30
|
+
attr_reader service_tier_settings: OpenAI::Resources::Admin::Organization::Projects::ServiceTierSettings
|
|
31
|
+
|
|
30
32
|
def create: (
|
|
31
33
|
name: String,
|
|
32
34
|
?external_key_id: String?,
|