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.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +25 -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.rb +3 -0
  7. data/lib/openai/models/beta/beta_response_input_file.rb +9 -9
  8. data/lib/openai/models/beta/beta_response_input_file_content.rb +9 -9
  9. data/lib/openai/models/beta/beta_response_input_image.rb +9 -9
  10. data/lib/openai/models/beta/beta_response_input_image_content.rb +9 -9
  11. data/lib/openai/models/beta/beta_response_input_text.rb +9 -9
  12. data/lib/openai/models/beta/beta_response_input_text_content.rb +9 -9
  13. data/lib/openai/models/beta/beta_response_item.rb +9 -9
  14. data/lib/openai/models/beta/beta_response_output_item.rb +9 -9
  15. data/lib/openai/models/beta/beta_responses_client_event.rb +3 -0
  16. data/lib/openai/models/beta/response_compact_params.rb +3 -0
  17. data/lib/openai/models/beta/response_create_params.rb +3 -0
  18. data/lib/openai/models/chat/chat_completion_content_part.rb +9 -9
  19. data/lib/openai/models/chat/chat_completion_content_part_image.rb +9 -9
  20. data/lib/openai/models/chat/chat_completion_content_part_input_audio.rb +9 -9
  21. data/lib/openai/models/chat/chat_completion_content_part_text.rb +9 -9
  22. data/lib/openai/models/chat_model.rb +1 -0
  23. data/lib/openai/models/conversations/computer_screenshot_content.rb +9 -9
  24. data/lib/openai/models/responses/response_compact_params.rb +3 -0
  25. data/lib/openai/models/responses/response_input_file.rb +9 -9
  26. data/lib/openai/models/responses/response_input_file_content.rb +9 -9
  27. data/lib/openai/models/responses/response_input_image.rb +9 -9
  28. data/lib/openai/models/responses/response_input_image_content.rb +9 -9
  29. data/lib/openai/models/responses/response_input_text.rb +9 -9
  30. data/lib/openai/models/responses/response_input_text_content.rb +9 -9
  31. data/lib/openai/version.rb +1 -1
  32. data/rbi/openai/models/beta/beta_response.rbi +1 -0
  33. data/rbi/openai/models/beta/beta_response_input_file.rbi +9 -9
  34. data/rbi/openai/models/beta/beta_response_input_file_content.rbi +9 -9
  35. data/rbi/openai/models/beta/beta_response_input_image.rbi +9 -9
  36. data/rbi/openai/models/beta/beta_response_input_image_content.rbi +9 -9
  37. data/rbi/openai/models/beta/beta_response_input_text.rbi +9 -9
  38. data/rbi/openai/models/beta/beta_response_input_text_content.rbi +9 -9
  39. data/rbi/openai/models/beta/beta_response_item.rbi +9 -9
  40. data/rbi/openai/models/beta/beta_response_output_item.rbi +9 -9
  41. data/rbi/openai/models/beta/beta_responses_client_event.rbi +4 -0
  42. data/rbi/openai/models/beta/response_compact_params.rbi +1 -0
  43. data/rbi/openai/models/beta/response_create_params.rbi +1 -0
  44. data/rbi/openai/models/chat/chat_completion_content_part.rbi +9 -9
  45. data/rbi/openai/models/chat/chat_completion_content_part_image.rbi +9 -9
  46. data/rbi/openai/models/chat/chat_completion_content_part_input_audio.rbi +9 -9
  47. data/rbi/openai/models/chat/chat_completion_content_part_text.rbi +9 -9
  48. data/rbi/openai/models/chat_model.rbi +1 -0
  49. data/rbi/openai/models/conversations/computer_screenshot_content.rbi +9 -9
  50. data/rbi/openai/models/responses/response_compact_params.rbi +1 -0
  51. data/rbi/openai/models/responses/response_input_file.rbi +9 -9
  52. data/rbi/openai/models/responses/response_input_file_content.rbi +9 -9
  53. data/rbi/openai/models/responses/response_input_image.rbi +9 -9
  54. data/rbi/openai/models/responses/response_input_image_content.rbi +9 -9
  55. data/rbi/openai/models/responses/response_input_text.rbi +9 -9
  56. data/rbi/openai/models/responses/response_input_text_content.rbi +9 -9
  57. data/sig/openai/models/beta/beta_response.rbs +2 -0
  58. data/sig/openai/models/beta/beta_response_input_file.rbs +9 -9
  59. data/sig/openai/models/beta/beta_response_input_file_content.rbs +6 -6
  60. data/sig/openai/models/beta/beta_response_input_image.rbs +9 -9
  61. data/sig/openai/models/beta/beta_response_input_image_content.rbs +6 -6
  62. data/sig/openai/models/beta/beta_response_input_text.rbs +9 -9
  63. data/sig/openai/models/beta/beta_response_input_text_content.rbs +6 -6
  64. data/sig/openai/models/beta/beta_response_item.rbs +9 -9
  65. data/sig/openai/models/beta/beta_response_output_item.rbs +9 -9
  66. data/sig/openai/models/beta/beta_responses_client_event.rbs +2 -0
  67. data/sig/openai/models/beta/response_compact_params.rbs +2 -0
  68. data/sig/openai/models/beta/response_create_params.rbs +2 -0
  69. data/sig/openai/models/chat/chat_completion_content_part.rbs +9 -9
  70. data/sig/openai/models/chat/chat_completion_content_part_image.rbs +9 -9
  71. data/sig/openai/models/chat/chat_completion_content_part_input_audio.rbs +9 -9
  72. data/sig/openai/models/chat/chat_completion_content_part_text.rbs +9 -9
  73. data/sig/openai/models/chat_model.rbs +2 -0
  74. data/sig/openai/models/conversations/computer_screenshot_content.rbs +9 -9
  75. data/sig/openai/models/responses/response_compact_params.rbs +2 -0
  76. data/sig/openai/models/responses/response_input_file.rbs +9 -9
  77. data/sig/openai/models/responses/response_input_file_content.rbs +6 -6
  78. data/sig/openai/models/responses/response_input_image.rbs +9 -9
  79. data/sig/openai/models/responses/response_input_image_content.rbs +6 -6
  80. data/sig/openai/models/responses/response_input_text.rbs +9 -9
  81. data/sig/openai/models/responses/response_input_text_content.rbs +6 -6
  82. metadata +1 -1
