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
|
@@ -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: (
|