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.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +18 -0
  3. data/README.md +1 -1
  4. data/lib/openai/auth/subject_token_providers/azure_managed_identity_token_provider.rb +10 -8
  5. data/lib/openai/auth/subject_token_providers/gcp_id_token_provider.rb +8 -7
  6. data/lib/openai/models/beta/beta_response_input_file.rb +9 -9
  7. data/lib/openai/models/beta/beta_response_input_file_content.rb +9 -9
  8. data/lib/openai/models/beta/beta_response_input_image.rb +9 -9
  9. data/lib/openai/models/beta/beta_response_input_image_content.rb +9 -9
  10. data/lib/openai/models/beta/beta_response_input_text.rb +9 -9
  11. data/lib/openai/models/beta/beta_response_input_text_content.rb +9 -9
  12. data/lib/openai/models/beta/beta_response_item.rb +9 -9
  13. data/lib/openai/models/beta/beta_response_output_item.rb +9 -9
  14. data/lib/openai/models/chat/chat_completion_content_part.rb +9 -9
  15. data/lib/openai/models/chat/chat_completion_content_part_image.rb +9 -9
  16. data/lib/openai/models/chat/chat_completion_content_part_input_audio.rb +9 -9
  17. data/lib/openai/models/chat/chat_completion_content_part_text.rb +9 -9
  18. data/lib/openai/models/conversations/computer_screenshot_content.rb +9 -9
  19. data/lib/openai/models/responses/response_input_file.rb +9 -9
  20. data/lib/openai/models/responses/response_input_file_content.rb +9 -9
  21. data/lib/openai/models/responses/response_input_image.rb +9 -9
  22. data/lib/openai/models/responses/response_input_image_content.rb +9 -9
  23. data/lib/openai/models/responses/response_input_text.rb +9 -9
  24. data/lib/openai/models/responses/response_input_text_content.rb +9 -9
  25. data/lib/openai/version.rb +1 -1
  26. data/rbi/openai/models/beta/beta_response_input_file.rbi +9 -9
  27. data/rbi/openai/models/beta/beta_response_input_file_content.rbi +9 -9
  28. data/rbi/openai/models/beta/beta_response_input_image.rbi +9 -9
  29. data/rbi/openai/models/beta/beta_response_input_image_content.rbi +9 -9
  30. data/rbi/openai/models/beta/beta_response_input_text.rbi +9 -9
  31. data/rbi/openai/models/beta/beta_response_input_text_content.rbi +9 -9
  32. data/rbi/openai/models/beta/beta_response_item.rbi +9 -9
  33. data/rbi/openai/models/beta/beta_response_output_item.rbi +9 -9
  34. data/rbi/openai/models/chat/chat_completion_content_part.rbi +9 -9
  35. data/rbi/openai/models/chat/chat_completion_content_part_image.rbi +9 -9
  36. data/rbi/openai/models/chat/chat_completion_content_part_input_audio.rbi +9 -9
  37. data/rbi/openai/models/chat/chat_completion_content_part_text.rbi +9 -9
  38. data/rbi/openai/models/conversations/computer_screenshot_content.rbi +9 -9
  39. data/rbi/openai/models/responses/response_input_file.rbi +9 -9
  40. data/rbi/openai/models/responses/response_input_file_content.rbi +9 -9
  41. data/rbi/openai/models/responses/response_input_image.rbi +9 -9
  42. data/rbi/openai/models/responses/response_input_image_content.rbi +9 -9
  43. data/rbi/openai/models/responses/response_input_text.rbi +9 -9
  44. data/rbi/openai/models/responses/response_input_text_content.rbi +9 -9
  45. data/sig/openai/models/beta/beta_response_input_file.rbs +9 -9
  46. data/sig/openai/models/beta/beta_response_input_file_content.rbs +6 -6
  47. data/sig/openai/models/beta/beta_response_input_image.rbs +9 -9
  48. data/sig/openai/models/beta/beta_response_input_image_content.rbs +6 -6
  49. data/sig/openai/models/beta/beta_response_input_text.rbs +9 -9
  50. data/sig/openai/models/beta/beta_response_input_text_content.rbs +6 -6
  51. data/sig/openai/models/beta/beta_response_item.rbs +9 -9
  52. data/sig/openai/models/beta/beta_response_output_item.rbs +9 -9
  53. data/sig/openai/models/chat/chat_completion_content_part.rbs +9 -9
  54. data/sig/openai/models/chat/chat_completion_content_part_image.rbs +9 -9
  55. data/sig/openai/models/chat/chat_completion_content_part_input_audio.rbs +9 -9
  56. data/sig/openai/models/chat/chat_completion_content_part_text.rbs +9 -9
  57. data/sig/openai/models/conversations/computer_screenshot_content.rbs +9 -9
  58. data/sig/openai/models/responses/response_input_file.rbs +9 -9
  59. data/sig/openai/models/responses/response_input_file_content.rbs +6 -6
  60. data/sig/openai/models/responses/response_input_image.rbs +9 -9
  61. data/sig/openai/models/responses/response_input_image_content.rbs +6 -6
  62. data/sig/openai/models/responses/response_input_text.rbs +9 -9
  63. data/sig/openai/models/responses/response_input_text_content.rbs +6 -6
  64. metadata +1 -1
@@ -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. The breakpoint inherits its TTL
35
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
59
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
98
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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.
@@ -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. The breakpoint inherits its TTL
49
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
79
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
119
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
49
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
83
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
123
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
35
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
58
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
96
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
35
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
62
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
100
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
21
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
35
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
57
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
21
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
39
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
61
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OpenAI
4
- VERSION = "0.113.0"
4
+ VERSION = "0.114.0"
5
5
  end
@@ -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. The breakpoint inherits its TTL
60
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
112
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
178
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
51
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
110
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
176
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
38
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
79
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
141
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
38
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
86
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
148
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
28
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
56
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
98
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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
 
@@ -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. The breakpoint inherits its TTL
28
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
63
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
105
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
339
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
387
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
481
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
339
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
387
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
481
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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