@@ -55,14 +55,14 @@ module OpenAI
55
55
  # The name of the file to be sent to the model.
56
56
  def filename=: (String) -> String
57
57
 
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
  attr_reader prompt_cache_breakpoint: OpenAI::Beta::BetaResponseInputFile::PromptCacheBreakpoint?
62
62
 
63
- # Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL
64
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
65
- # token block.
63
+ # Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
64
+ # breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
65
+ # not rounded to a token block.
66
66
  def prompt_cache_breakpoint=: (
67
67
  OpenAI::Beta::BetaResponseInputFile::PromptCacheBreakpoint
68
68
  ) -> OpenAI::Beta::BetaResponseInputFile::PromptCacheBreakpoint
@@ -82,9 +82,9 @@ module OpenAI
82
82
  # @param filename
83
83
  # The name of the file to be sent to the model.
84
84
  # @param prompt_cache_breakpoint
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
  # @param type
89
89
  # The type of the input item. Always `input_file`.
90
90
  def initialize: (
@@ -46,9 +46,9 @@ module OpenAI
46
46
  # The name of the file to be sent to the model.
47
47
  attr_accessor filename: String?
48
48
 
49
- # Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL
50
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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
  attr_accessor prompt_cache_breakpoint: OpenAI::Beta::BetaResponseInputFileContent::PromptCacheBreakpoint?
53
53
 
54
54
  # @param detail
@@ -66,9 +66,9 @@ module OpenAI
66
66
  # @param filename
67
67
  # The name of the file to be sent to the model.
68
68
  # @param prompt_cache_breakpoint
69
- # Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL
70
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
71
- # token block.
69
+ # Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
70
+ # breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
71
+ # not rounded to a token block.
72
72
  # @param type
73
73
  # The type of the input item. Always `input_file`.
74
74
  def initialize: (
@@ -27,14 +27,14 @@ module OpenAI
27
27
  # encoded image in a data URL.
28
28
  attr_accessor image_url: String?
29
29
 
30
- # Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL
31
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
32
- # token block.
30
+ # Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
31
+ # breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
32
+ # not rounded to a token block.
33
33
  attr_reader prompt_cache_breakpoint: OpenAI::Beta::BetaResponseInputImage::PromptCacheBreakpoint?
34
34
 
35
- # Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL
36
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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
  def prompt_cache_breakpoint=: (
39
39
  OpenAI::Beta::BetaResponseInputImage::PromptCacheBreakpoint
40
40
  ) -> OpenAI::Beta::BetaResponseInputImage::PromptCacheBreakpoint
@@ -48,9 +48,9 @@ module OpenAI
48
48
  # The URL of the image to be sent to the model. A fully qualified URL or base64
49
49
  # encoded image in a data URL.
50
50
  # @param prompt_cache_breakpoint
51
- # Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL
52
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
53
- # token block.
51
+ # Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
52
+ # breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
53
+ # not rounded to a token block.
54
54
  # @param type
55
55
  # The type of the input item. Always `input_image`.
56
56
  def initialize: (
@@ -27,9 +27,9 @@ module OpenAI
27
27
  # encoded image in a data URL.
28
28
  attr_accessor image_url: String?
29
29
 
30
- # Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL
31
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
32
- # token block.
30
+ # Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
31
+ # breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
32
+ # not rounded to a token block.
33
33
  attr_accessor prompt_cache_breakpoint: OpenAI::Beta::BetaResponseInputImageContent::PromptCacheBreakpoint?
34
34
 
35
35
  # @param detail
@@ -41,9 +41,9 @@ module OpenAI
41
41
  # The URL of the image to be sent to the model. A fully qualified URL or base64
42
42
  # encoded image in a data URL.
43
43
  # @param prompt_cache_breakpoint
44
- # Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL
45
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
46
- # token block.
44
+ # Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
45
+ # breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
46
+ # not rounded to a token block.
47
47
  # @param type
48
48
  # The type of the input item. Always `input_image`.
49
49
  def initialize: (
@@ -17,14 +17,14 @@ module OpenAI
17
17
  # The type of the input item. Always `input_text`.
18
18
  attr_accessor type: :input_text
19
19
 
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
  attr_reader prompt_cache_breakpoint: OpenAI::Beta::BetaResponseInputText::PromptCacheBreakpoint?
24
24
 
25
- # Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL
26
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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::Beta::BetaResponseInputText::PromptCacheBreakpoint
30
30
  ) -> OpenAI::Beta::BetaResponseInputText::PromptCacheBreakpoint
@@ -32,9 +32,9 @@ module OpenAI
32
32
  # @param text
33
33
  # The text input to the model.
34
34
  # @param prompt_cache_breakpoint
35
- # Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL
36
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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 input item. Always `input_text`.
40
40
  def initialize: (
@@ -17,17 +17,17 @@ module OpenAI
17
17
  # The type of the input item. Always `input_text`.
18
18
  attr_accessor type: :input_text
19
19
 
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
  attr_accessor prompt_cache_breakpoint: OpenAI::Beta::BetaResponseInputTextContent::PromptCacheBreakpoint?
24
24
 
25
25
  # @param text
26
26
  # The text input to the model.
27
27
  # @param prompt_cache_breakpoint
28
- # Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL
29
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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
  # @param type
32
32
  # The type of the input item. Always `input_text`.
33
33
  def initialize: (
@@ -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. The breakpoint inherits its TTL
196
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
201
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
216
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
194
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
199
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
214
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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`.
@@ -827,6 +827,7 @@ module OpenAI
827
827
  type model =
828
828
  :"gpt-6-astra"
829
829
  | :"gpt-6.1-sol"
830
+ | :"gpt-6.1-terra"
830
831
  | :"gpt-6-sol"
831
832
  | :"gpt-6-luna"
832
833
  | :"gpt-5.6-sol"
@@ -943,6 +944,7 @@ module OpenAI
943
944
 
944
945
  GPT_6_ASTRA: :"gpt-6-astra"
945
946
  GPT_6_1_SOL: :"gpt-6.1-sol"
947
+ GPT_6_1_TERRA: :"gpt-6.1-terra"
946
948
  GPT_6_SOL: :"gpt-6-sol"
947
949
  GPT_6_LUNA: :"gpt-6-luna"
948
950
  GPT_5_6_SOL: :"gpt-5.6-sol"
@@ -160,6 +160,7 @@ module OpenAI
160
160
  type model =
161
161
  :"gpt-6-astra"
162
162
  | :"gpt-6.1-sol"
163
+ | :"gpt-6.1-terra"
163
164
  | :"gpt-6-sol"
164
165
  | :"gpt-6-luna"
165
166
  | :"gpt-5.6-sol"
@@ -276,6 +277,7 @@ module OpenAI
276
277
 
277
278
  GPT_6_ASTRA: :"gpt-6-astra"
278
279
  GPT_6_1_SOL: :"gpt-6.1-sol"
280
+ GPT_6_1_TERRA: :"gpt-6.1-terra"
279
281
  GPT_6_SOL: :"gpt-6-sol"
280
282
  GPT_6_LUNA: :"gpt-6-luna"
281
283
  GPT_5_6_SOL: :"gpt-5.6-sol"
@@ -781,6 +781,7 @@ module OpenAI
781
781
  type model =
782
782
  :"gpt-6-astra"
783
783
  | :"gpt-6.1-sol"
784
+ | :"gpt-6.1-terra"
784
785
  | :"gpt-6-sol"
785
786
  | :"gpt-6-luna"
786
787
  | :"gpt-5.6-sol"
@@ -897,6 +898,7 @@ module OpenAI
897
898
 
898
899
  GPT_6_ASTRA: :"gpt-6-astra"
899
900
  GPT_6_1_SOL: :"gpt-6.1-sol"
901
+ GPT_6_1_TERRA: :"gpt-6.1-terra"
900
902
  GPT_6_SOL: :"gpt-6-sol"
901
903
  GPT_6_LUNA: :"gpt-6-luna"
902
904
  GPT_5_6_SOL: :"gpt-5.6-sol"
@@ -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. The breakpoint inherits its TTL
29
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
34
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
42
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
20
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
25
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
33
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
20
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
25
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
33
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. 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
  attr_reader prompt_cache_breakpoint: OpenAI::Chat::ChatCompletionContentPartText::PromptCacheBreakpoint?
24
24
 
25
- # Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL
26
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
36
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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: (
@@ -3,6 +3,7 @@ module OpenAI
3
3
  type chat_model =
4
4
  :"gpt-6-astra"
5
5
  | :"gpt-6.1-sol"
6
+ | :"gpt-6.1-terra"
6
7
  | :"gpt-6-sol"
7
8
  | :"gpt-6-luna"
8
9
  | :"gpt-5.6-sol"
@@ -96,6 +97,7 @@ module OpenAI
96
97
 
97
98
  GPT_6_ASTRA: :"gpt-6-astra"
98
99
  GPT_6_1_SOL: :"gpt-6.1-sol"
100
+ GPT_6_1_TERRA: :"gpt-6.1-terra"
99
101
  GPT_6_SOL: :"gpt-6-sol"
100
102
  GPT_6_LUNA: :"gpt-6-luna"
101
103
  GPT_5_6_SOL: :"gpt-5.6-sol"
@@ -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. The breakpoint inherits its TTL
29
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
34
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. 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
  # @param type
52
52
  # Specifies the event type. For a computer screenshot, this property is always set
53
53
  # to `computer_screenshot`.
@@ -151,6 +151,7 @@ module OpenAI
151
151
  type model =
152
152
  :"gpt-6-astra"
153
153
  | :"gpt-6.1-sol"
154
+ | :"gpt-6.1-terra"
154
155
  | :"gpt-6-sol"
155
156
  | :"gpt-6-luna"
156
157
  | :"gpt-5.6-sol"
@@ -267,6 +268,7 @@ module OpenAI
267
268
 
268
269
  GPT_6_ASTRA: :"gpt-6-astra"
269
270
  GPT_6_1_SOL: :"gpt-6.1-sol"
271
+ GPT_6_1_TERRA: :"gpt-6.1-terra"
270
272
  GPT_6_SOL: :"gpt-6-sol"
271
273
  GPT_6_LUNA: :"gpt-6-luna"
272
274
  GPT_5_6_SOL: :"gpt-5.6-sol"
@@ -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. 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
  attr_reader prompt_cache_breakpoint: OpenAI::Responses::ResponseInputFile::PromptCacheBreakpoint?
60
60
 
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
  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. The breakpoint inherits its TTL
84
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
48
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
68
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
29
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
34
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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. The breakpoint inherits its TTL
50
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
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: (