openai 0.112.0 → 0.114.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 +25 -0
- data/README.md +1 -1
- data/lib/openai/auth/subject_token_providers/azure_managed_identity_token_provider.rb +10 -8
- data/lib/openai/auth/subject_token_providers/gcp_id_token_provider.rb +8 -7
- data/lib/openai/models/beta/beta_response.rb +3 -0
- data/lib/openai/models/beta/beta_response_input_file.rb +9 -9
- data/lib/openai/models/beta/beta_response_input_file_content.rb +9 -9
- data/lib/openai/models/beta/beta_response_input_image.rb +9 -9
- data/lib/openai/models/beta/beta_response_input_image_content.rb +9 -9
- data/lib/openai/models/beta/beta_response_input_text.rb +9 -9
- data/lib/openai/models/beta/beta_response_input_text_content.rb +9 -9
- data/lib/openai/models/beta/beta_response_item.rb +9 -9
- data/lib/openai/models/beta/beta_response_output_item.rb +9 -9
- data/lib/openai/models/beta/beta_responses_client_event.rb +3 -0
- data/lib/openai/models/beta/response_compact_params.rb +3 -0
- data/lib/openai/models/beta/response_create_params.rb +3 -0
- data/lib/openai/models/chat/chat_completion_content_part.rb +9 -9
- data/lib/openai/models/chat/chat_completion_content_part_image.rb +9 -9
- data/lib/openai/models/chat/chat_completion_content_part_input_audio.rb +9 -9
- data/lib/openai/models/chat/chat_completion_content_part_text.rb +9 -9
- data/lib/openai/models/chat_model.rb +1 -0
- data/lib/openai/models/conversations/computer_screenshot_content.rb +9 -9
- data/lib/openai/models/responses/response_compact_params.rb +3 -0
- data/lib/openai/models/responses/response_input_file.rb +9 -9
- data/lib/openai/models/responses/response_input_file_content.rb +9 -9
- data/lib/openai/models/responses/response_input_image.rb +9 -9
- data/lib/openai/models/responses/response_input_image_content.rb +9 -9
- data/lib/openai/models/responses/response_input_text.rb +9 -9
- data/lib/openai/models/responses/response_input_text_content.rb +9 -9
- data/lib/openai/version.rb +1 -1
- data/rbi/openai/models/beta/beta_response.rbi +1 -0
- data/rbi/openai/models/beta/beta_response_input_file.rbi +9 -9
- data/rbi/openai/models/beta/beta_response_input_file_content.rbi +9 -9
- data/rbi/openai/models/beta/beta_response_input_image.rbi +9 -9
- data/rbi/openai/models/beta/beta_response_input_image_content.rbi +9 -9
- data/rbi/openai/models/beta/beta_response_input_text.rbi +9 -9
- data/rbi/openai/models/beta/beta_response_input_text_content.rbi +9 -9
- data/rbi/openai/models/beta/beta_response_item.rbi +9 -9
- data/rbi/openai/models/beta/beta_response_output_item.rbi +9 -9
- data/rbi/openai/models/beta/beta_responses_client_event.rbi +4 -0
- data/rbi/openai/models/beta/response_compact_params.rbi +1 -0
- data/rbi/openai/models/beta/response_create_params.rbi +1 -0
- data/rbi/openai/models/chat/chat_completion_content_part.rbi +9 -9
- data/rbi/openai/models/chat/chat_completion_content_part_image.rbi +9 -9
- data/rbi/openai/models/chat/chat_completion_content_part_input_audio.rbi +9 -9
- data/rbi/openai/models/chat/chat_completion_content_part_text.rbi +9 -9
- data/rbi/openai/models/chat_model.rbi +1 -0
- data/rbi/openai/models/conversations/computer_screenshot_content.rbi +9 -9
- data/rbi/openai/models/responses/response_compact_params.rbi +1 -0
- data/rbi/openai/models/responses/response_input_file.rbi +9 -9
- data/rbi/openai/models/responses/response_input_file_content.rbi +9 -9
- data/rbi/openai/models/responses/response_input_image.rbi +9 -9
- data/rbi/openai/models/responses/response_input_image_content.rbi +9 -9
- data/rbi/openai/models/responses/response_input_text.rbi +9 -9
- data/rbi/openai/models/responses/response_input_text_content.rbi +9 -9
- data/sig/openai/models/beta/beta_response.rbs +2 -0
- data/sig/openai/models/beta/beta_response_input_file.rbs +9 -9
- data/sig/openai/models/beta/beta_response_input_file_content.rbs +6 -6
- data/sig/openai/models/beta/beta_response_input_image.rbs +9 -9
- data/sig/openai/models/beta/beta_response_input_image_content.rbs +6 -6
- data/sig/openai/models/beta/beta_response_input_text.rbs +9 -9
- data/sig/openai/models/beta/beta_response_input_text_content.rbs +6 -6
- data/sig/openai/models/beta/beta_response_item.rbs +9 -9
- data/sig/openai/models/beta/beta_response_output_item.rbs +9 -9
- data/sig/openai/models/beta/beta_responses_client_event.rbs +2 -0
- data/sig/openai/models/beta/response_compact_params.rbs +2 -0
- data/sig/openai/models/beta/response_create_params.rbs +2 -0
- data/sig/openai/models/chat/chat_completion_content_part.rbs +9 -9
- data/sig/openai/models/chat/chat_completion_content_part_image.rbs +9 -9
- data/sig/openai/models/chat/chat_completion_content_part_input_audio.rbs +9 -9
- data/sig/openai/models/chat/chat_completion_content_part_text.rbs +9 -9
- data/sig/openai/models/chat_model.rbs +2 -0
- data/sig/openai/models/conversations/computer_screenshot_content.rbs +9 -9
- data/sig/openai/models/responses/response_compact_params.rbs +2 -0
- data/sig/openai/models/responses/response_input_file.rbs +9 -9
- data/sig/openai/models/responses/response_input_file_content.rbs +6 -6
- data/sig/openai/models/responses/response_input_image.rbs +9 -9
- data/sig/openai/models/responses/response_input_image_content.rbs +6 -6
- data/sig/openai/models/responses/response_input_text.rbs +9 -9
- data/sig/openai/models/responses/response_input_text_content.rbs +6 -6
- metadata +1 -1
|
@@ -24,9 +24,9 @@ module OpenAI
|
|
|
24
24
|
sig { returns(Symbol) }
|
|
25
25
|
attr_accessor :type
|
|
26
26
|
|
|
27
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
28
|
-
#
|
|
29
|
-
# token block.
|
|
27
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
28
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
29
|
+
# not rounded to a token block.
|
|
30
30
|
sig { returns(T.nilable(OpenAI::Beta::BetaResponseInputTextContent::PromptCacheBreakpoint)) }
|
|
31
31
|
attr_reader :prompt_cache_breakpoint
|
|
32
32
|
|
|
@@ -59,9 +59,9 @@ module OpenAI
|
|
|
59
59
|
# The text input to the model.
|
|
60
60
|
text:,
|
|
61
61
|
|
|
62
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
63
|
-
#
|
|
64
|
-
# token block.
|
|
62
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
63
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
64
|
+
# not rounded to a token block.
|
|
65
65
|
prompt_cache_breakpoint: nil,
|
|
66
66
|
|
|
67
67
|
# The type of the input item. Always `input_text`.
|
|
@@ -101,9 +101,9 @@ module OpenAI
|
|
|
101
101
|
sig { params(ttl: OpenAI::Beta::BetaResponseInputTextContent::PromptCacheBreakpoint::Ttl::OrSymbol).void }
|
|
102
102
|
attr_writer :ttl
|
|
103
103
|
|
|
104
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
105
|
-
#
|
|
106
|
-
# token block.
|
|
104
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
105
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
106
|
+
# not rounded to a token block.
|
|
107
107
|
sig do
|
|
108
108
|
params(
|
|
109
109
|
|
|
@@ -335,9 +335,9 @@ module OpenAI
|
|
|
335
335
|
sig { returns(Symbol) }
|
|
336
336
|
attr_accessor :type
|
|
337
337
|
|
|
338
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
339
|
-
#
|
|
340
|
-
# token block.
|
|
338
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
339
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
340
|
+
# not rounded to a token block.
|
|
341
341
|
sig {
|
|
342
342
|
returns(
|
|
343
343
|
T.nilable(
|
|
@@ -383,9 +383,9 @@ module OpenAI
|
|
|
383
383
|
# The URL of the screenshot image.
|
|
384
384
|
image_url:,
|
|
385
385
|
|
|
386
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
387
|
-
#
|
|
388
|
-
# token block.
|
|
386
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
387
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
388
|
+
# not rounded to a token block.
|
|
389
389
|
prompt_cache_breakpoint: nil,
|
|
390
390
|
|
|
391
391
|
# Specifies the event type. For a computer screenshot, this property is always set
|
|
@@ -477,9 +477,9 @@ module OpenAI
|
|
|
477
477
|
}
|
|
478
478
|
attr_writer :ttl
|
|
479
479
|
|
|
480
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
481
|
-
#
|
|
482
|
-
# token block.
|
|
480
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
481
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
482
|
+
# not rounded to a token block.
|
|
483
483
|
sig do
|
|
484
484
|
params(
|
|
485
485
|
|
|
@@ -335,9 +335,9 @@ module OpenAI
|
|
|
335
335
|
sig { returns(Symbol) }
|
|
336
336
|
attr_accessor :type
|
|
337
337
|
|
|
338
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
339
|
-
#
|
|
340
|
-
# token block.
|
|
338
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
339
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
340
|
+
# not rounded to a token block.
|
|
341
341
|
sig {
|
|
342
342
|
returns(
|
|
343
343
|
T.nilable(
|
|
@@ -383,9 +383,9 @@ module OpenAI
|
|
|
383
383
|
# The URL of the screenshot image.
|
|
384
384
|
image_url:,
|
|
385
385
|
|
|
386
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
387
|
-
#
|
|
388
|
-
# token block.
|
|
386
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
387
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
388
|
+
# not rounded to a token block.
|
|
389
389
|
prompt_cache_breakpoint: nil,
|
|
390
390
|
|
|
391
391
|
# Specifies the event type. For a computer screenshot, this property is always set
|
|
@@ -477,9 +477,9 @@ module OpenAI
|
|
|
477
477
|
}
|
|
478
478
|
attr_writer :ttl
|
|
479
479
|
|
|
480
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
481
|
-
#
|
|
482
|
-
# token block.
|
|
480
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
481
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
482
|
+
# not rounded to a token block.
|
|
483
483
|
sig do
|
|
484
484
|
params(
|
|
485
485
|
|
|
@@ -1177,6 +1177,10 @@ module OpenAI
|
|
|
1177
1177
|
:"gpt-6.1-sol",
|
|
1178
1178
|
OpenAI::Beta::BetaResponsesClientEvent::ResponseCreate::Model::TaggedSymbol
|
|
1179
1179
|
)
|
|
1180
|
+
GPT_6_1_TERRA = T.let(
|
|
1181
|
+
:"gpt-6.1-terra",
|
|
1182
|
+
OpenAI::Beta::BetaResponsesClientEvent::ResponseCreate::Model::TaggedSymbol
|
|
1183
|
+
)
|
|
1180
1184
|
GPT_6_SOL = T.let(:"gpt-6-sol", OpenAI::Beta::BetaResponsesClientEvent::ResponseCreate::Model::TaggedSymbol)
|
|
1181
1185
|
GPT_6_LUNA = T.let(
|
|
1182
1186
|
:"gpt-6-luna",
|
|
@@ -224,6 +224,7 @@ module OpenAI
|
|
|
224
224
|
|
|
225
225
|
GPT_6_ASTRA = T.let(:"gpt-6-astra", OpenAI::Beta::ResponseCompactParams::Model::TaggedSymbol)
|
|
226
226
|
GPT_6_1_SOL = T.let(:"gpt-6.1-sol", OpenAI::Beta::ResponseCompactParams::Model::TaggedSymbol)
|
|
227
|
+
GPT_6_1_TERRA = T.let(:"gpt-6.1-terra", OpenAI::Beta::ResponseCompactParams::Model::TaggedSymbol)
|
|
227
228
|
GPT_6_SOL = T.let(:"gpt-6-sol", OpenAI::Beta::ResponseCompactParams::Model::TaggedSymbol)
|
|
228
229
|
GPT_6_LUNA = T.let(:"gpt-6-luna", OpenAI::Beta::ResponseCompactParams::Model::TaggedSymbol)
|
|
229
230
|
GPT_5_6_SOL = T.let(:"gpt-5.6-sol", OpenAI::Beta::ResponseCompactParams::Model::TaggedSymbol)
|
|
@@ -1047,6 +1047,7 @@ module OpenAI
|
|
|
1047
1047
|
|
|
1048
1048
|
GPT_6_ASTRA = T.let(:"gpt-6-astra", OpenAI::Beta::ResponseCreateParams::Model::TaggedSymbol)
|
|
1049
1049
|
GPT_6_1_SOL = T.let(:"gpt-6.1-sol", OpenAI::Beta::ResponseCreateParams::Model::TaggedSymbol)
|
|
1050
|
+
GPT_6_1_TERRA = T.let(:"gpt-6.1-terra", OpenAI::Beta::ResponseCreateParams::Model::TaggedSymbol)
|
|
1050
1051
|
GPT_6_SOL = T.let(:"gpt-6-sol", OpenAI::Beta::ResponseCreateParams::Model::TaggedSymbol)
|
|
1051
1052
|
GPT_6_LUNA = T.let(:"gpt-6-luna", OpenAI::Beta::ResponseCreateParams::Model::TaggedSymbol)
|
|
1052
1053
|
GPT_5_6_SOL = T.let(:"gpt-5.6-sol", OpenAI::Beta::ResponseCreateParams::Model::TaggedSymbol)
|
|
@@ -38,9 +38,9 @@ module OpenAI
|
|
|
38
38
|
sig { returns(Symbol) }
|
|
39
39
|
attr_accessor :type
|
|
40
40
|
|
|
41
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
42
|
-
#
|
|
43
|
-
# token block.
|
|
41
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
42
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
43
|
+
# not rounded to a token block.
|
|
44
44
|
sig { returns(T.nilable(OpenAI::Chat::ChatCompletionContentPart::File::PromptCacheBreakpoint)) }
|
|
45
45
|
attr_reader :prompt_cache_breakpoint
|
|
46
46
|
|
|
@@ -69,9 +69,9 @@ module OpenAI
|
|
|
69
69
|
|
|
70
70
|
file:,
|
|
71
71
|
|
|
72
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
73
|
-
#
|
|
74
|
-
# token block.
|
|
72
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
73
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
74
|
+
# not rounded to a token block.
|
|
75
75
|
prompt_cache_breakpoint: nil,
|
|
76
76
|
|
|
77
77
|
# The type of the content part. Always `file`.
|
|
@@ -181,9 +181,9 @@ module OpenAI
|
|
|
181
181
|
}
|
|
182
182
|
attr_writer :ttl
|
|
183
183
|
|
|
184
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
185
|
-
#
|
|
186
|
-
# token block.
|
|
184
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
185
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
186
|
+
# not rounded to a token block.
|
|
187
187
|
sig do
|
|
188
188
|
params(
|
|
189
189
|
|
|
@@ -26,9 +26,9 @@ module OpenAI
|
|
|
26
26
|
sig { returns(Symbol) }
|
|
27
27
|
attr_accessor :type
|
|
28
28
|
|
|
29
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
30
|
-
#
|
|
31
|
-
# token block.
|
|
29
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
30
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
31
|
+
# not rounded to a token block.
|
|
32
32
|
sig { returns(T.nilable(OpenAI::Chat::ChatCompletionContentPartImage::PromptCacheBreakpoint)) }
|
|
33
33
|
attr_reader :prompt_cache_breakpoint
|
|
34
34
|
|
|
@@ -55,9 +55,9 @@ module OpenAI
|
|
|
55
55
|
|
|
56
56
|
image_url:,
|
|
57
57
|
|
|
58
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
59
|
-
#
|
|
60
|
-
# token block.
|
|
58
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
59
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
60
|
+
# not rounded to a token block.
|
|
61
61
|
prompt_cache_breakpoint: nil,
|
|
62
62
|
|
|
63
63
|
# The type of the content part.
|
|
@@ -171,9 +171,9 @@ module OpenAI
|
|
|
171
171
|
sig { params(ttl: OpenAI::Chat::ChatCompletionContentPartImage::PromptCacheBreakpoint::Ttl::OrSymbol).void }
|
|
172
172
|
attr_writer :ttl
|
|
173
173
|
|
|
174
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
175
|
-
#
|
|
176
|
-
# token block.
|
|
174
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
175
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
176
|
+
# not rounded to a token block.
|
|
177
177
|
sig do
|
|
178
178
|
params(
|
|
179
179
|
|
|
@@ -26,9 +26,9 @@ module OpenAI
|
|
|
26
26
|
sig { returns(Symbol) }
|
|
27
27
|
attr_accessor :type
|
|
28
28
|
|
|
29
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
30
|
-
#
|
|
31
|
-
# token block.
|
|
29
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
30
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
31
|
+
# not rounded to a token block.
|
|
32
32
|
sig { returns(T.nilable(OpenAI::Chat::ChatCompletionContentPartInputAudio::PromptCacheBreakpoint)) }
|
|
33
33
|
attr_reader :prompt_cache_breakpoint
|
|
34
34
|
|
|
@@ -56,9 +56,9 @@ module OpenAI
|
|
|
56
56
|
|
|
57
57
|
input_audio:,
|
|
58
58
|
|
|
59
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
60
|
-
#
|
|
61
|
-
# token block.
|
|
59
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
60
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
61
|
+
# not rounded to a token block.
|
|
62
62
|
prompt_cache_breakpoint: nil,
|
|
63
63
|
|
|
64
64
|
# The type of the content part. Always `input_audio`.
|
|
@@ -168,9 +168,9 @@ module OpenAI
|
|
|
168
168
|
}
|
|
169
169
|
attr_writer :ttl
|
|
170
170
|
|
|
171
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
172
|
-
#
|
|
173
|
-
# token block.
|
|
171
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
172
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
173
|
+
# not rounded to a token block.
|
|
174
174
|
sig do
|
|
175
175
|
params(
|
|
176
176
|
|
|
@@ -24,9 +24,9 @@ module OpenAI
|
|
|
24
24
|
sig { returns(Symbol) }
|
|
25
25
|
attr_accessor :type
|
|
26
26
|
|
|
27
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
28
|
-
#
|
|
29
|
-
# token block.
|
|
27
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
28
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
29
|
+
# not rounded to a token block.
|
|
30
30
|
sig { returns(T.nilable(OpenAI::Chat::ChatCompletionContentPartText::PromptCacheBreakpoint)) }
|
|
31
31
|
attr_reader :prompt_cache_breakpoint
|
|
32
32
|
|
|
@@ -53,9 +53,9 @@ module OpenAI
|
|
|
53
53
|
# The text content.
|
|
54
54
|
text:,
|
|
55
55
|
|
|
56
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
57
|
-
#
|
|
58
|
-
# token block.
|
|
56
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
57
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
58
|
+
# not rounded to a token block.
|
|
59
59
|
prompt_cache_breakpoint: nil,
|
|
60
60
|
|
|
61
61
|
# The type of the content part.
|
|
@@ -95,9 +95,9 @@ module OpenAI
|
|
|
95
95
|
sig { params(ttl: OpenAI::Chat::ChatCompletionContentPartText::PromptCacheBreakpoint::Ttl::OrSymbol).void }
|
|
96
96
|
attr_writer :ttl
|
|
97
97
|
|
|
98
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
99
|
-
#
|
|
100
|
-
# token block.
|
|
98
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
99
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
100
|
+
# not rounded to a token block.
|
|
101
101
|
sig do
|
|
102
102
|
params(
|
|
103
103
|
|
|
@@ -11,6 +11,7 @@ module OpenAI
|
|
|
11
11
|
|
|
12
12
|
GPT_6_ASTRA = T.let(:"gpt-6-astra", OpenAI::ChatModel::TaggedSymbol)
|
|
13
13
|
GPT_6_1_SOL = T.let(:"gpt-6.1-sol", OpenAI::ChatModel::TaggedSymbol)
|
|
14
|
+
GPT_6_1_TERRA = T.let(:"gpt-6.1-terra", OpenAI::ChatModel::TaggedSymbol)
|
|
14
15
|
GPT_6_SOL = T.let(:"gpt-6-sol", OpenAI::ChatModel::TaggedSymbol)
|
|
15
16
|
GPT_6_LUNA = T.let(:"gpt-6-luna", OpenAI::ChatModel::TaggedSymbol)
|
|
16
17
|
GPT_5_6_SOL = T.let(:"gpt-5.6-sol", OpenAI::ChatModel::TaggedSymbol)
|
|
@@ -32,9 +32,9 @@ module OpenAI
|
|
|
32
32
|
sig { returns(Symbol) }
|
|
33
33
|
attr_accessor :type
|
|
34
34
|
|
|
35
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
36
|
-
#
|
|
37
|
-
# token block.
|
|
35
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
36
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
37
|
+
# not rounded to a token block.
|
|
38
38
|
sig { returns(T.nilable(OpenAI::Conversations::ComputerScreenshotContent::PromptCacheBreakpoint)) }
|
|
39
39
|
attr_reader :prompt_cache_breakpoint
|
|
40
40
|
|
|
@@ -74,9 +74,9 @@ module OpenAI
|
|
|
74
74
|
# The URL of the screenshot image.
|
|
75
75
|
image_url:,
|
|
76
76
|
|
|
77
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
78
|
-
#
|
|
79
|
-
# token block.
|
|
77
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
78
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
79
|
+
# not rounded to a token block.
|
|
80
80
|
prompt_cache_breakpoint: nil,
|
|
81
81
|
|
|
82
82
|
# Specifies the event type. For a computer screenshot, this property is always set
|
|
@@ -143,9 +143,9 @@ module OpenAI
|
|
|
143
143
|
}
|
|
144
144
|
attr_writer :ttl
|
|
145
145
|
|
|
146
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
147
|
-
#
|
|
148
|
-
# token block.
|
|
146
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
147
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
148
|
+
# not rounded to a token block.
|
|
149
149
|
sig do
|
|
150
150
|
params(
|
|
151
151
|
|
|
@@ -216,6 +216,7 @@ module OpenAI
|
|
|
216
216
|
|
|
217
217
|
GPT_6_ASTRA = T.let(:"gpt-6-astra", OpenAI::Responses::ResponseCompactParams::Model::TaggedSymbol)
|
|
218
218
|
GPT_6_1_SOL = T.let(:"gpt-6.1-sol", OpenAI::Responses::ResponseCompactParams::Model::TaggedSymbol)
|
|
219
|
+
GPT_6_1_TERRA = T.let(:"gpt-6.1-terra", OpenAI::Responses::ResponseCompactParams::Model::TaggedSymbol)
|
|
219
220
|
GPT_6_SOL = T.let(:"gpt-6-sol", OpenAI::Responses::ResponseCompactParams::Model::TaggedSymbol)
|
|
220
221
|
GPT_6_LUNA = T.let(:"gpt-6-luna", OpenAI::Responses::ResponseCompactParams::Model::TaggedSymbol)
|
|
221
222
|
GPT_5_6_SOL = T.let(:"gpt-5.6-sol", OpenAI::Responses::ResponseCompactParams::Model::TaggedSymbol)
|
|
@@ -54,9 +54,9 @@ module OpenAI
|
|
|
54
54
|
sig { params(filename: String).void }
|
|
55
55
|
attr_writer :filename
|
|
56
56
|
|
|
57
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
58
|
-
#
|
|
59
|
-
# token block.
|
|
57
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
58
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
59
|
+
# not rounded to a token block.
|
|
60
60
|
sig { returns(T.nilable(OpenAI::Responses::ResponseInputFile::PromptCacheBreakpoint)) }
|
|
61
61
|
attr_reader :prompt_cache_breakpoint
|
|
62
62
|
|
|
@@ -106,9 +106,9 @@ module OpenAI
|
|
|
106
106
|
# The name of the file to be sent to the model.
|
|
107
107
|
filename: nil,
|
|
108
108
|
|
|
109
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
110
|
-
#
|
|
111
|
-
# token block.
|
|
109
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
110
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
111
|
+
# not rounded to a token block.
|
|
112
112
|
prompt_cache_breakpoint: nil,
|
|
113
113
|
|
|
114
114
|
# The type of the input item. Always `input_file`.
|
|
@@ -172,9 +172,9 @@ module OpenAI
|
|
|
172
172
|
sig { params(ttl: OpenAI::Responses::ResponseInputFile::PromptCacheBreakpoint::Ttl::OrSymbol).void }
|
|
173
173
|
attr_writer :ttl
|
|
174
174
|
|
|
175
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
176
|
-
#
|
|
177
|
-
# token block.
|
|
175
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
176
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
177
|
+
# not rounded to a token block.
|
|
178
178
|
sig do
|
|
179
179
|
params(
|
|
180
180
|
|
|
@@ -45,9 +45,9 @@ module OpenAI
|
|
|
45
45
|
sig { returns(T.nilable(String)) }
|
|
46
46
|
attr_accessor :filename
|
|
47
47
|
|
|
48
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
49
|
-
#
|
|
50
|
-
# token block.
|
|
48
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
49
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
50
|
+
# not rounded to a token block.
|
|
51
51
|
sig { returns(T.nilable(OpenAI::Responses::ResponseInputFileContent::PromptCacheBreakpoint)) }
|
|
52
52
|
attr_reader :prompt_cache_breakpoint
|
|
53
53
|
|
|
@@ -104,9 +104,9 @@ module OpenAI
|
|
|
104
104
|
# The name of the file to be sent to the model.
|
|
105
105
|
filename: nil,
|
|
106
106
|
|
|
107
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
108
|
-
#
|
|
109
|
-
# token block.
|
|
107
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
108
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
109
|
+
# not rounded to a token block.
|
|
110
110
|
prompt_cache_breakpoint: nil,
|
|
111
111
|
|
|
112
112
|
# The type of the input item. Always `input_file`.
|
|
@@ -170,9 +170,9 @@ module OpenAI
|
|
|
170
170
|
sig { params(ttl: OpenAI::Responses::ResponseInputFileContent::PromptCacheBreakpoint::Ttl::OrSymbol).void }
|
|
171
171
|
attr_writer :ttl
|
|
172
172
|
|
|
173
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
174
|
-
#
|
|
175
|
-
# token block.
|
|
173
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
174
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
175
|
+
# not rounded to a token block.
|
|
176
176
|
sig do
|
|
177
177
|
params(
|
|
178
178
|
|
|
@@ -32,9 +32,9 @@ module OpenAI
|
|
|
32
32
|
sig { returns(T.nilable(String)) }
|
|
33
33
|
attr_accessor :image_url
|
|
34
34
|
|
|
35
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
36
|
-
#
|
|
37
|
-
# token block.
|
|
35
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
36
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
37
|
+
# not rounded to a token block.
|
|
38
38
|
sig { returns(T.nilable(OpenAI::Responses::ResponseInputImage::PromptCacheBreakpoint)) }
|
|
39
39
|
attr_reader :prompt_cache_breakpoint
|
|
40
40
|
|
|
@@ -73,9 +73,9 @@ module OpenAI
|
|
|
73
73
|
# encoded image in a data URL.
|
|
74
74
|
image_url: nil,
|
|
75
75
|
|
|
76
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
77
|
-
#
|
|
78
|
-
# token block.
|
|
76
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
77
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
78
|
+
# not rounded to a token block.
|
|
79
79
|
prompt_cache_breakpoint: nil,
|
|
80
80
|
|
|
81
81
|
# The type of the input item. Always `input_image`.
|
|
@@ -135,9 +135,9 @@ module OpenAI
|
|
|
135
135
|
sig { params(ttl: OpenAI::Responses::ResponseInputImage::PromptCacheBreakpoint::Ttl::OrSymbol).void }
|
|
136
136
|
attr_writer :ttl
|
|
137
137
|
|
|
138
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
139
|
-
#
|
|
140
|
-
# token block.
|
|
138
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
139
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
140
|
+
# not rounded to a token block.
|
|
141
141
|
sig do
|
|
142
142
|
params(
|
|
143
143
|
|
|
@@ -32,9 +32,9 @@ module OpenAI
|
|
|
32
32
|
sig { returns(T.nilable(String)) }
|
|
33
33
|
attr_accessor :image_url
|
|
34
34
|
|
|
35
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
36
|
-
#
|
|
37
|
-
# token block.
|
|
35
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
36
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
37
|
+
# not rounded to a token block.
|
|
38
38
|
sig { returns(T.nilable(OpenAI::Responses::ResponseInputImageContent::PromptCacheBreakpoint)) }
|
|
39
39
|
attr_reader :prompt_cache_breakpoint
|
|
40
40
|
|
|
@@ -80,9 +80,9 @@ module OpenAI
|
|
|
80
80
|
# encoded image in a data URL.
|
|
81
81
|
image_url: nil,
|
|
82
82
|
|
|
83
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
84
|
-
#
|
|
85
|
-
# token block.
|
|
83
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
84
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
85
|
+
# not rounded to a token block.
|
|
86
86
|
prompt_cache_breakpoint: nil,
|
|
87
87
|
|
|
88
88
|
# The type of the input item. Always `input_image`.
|
|
@@ -144,9 +144,9 @@ module OpenAI
|
|
|
144
144
|
sig { params(ttl: OpenAI::Responses::ResponseInputImageContent::PromptCacheBreakpoint::Ttl::OrSymbol).void }
|
|
145
145
|
attr_writer :ttl
|
|
146
146
|
|
|
147
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
148
|
-
#
|
|
149
|
-
# token block.
|
|
147
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
148
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
149
|
+
# not rounded to a token block.
|
|
150
150
|
sig do
|
|
151
151
|
params(
|
|
152
152
|
|
|
@@ -22,9 +22,9 @@ module OpenAI
|
|
|
22
22
|
sig { returns(Symbol) }
|
|
23
23
|
attr_accessor :type
|
|
24
24
|
|
|
25
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
26
|
-
#
|
|
27
|
-
# token block.
|
|
25
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
26
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
27
|
+
# not rounded to a token block.
|
|
28
28
|
sig { returns(T.nilable(OpenAI::Responses::ResponseInputText::PromptCacheBreakpoint)) }
|
|
29
29
|
attr_reader :prompt_cache_breakpoint
|
|
30
30
|
|
|
@@ -50,9 +50,9 @@ module OpenAI
|
|
|
50
50
|
# The text input to the model.
|
|
51
51
|
text:,
|
|
52
52
|
|
|
53
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
54
|
-
#
|
|
55
|
-
# token block.
|
|
53
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
54
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
55
|
+
# not rounded to a token block.
|
|
56
56
|
prompt_cache_breakpoint: nil,
|
|
57
57
|
|
|
58
58
|
# The type of the input item. Always `input_text`.
|
|
@@ -92,9 +92,9 @@ module OpenAI
|
|
|
92
92
|
sig { params(ttl: OpenAI::Responses::ResponseInputText::PromptCacheBreakpoint::Ttl::OrSymbol).void }
|
|
93
93
|
attr_writer :ttl
|
|
94
94
|
|
|
95
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
96
|
-
#
|
|
97
|
-
# token block.
|
|
95
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
96
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
97
|
+
# not rounded to a token block.
|
|
98
98
|
sig do
|
|
99
99
|
params(
|
|
100
100
|
|
|
@@ -22,9 +22,9 @@ module OpenAI
|
|
|
22
22
|
sig { returns(Symbol) }
|
|
23
23
|
attr_accessor :type
|
|
24
24
|
|
|
25
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
26
|
-
#
|
|
27
|
-
# token block.
|
|
25
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
26
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
27
|
+
# not rounded to a token block.
|
|
28
28
|
sig { returns(T.nilable(OpenAI::Responses::ResponseInputTextContent::PromptCacheBreakpoint)) }
|
|
29
29
|
attr_reader :prompt_cache_breakpoint
|
|
30
30
|
|
|
@@ -57,9 +57,9 @@ module OpenAI
|
|
|
57
57
|
# The text input to the model.
|
|
58
58
|
text:,
|
|
59
59
|
|
|
60
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
61
|
-
#
|
|
62
|
-
# token block.
|
|
60
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
61
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
62
|
+
# not rounded to a token block.
|
|
63
63
|
prompt_cache_breakpoint: nil,
|
|
64
64
|
|
|
65
65
|
# The type of the input item. Always `input_text`.
|
|
@@ -99,9 +99,9 @@ module OpenAI
|
|
|
99
99
|
sig { params(ttl: OpenAI::Responses::ResponseInputTextContent::PromptCacheBreakpoint::Ttl::OrSymbol).void }
|
|
100
100
|
attr_writer :ttl
|
|
101
101
|
|
|
102
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
103
|
-
#
|
|
104
|
-
# token block.
|
|
102
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
103
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
104
|
+
# not rounded to a token block.
|
|
105
105
|
sig do
|
|
106
106
|
params(
|
|
107
107
|
|
|
@@ -683,6 +683,7 @@ module OpenAI
|
|
|
683
683
|
type model =
|
|
684
684
|
:"gpt-6-astra"
|
|
685
685
|
| :"gpt-6.1-sol"
|
|
686
|
+
| :"gpt-6.1-terra"
|
|
686
687
|
| :"gpt-6-sol"
|
|
687
688
|
| :"gpt-6-luna"
|
|
688
689
|
| :"gpt-5.6-sol"
|
|
@@ -799,6 +800,7 @@ module OpenAI
|
|
|
799
800
|
|
|
800
801
|
GPT_6_ASTRA: :"gpt-6-astra"
|
|
801
802
|
GPT_6_1_SOL: :"gpt-6.1-sol"
|
|
803
|
+
GPT_6_1_TERRA: :"gpt-6.1-terra"
|
|
802
804
|
GPT_6_SOL: :"gpt-6-sol"
|
|
803
805
|
GPT_6_LUNA: :"gpt-6-luna"
|
|
804
806
|
GPT_5_6_SOL: :"gpt-5.6-sol"
|