openai 0.113.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 +18 -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_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/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/conversations/computer_screenshot_content.rb +9 -9
- 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_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/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/conversations/computer_screenshot_content.rbi +9 -9
- 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_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/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/conversations/computer_screenshot_content.rbs +9 -9
- 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
|
@@ -192,14 +192,14 @@ module OpenAI
|
|
|
192
192
|
# to `computer_screenshot`.
|
|
193
193
|
attr_accessor type: :computer_screenshot
|
|
194
194
|
|
|
195
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
196
|
-
#
|
|
197
|
-
# token block.
|
|
195
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
196
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
197
|
+
# not rounded to a token block.
|
|
198
198
|
attr_reader prompt_cache_breakpoint: OpenAI::Beta::BetaResponseItem::AgentMessage::Content::ComputerScreenshot::PromptCacheBreakpoint?
|
|
199
199
|
|
|
200
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
201
|
-
#
|
|
202
|
-
# token block.
|
|
200
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
201
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
202
|
+
# not rounded to a token block.
|
|
203
203
|
def prompt_cache_breakpoint=: (
|
|
204
204
|
OpenAI::Beta::BetaResponseItem::AgentMessage::Content::ComputerScreenshot::PromptCacheBreakpoint
|
|
205
205
|
) -> OpenAI::Beta::BetaResponseItem::AgentMessage::Content::ComputerScreenshot::PromptCacheBreakpoint
|
|
@@ -212,9 +212,9 @@ module OpenAI
|
|
|
212
212
|
# @param image_url
|
|
213
213
|
# The URL of the screenshot image.
|
|
214
214
|
# @param prompt_cache_breakpoint
|
|
215
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
216
|
-
#
|
|
217
|
-
# token block.
|
|
215
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
216
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
217
|
+
# not rounded to a token block.
|
|
218
218
|
# @param type
|
|
219
219
|
# Specifies the event type. For a computer screenshot, this property is always set
|
|
220
220
|
# to `computer_screenshot`.
|
|
@@ -190,14 +190,14 @@ module OpenAI
|
|
|
190
190
|
# to `computer_screenshot`.
|
|
191
191
|
attr_accessor type: :computer_screenshot
|
|
192
192
|
|
|
193
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
194
|
-
#
|
|
195
|
-
# token block.
|
|
193
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
194
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
195
|
+
# not rounded to a token block.
|
|
196
196
|
attr_reader prompt_cache_breakpoint: OpenAI::Beta::BetaResponseOutputItem::AgentMessage::Content::ComputerScreenshot::PromptCacheBreakpoint?
|
|
197
197
|
|
|
198
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
199
|
-
#
|
|
200
|
-
# token block.
|
|
198
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
199
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
200
|
+
# not rounded to a token block.
|
|
201
201
|
def prompt_cache_breakpoint=: (
|
|
202
202
|
OpenAI::Beta::BetaResponseOutputItem::AgentMessage::Content::ComputerScreenshot::PromptCacheBreakpoint
|
|
203
203
|
) -> OpenAI::Beta::BetaResponseOutputItem::AgentMessage::Content::ComputerScreenshot::PromptCacheBreakpoint
|
|
@@ -210,9 +210,9 @@ module OpenAI
|
|
|
210
210
|
# @param image_url
|
|
211
211
|
# The URL of the screenshot image.
|
|
212
212
|
# @param prompt_cache_breakpoint
|
|
213
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
214
|
-
#
|
|
215
|
-
# token block.
|
|
213
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
214
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
215
|
+
# not rounded to a token block.
|
|
216
216
|
# @param type
|
|
217
217
|
# Specifies the event type. For a computer screenshot, this property is always set
|
|
218
218
|
# to `computer_screenshot`.
|
|
@@ -25,22 +25,22 @@ module OpenAI
|
|
|
25
25
|
# The type of the content part. Always `file`.
|
|
26
26
|
attr_accessor type: :file
|
|
27
27
|
|
|
28
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
29
|
-
#
|
|
30
|
-
# token block.
|
|
28
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
29
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
30
|
+
# not rounded to a token block.
|
|
31
31
|
attr_reader prompt_cache_breakpoint: OpenAI::Chat::ChatCompletionContentPart::File::PromptCacheBreakpoint?
|
|
32
32
|
|
|
33
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
34
|
-
#
|
|
35
|
-
# token block.
|
|
33
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
34
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
35
|
+
# not rounded to a token block.
|
|
36
36
|
def prompt_cache_breakpoint=: (
|
|
37
37
|
OpenAI::Chat::ChatCompletionContentPart::File::PromptCacheBreakpoint
|
|
38
38
|
) -> OpenAI::Chat::ChatCompletionContentPart::File::PromptCacheBreakpoint
|
|
39
39
|
|
|
40
40
|
# @param prompt_cache_breakpoint
|
|
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
|
# @param type
|
|
45
45
|
# The type of the content part. Always `file`.
|
|
46
46
|
def initialize: (
|
|
@@ -16,22 +16,22 @@ module OpenAI
|
|
|
16
16
|
# The type of the content part.
|
|
17
17
|
attr_accessor type: :image_url
|
|
18
18
|
|
|
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
|
attr_reader prompt_cache_breakpoint: OpenAI::Chat::ChatCompletionContentPartImage::PromptCacheBreakpoint?
|
|
23
23
|
|
|
24
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
25
|
-
#
|
|
26
|
-
# token block.
|
|
24
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
25
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
26
|
+
# not rounded to a token block.
|
|
27
27
|
def prompt_cache_breakpoint=: (
|
|
28
28
|
OpenAI::Chat::ChatCompletionContentPartImage::PromptCacheBreakpoint
|
|
29
29
|
) -> OpenAI::Chat::ChatCompletionContentPartImage::PromptCacheBreakpoint
|
|
30
30
|
|
|
31
31
|
# @param prompt_cache_breakpoint
|
|
32
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
33
|
-
#
|
|
34
|
-
# token block.
|
|
32
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
33
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
34
|
+
# not rounded to a token block.
|
|
35
35
|
# @param type
|
|
36
36
|
# The type of the content part.
|
|
37
37
|
def initialize: (
|
|
@@ -16,22 +16,22 @@ module OpenAI
|
|
|
16
16
|
# The type of the content part. Always `input_audio`.
|
|
17
17
|
attr_accessor type: :input_audio
|
|
18
18
|
|
|
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
|
attr_reader prompt_cache_breakpoint: OpenAI::Chat::ChatCompletionContentPartInputAudio::PromptCacheBreakpoint?
|
|
23
23
|
|
|
24
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
25
|
-
#
|
|
26
|
-
# token block.
|
|
24
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
25
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
26
|
+
# not rounded to a token block.
|
|
27
27
|
def prompt_cache_breakpoint=: (
|
|
28
28
|
OpenAI::Chat::ChatCompletionContentPartInputAudio::PromptCacheBreakpoint
|
|
29
29
|
) -> OpenAI::Chat::ChatCompletionContentPartInputAudio::PromptCacheBreakpoint
|
|
30
30
|
|
|
31
31
|
# @param prompt_cache_breakpoint
|
|
32
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
33
|
-
#
|
|
34
|
-
# token block.
|
|
32
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
33
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
34
|
+
# not rounded to a token block.
|
|
35
35
|
# @param type
|
|
36
36
|
# The type of the content part. Always `input_audio`.
|
|
37
37
|
def initialize: (
|
|
@@ -17,14 +17,14 @@ module OpenAI
|
|
|
17
17
|
# The type of the content part.
|
|
18
18
|
attr_accessor type: :text
|
|
19
19
|
|
|
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
|
attr_reader prompt_cache_breakpoint: OpenAI::Chat::ChatCompletionContentPartText::PromptCacheBreakpoint?
|
|
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
|
def prompt_cache_breakpoint=: (
|
|
29
29
|
OpenAI::Chat::ChatCompletionContentPartText::PromptCacheBreakpoint
|
|
30
30
|
) -> OpenAI::Chat::ChatCompletionContentPartText::PromptCacheBreakpoint
|
|
@@ -32,9 +32,9 @@ module OpenAI
|
|
|
32
32
|
# @param text
|
|
33
33
|
# The text content.
|
|
34
34
|
# @param prompt_cache_breakpoint
|
|
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
|
# @param type
|
|
39
39
|
# The type of the content part.
|
|
40
40
|
def initialize: (
|
|
@@ -25,14 +25,14 @@ module OpenAI
|
|
|
25
25
|
# to `computer_screenshot`.
|
|
26
26
|
attr_accessor type: :computer_screenshot
|
|
27
27
|
|
|
28
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
29
|
-
#
|
|
30
|
-
# token block.
|
|
28
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
29
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
30
|
+
# not rounded to a token block.
|
|
31
31
|
attr_reader prompt_cache_breakpoint: OpenAI::Conversations::ComputerScreenshotContent::PromptCacheBreakpoint?
|
|
32
32
|
|
|
33
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
34
|
-
#
|
|
35
|
-
# token block.
|
|
33
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
34
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
35
|
+
# not rounded to a token block.
|
|
36
36
|
def prompt_cache_breakpoint=: (
|
|
37
37
|
OpenAI::Conversations::ComputerScreenshotContent::PromptCacheBreakpoint
|
|
38
38
|
) -> OpenAI::Conversations::ComputerScreenshotContent::PromptCacheBreakpoint
|
|
@@ -45,9 +45,9 @@ module OpenAI
|
|
|
45
45
|
# @param image_url
|
|
46
46
|
# The URL of the screenshot image.
|
|
47
47
|
# @param 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
|
# @param type
|
|
52
52
|
# Specifies the event type. For a computer screenshot, this property is always set
|
|
53
53
|
# to `computer_screenshot`.
|
|
@@ -53,14 +53,14 @@ module OpenAI
|
|
|
53
53
|
# The name of the file to be sent to the model.
|
|
54
54
|
def filename=: (String) -> String
|
|
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
|
attr_reader prompt_cache_breakpoint: OpenAI::Responses::ResponseInputFile::PromptCacheBreakpoint?
|
|
60
60
|
|
|
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
|
def prompt_cache_breakpoint=: (
|
|
65
65
|
OpenAI::Responses::ResponseInputFile::PromptCacheBreakpoint
|
|
66
66
|
) -> OpenAI::Responses::ResponseInputFile::PromptCacheBreakpoint
|
|
@@ -80,9 +80,9 @@ module OpenAI
|
|
|
80
80
|
# @param filename
|
|
81
81
|
# The name of the file to be sent to the model.
|
|
82
82
|
# @param prompt_cache_breakpoint
|
|
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
|
# @param type
|
|
87
87
|
# The type of the input item. Always `input_file`.
|
|
88
88
|
def initialize: (
|
|
@@ -44,9 +44,9 @@ module OpenAI
|
|
|
44
44
|
# The name of the file to be sent to the model.
|
|
45
45
|
attr_accessor filename: String?
|
|
46
46
|
|
|
47
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
48
|
-
#
|
|
49
|
-
# token block.
|
|
47
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
48
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
49
|
+
# not rounded to a token block.
|
|
50
50
|
attr_accessor prompt_cache_breakpoint: OpenAI::Responses::ResponseInputFileContent::PromptCacheBreakpoint?
|
|
51
51
|
|
|
52
52
|
# @param detail
|
|
@@ -64,9 +64,9 @@ module OpenAI
|
|
|
64
64
|
# @param filename
|
|
65
65
|
# The name of the file to be sent to the model.
|
|
66
66
|
# @param prompt_cache_breakpoint
|
|
67
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
68
|
-
#
|
|
69
|
-
# token block.
|
|
67
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
68
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
69
|
+
# not rounded to a token block.
|
|
70
70
|
# @param type
|
|
71
71
|
# The type of the input item. Always `input_file`.
|
|
72
72
|
def initialize: (
|
|
@@ -25,14 +25,14 @@ module OpenAI
|
|
|
25
25
|
# encoded image in a data URL.
|
|
26
26
|
attr_accessor image_url: String?
|
|
27
27
|
|
|
28
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
29
|
-
#
|
|
30
|
-
# token block.
|
|
28
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
29
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
30
|
+
# not rounded to a token block.
|
|
31
31
|
attr_reader prompt_cache_breakpoint: OpenAI::Responses::ResponseInputImage::PromptCacheBreakpoint?
|
|
32
32
|
|
|
33
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
34
|
-
#
|
|
35
|
-
# token block.
|
|
33
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
34
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
35
|
+
# not rounded to a token block.
|
|
36
36
|
def prompt_cache_breakpoint=: (
|
|
37
37
|
OpenAI::Responses::ResponseInputImage::PromptCacheBreakpoint
|
|
38
38
|
) -> OpenAI::Responses::ResponseInputImage::PromptCacheBreakpoint
|
|
@@ -46,9 +46,9 @@ module OpenAI
|
|
|
46
46
|
# The URL of the image to be sent to the model. A fully qualified URL or base64
|
|
47
47
|
# encoded image in a data URL.
|
|
48
48
|
# @param prompt_cache_breakpoint
|
|
49
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
50
|
-
#
|
|
51
|
-
# token block.
|
|
49
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
50
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
51
|
+
# not rounded to a token block.
|
|
52
52
|
# @param type
|
|
53
53
|
# The type of the input item. Always `input_image`.
|
|
54
54
|
def initialize: (
|
|
@@ -25,9 +25,9 @@ module OpenAI
|
|
|
25
25
|
# encoded image in a data URL.
|
|
26
26
|
attr_accessor image_url: String?
|
|
27
27
|
|
|
28
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
29
|
-
#
|
|
30
|
-
# token block.
|
|
28
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
29
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
30
|
+
# not rounded to a token block.
|
|
31
31
|
attr_accessor prompt_cache_breakpoint: OpenAI::Responses::ResponseInputImageContent::PromptCacheBreakpoint?
|
|
32
32
|
|
|
33
33
|
# @param detail
|
|
@@ -39,9 +39,9 @@ module OpenAI
|
|
|
39
39
|
# The URL of the image to be sent to the model. A fully qualified URL or base64
|
|
40
40
|
# encoded image in a data URL.
|
|
41
41
|
# @param prompt_cache_breakpoint
|
|
42
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
43
|
-
#
|
|
44
|
-
# token block.
|
|
42
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
43
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
44
|
+
# not rounded to a token block.
|
|
45
45
|
# @param type
|
|
46
46
|
# The type of the input item. Always `input_image`.
|
|
47
47
|
def initialize: (
|
|
@@ -15,14 +15,14 @@ module OpenAI
|
|
|
15
15
|
# The type of the input item. Always `input_text`.
|
|
16
16
|
attr_accessor type: :input_text
|
|
17
17
|
|
|
18
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
19
|
-
#
|
|
20
|
-
# token block.
|
|
18
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
19
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
20
|
+
# not rounded to a token block.
|
|
21
21
|
attr_reader prompt_cache_breakpoint: OpenAI::Responses::ResponseInputText::PromptCacheBreakpoint?
|
|
22
22
|
|
|
23
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
24
|
-
#
|
|
25
|
-
# token block.
|
|
23
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
24
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
25
|
+
# not rounded to a token block.
|
|
26
26
|
def prompt_cache_breakpoint=: (
|
|
27
27
|
OpenAI::Responses::ResponseInputText::PromptCacheBreakpoint
|
|
28
28
|
) -> OpenAI::Responses::ResponseInputText::PromptCacheBreakpoint
|
|
@@ -30,9 +30,9 @@ module OpenAI
|
|
|
30
30
|
# @param text
|
|
31
31
|
# The text input to the model.
|
|
32
32
|
# @param prompt_cache_breakpoint
|
|
33
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
34
|
-
#
|
|
35
|
-
# token block.
|
|
33
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
34
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
35
|
+
# not rounded to a token block.
|
|
36
36
|
# @param type
|
|
37
37
|
# The type of the input item. Always `input_text`.
|
|
38
38
|
def initialize: (
|
|
@@ -15,17 +15,17 @@ module OpenAI
|
|
|
15
15
|
# The type of the input item. Always `input_text`.
|
|
16
16
|
attr_accessor type: :input_text
|
|
17
17
|
|
|
18
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
19
|
-
#
|
|
20
|
-
# token block.
|
|
18
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
19
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
20
|
+
# not rounded to a token block.
|
|
21
21
|
attr_accessor prompt_cache_breakpoint: OpenAI::Responses::ResponseInputTextContent::PromptCacheBreakpoint?
|
|
22
22
|
|
|
23
23
|
# @param text
|
|
24
24
|
# The text input to the model.
|
|
25
25
|
# @param prompt_cache_breakpoint
|
|
26
|
-
# Marks the exact end of a reusable prompt prefix.
|
|
27
|
-
#
|
|
28
|
-
# token block.
|
|
26
|
+
# Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
|
|
27
|
+
# breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
|
|
28
|
+
# not rounded to a token block.
|
|
29
29
|
# @param type
|
|
30
30
|
# The type of the input item. Always `input_text`.
|
|
31
31
|
def initialize: (
|