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
|
@@ -16,9 +16,9 @@ module OpenAI
|
|
|
16
16
|
required :type, const: :input_audio
|
|
17
17
|
|
|
18
18
|
# @!attribute prompt_cache_breakpoint
|
|
19
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
20
|
-
#
|
|
21
|
-
# token block.
|
|
19
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
20
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
21
|
+
# not rounded to a token block.
|
|
22
22
|
#
|
|
23
23
|
# @return [OpenAI::Models::Chat::ChatCompletionContentPartInputAudio::PromptCacheBreakpoint, nil]
|
|
24
24
|
optional(
|
|
@@ -32,9 +32,9 @@ module OpenAI
|
|
|
32
32
|
# @param input_audio [OpenAI::Models::Chat::ChatCompletionContentPartInputAudio::InputAudio]
|
|
33
33
|
#
|
|
34
34
|
# @param prompt_cache_breakpoint [OpenAI::Models::Chat::ChatCompletionContentPartInputAudio::PromptCacheBreakpoint]
|
|
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
|
#
|
|
39
39
|
# @param type [Symbol, :input_audio]
|
|
40
40
|
# The type of the content part. Always `input_audio`.
|
|
@@ -93,9 +93,9 @@ module OpenAI
|
|
|
93
93
|
optional :ttl, enum: -> { OpenAI::Chat::ChatCompletionContentPartInputAudio::PromptCacheBreakpoint::Ttl }
|
|
94
94
|
|
|
95
95
|
# @!method initialize(ttl: nil, mode: :explicit)
|
|
96
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
97
|
-
#
|
|
98
|
-
# token block.
|
|
96
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
97
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
98
|
+
# not rounded to a token block.
|
|
99
99
|
#
|
|
100
100
|
# @param ttl [Symbol, OpenAI::Models::Chat::ChatCompletionContentPartInputAudio::PromptCacheBreakpoint::Ttl]
|
|
101
101
|
# The minimum lifetime of this cache breakpoint. Defaults to the request TTL.
|
|
@@ -17,9 +17,9 @@ module OpenAI
|
|
|
17
17
|
required :type, const: :text
|
|
18
18
|
|
|
19
19
|
# @!attribute prompt_cache_breakpoint
|
|
20
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
21
|
-
#
|
|
22
|
-
# token block.
|
|
20
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
21
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
22
|
+
# not rounded to a token block.
|
|
23
23
|
#
|
|
24
24
|
# @return [OpenAI::Models::Chat::ChatCompletionContentPartText::PromptCacheBreakpoint, nil]
|
|
25
25
|
optional(
|
|
@@ -34,9 +34,9 @@ module OpenAI
|
|
|
34
34
|
# The text content.
|
|
35
35
|
#
|
|
36
36
|
# @param prompt_cache_breakpoint [OpenAI::Models::Chat::ChatCompletionContentPartText::PromptCacheBreakpoint]
|
|
37
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
38
|
-
#
|
|
39
|
-
# token block.
|
|
37
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
38
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
39
|
+
# not rounded to a token block.
|
|
40
40
|
#
|
|
41
41
|
# @param type [Symbol, :text]
|
|
42
42
|
# The type of the content part.
|
|
@@ -56,9 +56,9 @@ module OpenAI
|
|
|
56
56
|
optional :ttl, enum: -> { OpenAI::Chat::ChatCompletionContentPartText::PromptCacheBreakpoint::Ttl }
|
|
57
57
|
|
|
58
58
|
# @!method initialize(ttl: nil, mode: :explicit)
|
|
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
|
#
|
|
63
63
|
# @param ttl [Symbol, OpenAI::Models::Chat::ChatCompletionContentPartText::PromptCacheBreakpoint::Ttl]
|
|
64
64
|
# The minimum lifetime of this cache breakpoint. Defaults to the request TTL.
|
|
@@ -31,9 +31,9 @@ module OpenAI
|
|
|
31
31
|
required :type, const: :computer_screenshot
|
|
32
32
|
|
|
33
33
|
# @!attribute prompt_cache_breakpoint
|
|
34
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
35
|
-
#
|
|
36
|
-
# token block.
|
|
34
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
35
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
36
|
+
# not rounded to a token block.
|
|
37
37
|
#
|
|
38
38
|
# @return [OpenAI::Models::Conversations::ComputerScreenshotContent::PromptCacheBreakpoint, nil]
|
|
39
39
|
optional(
|
|
@@ -55,9 +55,9 @@ module OpenAI
|
|
|
55
55
|
# The URL of the screenshot image.
|
|
56
56
|
#
|
|
57
57
|
# @param prompt_cache_breakpoint [OpenAI::Models::Conversations::ComputerScreenshotContent::PromptCacheBreakpoint]
|
|
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
|
#
|
|
62
62
|
# @param type [Symbol, :computer_screenshot]
|
|
63
63
|
# Specifies the event type. For a computer screenshot, this property is always set
|
|
@@ -94,9 +94,9 @@ module OpenAI
|
|
|
94
94
|
optional :ttl, enum: -> { OpenAI::Conversations::ComputerScreenshotContent::PromptCacheBreakpoint::Ttl }
|
|
95
95
|
|
|
96
96
|
# @!method initialize(ttl: nil, mode: :explicit)
|
|
97
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
98
|
-
#
|
|
99
|
-
# token block.
|
|
97
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
98
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
99
|
+
# not rounded to a token block.
|
|
100
100
|
#
|
|
101
101
|
# @param ttl [Symbol, OpenAI::Models::Conversations::ComputerScreenshotContent::PromptCacheBreakpoint::Ttl]
|
|
102
102
|
# The minimum lifetime of this cache breakpoint. Defaults to the request TTL.
|
|
@@ -171,6 +171,8 @@ module OpenAI
|
|
|
171
171
|
|
|
172
172
|
variant const: -> { OpenAI::Models::Responses::ResponseCompactParams::Model::GPT_6_1_SOL }
|
|
173
173
|
|
|
174
|
+
variant const: -> { OpenAI::Models::Responses::ResponseCompactParams::Model::GPT_6_1_TERRA }
|
|
175
|
+
|
|
174
176
|
variant const: -> { OpenAI::Models::Responses::ResponseCompactParams::Model::GPT_6_SOL }
|
|
175
177
|
|
|
176
178
|
variant const: -> { OpenAI::Models::Responses::ResponseCompactParams::Model::GPT_6_LUNA }
|
|
@@ -416,6 +418,7 @@ module OpenAI
|
|
|
416
418
|
|
|
417
419
|
GPT_6_ASTRA = :"gpt-6-astra"
|
|
418
420
|
GPT_6_1_SOL = :"gpt-6.1-sol"
|
|
421
|
+
GPT_6_1_TERRA = :"gpt-6.1-terra"
|
|
419
422
|
GPT_6_SOL = :"gpt-6-sol"
|
|
420
423
|
GPT_6_LUNA = :"gpt-6-luna"
|
|
421
424
|
GPT_5_6_SOL = :"gpt-5.6-sol"
|
|
@@ -45,9 +45,9 @@ module OpenAI
|
|
|
45
45
|
optional :filename, String
|
|
46
46
|
|
|
47
47
|
# @!attribute prompt_cache_breakpoint
|
|
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
|
#
|
|
52
52
|
# @return [OpenAI::Models::Responses::ResponseInputFile::PromptCacheBreakpoint, nil]
|
|
53
53
|
optional :prompt_cache_breakpoint, -> { OpenAI::Responses::ResponseInputFile::PromptCacheBreakpoint }
|
|
@@ -75,9 +75,9 @@ module OpenAI
|
|
|
75
75
|
# The name of the file to be sent to the model.
|
|
76
76
|
#
|
|
77
77
|
# @param prompt_cache_breakpoint [OpenAI::Models::Responses::ResponseInputFile::PromptCacheBreakpoint]
|
|
78
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
79
|
-
#
|
|
80
|
-
# token block.
|
|
78
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
79
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
80
|
+
# not rounded to a token block.
|
|
81
81
|
#
|
|
82
82
|
# @param type [Symbol, :input_file]
|
|
83
83
|
# The type of the input item. Always `input_file`.
|
|
@@ -115,9 +115,9 @@ module OpenAI
|
|
|
115
115
|
optional :ttl, enum: -> { OpenAI::Responses::ResponseInputFile::PromptCacheBreakpoint::Ttl }
|
|
116
116
|
|
|
117
117
|
# @!method initialize(ttl: nil, mode: :explicit)
|
|
118
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
119
|
-
#
|
|
120
|
-
# token block.
|
|
118
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
119
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
120
|
+
# not rounded to a token block.
|
|
121
121
|
#
|
|
122
122
|
# @param ttl [Symbol, OpenAI::Models::Responses::ResponseInputFile::PromptCacheBreakpoint::Ttl]
|
|
123
123
|
# The minimum lifetime of this cache breakpoint. Defaults to the request TTL.
|
|
@@ -45,9 +45,9 @@ module OpenAI
|
|
|
45
45
|
optional :filename, String, nil?: true
|
|
46
46
|
|
|
47
47
|
# @!attribute prompt_cache_breakpoint
|
|
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
|
#
|
|
52
52
|
# @return [OpenAI::Models::Responses::ResponseInputFileContent::PromptCacheBreakpoint, nil]
|
|
53
53
|
optional(
|
|
@@ -79,9 +79,9 @@ module OpenAI
|
|
|
79
79
|
# The name of the file to be sent to the model.
|
|
80
80
|
#
|
|
81
81
|
# @param prompt_cache_breakpoint [OpenAI::Models::Responses::ResponseInputFileContent::PromptCacheBreakpoint, nil]
|
|
82
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
83
|
-
#
|
|
84
|
-
# token block.
|
|
82
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
83
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
84
|
+
# not rounded to a token block.
|
|
85
85
|
#
|
|
86
86
|
# @param type [Symbol, :input_file]
|
|
87
87
|
# The type of the input item. Always `input_file`.
|
|
@@ -119,9 +119,9 @@ module OpenAI
|
|
|
119
119
|
optional :ttl, enum: -> { OpenAI::Responses::ResponseInputFileContent::PromptCacheBreakpoint::Ttl }
|
|
120
120
|
|
|
121
121
|
# @!method initialize(ttl: nil, mode: :explicit)
|
|
122
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
123
|
-
#
|
|
124
|
-
# token block.
|
|
122
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
123
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
124
|
+
# not rounded to a token block.
|
|
125
125
|
#
|
|
126
126
|
# @param ttl [Symbol, OpenAI::Models::Responses::ResponseInputFileContent::PromptCacheBreakpoint::Ttl]
|
|
127
127
|
# The minimum lifetime of this cache breakpoint. Defaults to the request TTL.
|
|
@@ -31,9 +31,9 @@ module OpenAI
|
|
|
31
31
|
optional :image_url, String, nil?: true
|
|
32
32
|
|
|
33
33
|
# @!attribute prompt_cache_breakpoint
|
|
34
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
35
|
-
#
|
|
36
|
-
# token block.
|
|
34
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
35
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
36
|
+
# not rounded to a token block.
|
|
37
37
|
#
|
|
38
38
|
# @return [OpenAI::Models::Responses::ResponseInputImage::PromptCacheBreakpoint, nil]
|
|
39
39
|
optional :prompt_cache_breakpoint, -> { OpenAI::Responses::ResponseInputImage::PromptCacheBreakpoint }
|
|
@@ -54,9 +54,9 @@ module OpenAI
|
|
|
54
54
|
# encoded image in a data URL.
|
|
55
55
|
#
|
|
56
56
|
# @param prompt_cache_breakpoint [OpenAI::Models::Responses::ResponseInputImage::PromptCacheBreakpoint]
|
|
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
|
#
|
|
61
61
|
# @param type [Symbol, :input_image]
|
|
62
62
|
# The type of the input item. Always `input_image`.
|
|
@@ -92,9 +92,9 @@ module OpenAI
|
|
|
92
92
|
optional :ttl, enum: -> { OpenAI::Responses::ResponseInputImage::PromptCacheBreakpoint::Ttl }
|
|
93
93
|
|
|
94
94
|
# @!method initialize(ttl: nil, mode: :explicit)
|
|
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
|
#
|
|
99
99
|
# @param ttl [Symbol, OpenAI::Models::Responses::ResponseInputImage::PromptCacheBreakpoint::Ttl]
|
|
100
100
|
# The minimum lifetime of this cache breakpoint. Defaults to the request TTL.
|
|
@@ -31,9 +31,9 @@ module OpenAI
|
|
|
31
31
|
optional :image_url, String, nil?: true
|
|
32
32
|
|
|
33
33
|
# @!attribute prompt_cache_breakpoint
|
|
34
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
35
|
-
#
|
|
36
|
-
# token block.
|
|
34
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
35
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
36
|
+
# not rounded to a token block.
|
|
37
37
|
#
|
|
38
38
|
# @return [OpenAI::Models::Responses::ResponseInputImageContent::PromptCacheBreakpoint, nil]
|
|
39
39
|
optional(
|
|
@@ -58,9 +58,9 @@ module OpenAI
|
|
|
58
58
|
# encoded image in a data URL.
|
|
59
59
|
#
|
|
60
60
|
# @param prompt_cache_breakpoint [OpenAI::Models::Responses::ResponseInputImageContent::PromptCacheBreakpoint, nil]
|
|
61
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
62
|
-
#
|
|
63
|
-
# token block.
|
|
61
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
62
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
63
|
+
# not rounded to a token block.
|
|
64
64
|
#
|
|
65
65
|
# @param type [Symbol, :input_image]
|
|
66
66
|
# The type of the input item. Always `input_image`.
|
|
@@ -96,9 +96,9 @@ module OpenAI
|
|
|
96
96
|
optional :ttl, enum: -> { OpenAI::Responses::ResponseInputImageContent::PromptCacheBreakpoint::Ttl }
|
|
97
97
|
|
|
98
98
|
# @!method initialize(ttl: nil, mode: :explicit)
|
|
99
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
100
|
-
#
|
|
101
|
-
# token block.
|
|
99
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
100
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
101
|
+
# not rounded to a token block.
|
|
102
102
|
#
|
|
103
103
|
# @param ttl [Symbol, OpenAI::Models::Responses::ResponseInputImageContent::PromptCacheBreakpoint::Ttl]
|
|
104
104
|
# The minimum lifetime of this cache breakpoint. Defaults to the request TTL.
|
|
@@ -17,9 +17,9 @@ module OpenAI
|
|
|
17
17
|
required :type, const: :input_text
|
|
18
18
|
|
|
19
19
|
# @!attribute prompt_cache_breakpoint
|
|
20
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
21
|
-
#
|
|
22
|
-
# token block.
|
|
20
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
21
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
22
|
+
# not rounded to a token block.
|
|
23
23
|
#
|
|
24
24
|
# @return [OpenAI::Models::Responses::ResponseInputText::PromptCacheBreakpoint, nil]
|
|
25
25
|
optional :prompt_cache_breakpoint, -> { OpenAI::Responses::ResponseInputText::PromptCacheBreakpoint }
|
|
@@ -31,9 +31,9 @@ module OpenAI
|
|
|
31
31
|
# The text input to the model.
|
|
32
32
|
#
|
|
33
33
|
# @param prompt_cache_breakpoint [OpenAI::Models::Responses::ResponseInputText::PromptCacheBreakpoint]
|
|
34
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
35
|
-
#
|
|
36
|
-
# token block.
|
|
34
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
35
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
36
|
+
# not rounded to a token block.
|
|
37
37
|
#
|
|
38
38
|
# @param type [Symbol, :input_text]
|
|
39
39
|
# The type of the input item. Always `input_text`.
|
|
@@ -53,9 +53,9 @@ module OpenAI
|
|
|
53
53
|
optional :ttl, enum: -> { OpenAI::Responses::ResponseInputText::PromptCacheBreakpoint::Ttl }
|
|
54
54
|
|
|
55
55
|
# @!method initialize(ttl: nil, mode: :explicit)
|
|
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
|
#
|
|
60
60
|
# @param ttl [Symbol, OpenAI::Models::Responses::ResponseInputText::PromptCacheBreakpoint::Ttl]
|
|
61
61
|
# The minimum lifetime of this cache breakpoint. Defaults to the request TTL.
|
|
@@ -17,9 +17,9 @@ module OpenAI
|
|
|
17
17
|
required :type, const: :input_text
|
|
18
18
|
|
|
19
19
|
# @!attribute prompt_cache_breakpoint
|
|
20
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
21
|
-
#
|
|
22
|
-
# token block.
|
|
20
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
21
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
22
|
+
# not rounded to a token block.
|
|
23
23
|
#
|
|
24
24
|
# @return [OpenAI::Models::Responses::ResponseInputTextContent::PromptCacheBreakpoint, nil]
|
|
25
25
|
optional(
|
|
@@ -35,9 +35,9 @@ module OpenAI
|
|
|
35
35
|
# The text input to the model.
|
|
36
36
|
#
|
|
37
37
|
# @param prompt_cache_breakpoint [OpenAI::Models::Responses::ResponseInputTextContent::PromptCacheBreakpoint, nil]
|
|
38
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
39
|
-
#
|
|
40
|
-
# token block.
|
|
38
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
39
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
40
|
+
# not rounded to a token block.
|
|
41
41
|
#
|
|
42
42
|
# @param type [Symbol, :input_text]
|
|
43
43
|
# The type of the input item. Always `input_text`.
|
|
@@ -57,9 +57,9 @@ module OpenAI
|
|
|
57
57
|
optional :ttl, enum: -> { OpenAI::Responses::ResponseInputTextContent::PromptCacheBreakpoint::Ttl }
|
|
58
58
|
|
|
59
59
|
# @!method initialize(ttl: nil, mode: :explicit)
|
|
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
|
#
|
|
64
64
|
# @param ttl [Symbol, OpenAI::Models::Responses::ResponseInputTextContent::PromptCacheBreakpoint::Ttl]
|
|
65
65
|
# The minimum lifetime of this cache breakpoint. Defaults to the request TTL.
|
data/lib/openai/version.rb
CHANGED
|
@@ -927,6 +927,7 @@ module OpenAI
|
|
|
927
927
|
|
|
928
928
|
GPT_6_ASTRA = T.let(:"gpt-6-astra", OpenAI::Beta::BetaResponse::Model::TaggedSymbol)
|
|
929
929
|
GPT_6_1_SOL = T.let(:"gpt-6.1-sol", OpenAI::Beta::BetaResponse::Model::TaggedSymbol)
|
|
930
|
+
GPT_6_1_TERRA = T.let(:"gpt-6.1-terra", OpenAI::Beta::BetaResponse::Model::TaggedSymbol)
|
|
930
931
|
GPT_6_SOL = T.let(:"gpt-6-sol", OpenAI::Beta::BetaResponse::Model::TaggedSymbol)
|
|
931
932
|
GPT_6_LUNA = T.let(:"gpt-6-luna", OpenAI::Beta::BetaResponse::Model::TaggedSymbol)
|
|
932
933
|
GPT_5_6_SOL = T.let(:"gpt-5.6-sol", OpenAI::Beta::BetaResponse::Model::TaggedSymbol)
|
|
@@ -56,9 +56,9 @@ module OpenAI
|
|
|
56
56
|
sig { params(filename: String).void }
|
|
57
57
|
attr_writer :filename
|
|
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
|
sig { returns(T.nilable(OpenAI::Beta::BetaResponseInputFile::PromptCacheBreakpoint)) }
|
|
63
63
|
attr_reader :prompt_cache_breakpoint
|
|
64
64
|
|
|
@@ -108,9 +108,9 @@ module OpenAI
|
|
|
108
108
|
# The name of the file to be sent to the model.
|
|
109
109
|
filename: nil,
|
|
110
110
|
|
|
111
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
112
|
-
#
|
|
113
|
-
# token block.
|
|
111
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
112
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
113
|
+
# not rounded to a token block.
|
|
114
114
|
prompt_cache_breakpoint: nil,
|
|
115
115
|
|
|
116
116
|
# The type of the input item. Always `input_file`.
|
|
@@ -174,9 +174,9 @@ module OpenAI
|
|
|
174
174
|
sig { params(ttl: OpenAI::Beta::BetaResponseInputFile::PromptCacheBreakpoint::Ttl::OrSymbol).void }
|
|
175
175
|
attr_writer :ttl
|
|
176
176
|
|
|
177
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
178
|
-
#
|
|
179
|
-
# token block.
|
|
177
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
178
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
179
|
+
# not rounded to a token block.
|
|
180
180
|
sig do
|
|
181
181
|
params(
|
|
182
182
|
|
|
@@ -47,9 +47,9 @@ module OpenAI
|
|
|
47
47
|
sig { returns(T.nilable(String)) }
|
|
48
48
|
attr_accessor :filename
|
|
49
49
|
|
|
50
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
51
|
-
#
|
|
52
|
-
# token block.
|
|
50
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
51
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
52
|
+
# not rounded to a token block.
|
|
53
53
|
sig { returns(T.nilable(OpenAI::Beta::BetaResponseInputFileContent::PromptCacheBreakpoint)) }
|
|
54
54
|
attr_reader :prompt_cache_breakpoint
|
|
55
55
|
|
|
@@ -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::Beta::BetaResponseInputFileContent::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
|
|
|
@@ -34,9 +34,9 @@ module OpenAI
|
|
|
34
34
|
sig { returns(T.nilable(String)) }
|
|
35
35
|
attr_accessor :image_url
|
|
36
36
|
|
|
37
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
38
|
-
#
|
|
39
|
-
# token block.
|
|
37
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
38
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
39
|
+
# not rounded to a token block.
|
|
40
40
|
sig { returns(T.nilable(OpenAI::Beta::BetaResponseInputImage::PromptCacheBreakpoint)) }
|
|
41
41
|
attr_reader :prompt_cache_breakpoint
|
|
42
42
|
|
|
@@ -75,9 +75,9 @@ module OpenAI
|
|
|
75
75
|
# encoded image in a data URL.
|
|
76
76
|
image_url: nil,
|
|
77
77
|
|
|
78
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
79
|
-
#
|
|
80
|
-
# token block.
|
|
78
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
79
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
80
|
+
# not rounded to a token block.
|
|
81
81
|
prompt_cache_breakpoint: nil,
|
|
82
82
|
|
|
83
83
|
# The type of the input item. Always `input_image`.
|
|
@@ -137,9 +137,9 @@ module OpenAI
|
|
|
137
137
|
sig { params(ttl: OpenAI::Beta::BetaResponseInputImage::PromptCacheBreakpoint::Ttl::OrSymbol).void }
|
|
138
138
|
attr_writer :ttl
|
|
139
139
|
|
|
140
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
141
|
-
#
|
|
142
|
-
# token block.
|
|
140
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
141
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
142
|
+
# not rounded to a token block.
|
|
143
143
|
sig do
|
|
144
144
|
params(
|
|
145
145
|
|
|
@@ -34,9 +34,9 @@ module OpenAI
|
|
|
34
34
|
sig { returns(T.nilable(String)) }
|
|
35
35
|
attr_accessor :image_url
|
|
36
36
|
|
|
37
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
38
|
-
#
|
|
39
|
-
# token block.
|
|
37
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
38
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
39
|
+
# not rounded to a token block.
|
|
40
40
|
sig { returns(T.nilable(OpenAI::Beta::BetaResponseInputImageContent::PromptCacheBreakpoint)) }
|
|
41
41
|
attr_reader :prompt_cache_breakpoint
|
|
42
42
|
|
|
@@ -82,9 +82,9 @@ module OpenAI
|
|
|
82
82
|
# encoded image in a data URL.
|
|
83
83
|
image_url: nil,
|
|
84
84
|
|
|
85
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
86
|
-
#
|
|
87
|
-
# token block.
|
|
85
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
86
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
87
|
+
# not rounded to a token block.
|
|
88
88
|
prompt_cache_breakpoint: nil,
|
|
89
89
|
|
|
90
90
|
# The type of the input item. Always `input_image`.
|
|
@@ -144,9 +144,9 @@ module OpenAI
|
|
|
144
144
|
sig { params(ttl: OpenAI::Beta::BetaResponseInputImageContent::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
|
|
|
@@ -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::BetaResponseInputText::PromptCacheBreakpoint)) }
|
|
31
31
|
attr_reader :prompt_cache_breakpoint
|
|
32
32
|
|
|
@@ -52,9 +52,9 @@ module OpenAI
|
|
|
52
52
|
# The text input to the model.
|
|
53
53
|
text:,
|
|
54
54
|
|
|
55
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
56
|
-
#
|
|
57
|
-
# token block.
|
|
55
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
56
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
57
|
+
# not rounded to a token block.
|
|
58
58
|
prompt_cache_breakpoint: nil,
|
|
59
59
|
|
|
60
60
|
# The type of the input item. Always `input_text`.
|
|
@@ -94,9 +94,9 @@ module OpenAI
|
|
|
94
94
|
sig { params(ttl: OpenAI::Beta::BetaResponseInputText::PromptCacheBreakpoint::Ttl::OrSymbol).void }
|
|
95
95
|
attr_writer :ttl
|
|
96
96
|
|
|
97
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
98
|
-
#
|
|
99
|
-
# token block.
|
|
97
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
98
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
99
|
+
# not rounded to a token block.
|
|
100
100
|
sig do
|
|
101
101
|
params(
|
|
102
102
|
|