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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 387dbf0377bb48a284ca9d894cb7ee1c92fb9ec4234aa69d2d9401c47b3fa56a
4
- data.tar.gz: ed1edc27c3616fd92ae9dfd9cfd14420d1587dd1674b9efbd3f724f1c40a8778
3
+ metadata.gz: f8905b3e720546308f3334931a036c17e3e990e66ec863039da6c661d6024dec
4
+ data.tar.gz: 4698d4841fd6becc4266b58c8b863e3fb7b50a16d4b76523808ac291e5c566f3
5
5
  SHA512:
6
- metadata.gz: 5ad7bb21701733877509096fc9dfc9a83ef9028e281854247f19f1caa7dc08cb675af93a0abe35a2f88ae0ab0bc50fad4ffb06f8603688199fcf4f3f8ca66e94
7
- data.tar.gz: 8f809a46118840856340c3623f6ac4874c0172904c321195b08eef3d4c0d2ef016c92de87f9d35041353682f362c77502008d0f938f69987218d17fc7346a55b
6
+ metadata.gz: e664a8f9ee816f4deb836f3b03b1d82a5178f9d8e85fa42a25530e1b3d514273dbefd17da517837b5ef197e51c0e16abcf85c845491744278339903abc3b1502
7
+ data.tar.gz: 6398277b839b172914d849d071a4994d8a2c0e90ef74cde85ce76f27c940753b000e0f709f05a1d1e0f9ab8fdb7c44ce3cb77f5f6f8fcde257fbd4cdc466673c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.114.0](https://github.com/openai/openai-ruby/compare/v0.113.0...v0.114.0) (2026-10-27)
4
+
5
+
6
+ ### Features
7
+
8
+ * **api:** add prompt cache breakpoint TTL options ([#977](https://github.com/openai/openai-ruby/issues/977)) ([cc896f4](https://github.com/openai/openai-ruby/commit/cc896f44aa0ae894c9ef26e28b7700a4c521e75f))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * sanitize cloud metadata provider errors ([#971](https://github.com/openai/openai-ruby/issues/971)) ([806f5b6](https://github.com/openai/openai-ruby/commit/806f5b67f9dc17871300862eb1107e87a52a062b))
14
+
15
+
16
+ ### Chores
17
+
18
+ * **deps-dev:** bump the development-dependencies group with 2 updates ([#968](https://github.com/openai/openai-ruby/issues/968)) ([a3c5ba1](https://github.com/openai/openai-ruby/commit/a3c5ba1f0d5b936f5a631a7acabc92151c70cb14))
19
+ * **deps:** bump ruby/setup-ruby from 1.332.0 to 1.335.0 ([#970](https://github.com/openai/openai-ruby/issues/970)) ([3c7c446](https://github.com/openai/openai-ruby/commit/3c7c4469c802184715900db771341cd2272fd547))
20
+
21
+ ## [0.113.0](https://github.com/openai/openai-ruby/compare/v0.112.0...v0.113.0) (2026-10-26)
22
+
23
+
24
+ ### Features
25
+
26
+ * **api:** add gpt-6.1-terra model identifier ([#972](https://github.com/openai/openai-ruby/issues/972)) ([6b91123](https://github.com/openai/openai-ruby/commit/6b911234dfacea4c9e4fcc183e8b8363d3060bd3))
27
+
3
28
  ## [0.112.0](https://github.com/openai/openai-ruby/compare/v0.111.0...v0.112.0) (2026-10-25)
4
29
 
5
30
 
data/README.md CHANGED
@@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
15
15
  <!-- x-release-please-start-version -->
16
16
 
17
17
  ```ruby
18
- gem "openai", "~> 0.112.0"
18
+ gem "openai", "~> 0.114.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -59,9 +59,10 @@ module OpenAI
59
59
  unless response.is_a?(Net::HTTPSuccess)
60
60
  raise(
61
61
  OpenAI::Errors::SubjectTokenProviderError.new(
62
- message: "Azure IMDS returned #{response.code}: #{response.body}",
62
+ message: "Azure IMDS returned #{response.code}",
63
63
  provider: "azure-imds"
64
- )
64
+ ),
65
+ cause: nil
65
66
  )
66
67
  end
67
68
 
@@ -75,19 +76,20 @@ module OpenAI
75
76
  OpenAI::Errors::SubjectTokenProviderError.new(
76
77
  message: "Azure IMDS response missing access_token field",
77
78
  provider: "azure-imds"
78
- )
79
+ ),
80
+ cause: nil
79
81
  )
80
82
  end
81
83
 
82
84
  rescue OpenAI::Errors::SubjectTokenProviderError
83
85
  raise
84
- rescue StandardError => e
86
+ rescue StandardError
85
87
  raise(
86
88
  OpenAI::Errors::SubjectTokenProviderError.new(
87
- message: "Failed to fetch token from Azure IMDS: #{e.message}",
88
- provider: "azure-imds",
89
- cause: e
90
- )
89
+ message: "Failed to fetch token from Azure IMDS",
90
+ provider: "azure-imds"
91
+ ),
92
+ cause: nil
91
93
  )
92
94
  end
93
95
  end
@@ -47,22 +47,23 @@ module OpenAI
47
47
  unless response.is_a?(Net::HTTPSuccess)
48
48
  raise(
49
49
  OpenAI::Errors::SubjectTokenProviderError.new(
50
- message: "GCP Metadata Server returned #{response.code}: #{response.body}",
50
+ message: "GCP Metadata Server returned #{response.code}",
51
51
  provider: "gcp-metadata"
52
- )
52
+ ),
53
+ cause: nil
53
54
  )
54
55
  end
55
56
 
56
57
  response.body
57
58
  rescue OpenAI::Errors::SubjectTokenProviderError
58
59
  raise
59
- rescue StandardError => e
60
+ rescue StandardError
60
61
  raise(
61
62
  OpenAI::Errors::SubjectTokenProviderError.new(
62
- message: "Failed to fetch token from GCP Metadata Server: #{e.message}",
63
- provider: "gcp-metadata",
64
- cause: e
65
- )
63
+ message: "Failed to fetch token from GCP Metadata Server",
64
+ provider: "gcp-metadata"
65
+ ),
66
+ cause: nil
66
67
  )
67
68
  end
68
69
  end
@@ -698,6 +698,8 @@ module OpenAI
698
698
 
699
699
  variant const: -> { OpenAI::Models::Beta::BetaResponse::Model::GPT_6_1_SOL }
700
700
 
701
+ variant const: -> { OpenAI::Models::Beta::BetaResponse::Model::GPT_6_1_TERRA }
702
+
701
703
  variant const: -> { OpenAI::Models::Beta::BetaResponse::Model::GPT_6_SOL }
702
704
 
703
705
  variant const: -> { OpenAI::Models::Beta::BetaResponse::Model::GPT_6_LUNA }
@@ -925,6 +927,7 @@ module OpenAI
925
927
 
926
928
  GPT_6_ASTRA = :"gpt-6-astra"
927
929
  GPT_6_1_SOL = :"gpt-6.1-sol"
930
+ GPT_6_1_TERRA = :"gpt-6.1-terra"
928
931
  GPT_6_SOL = :"gpt-6-sol"
929
932
  GPT_6_LUNA = :"gpt-6-luna"
930
933
  GPT_5_6_SOL = :"gpt-5.6-sol"
@@ -45,9 +45,9 @@ module OpenAI
45
45
  optional :filename, String
46
46
 
47
47
  # @!attribute prompt_cache_breakpoint
48
- # Marks the exact end of a reusable prompt prefix. 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::Beta::BetaResponseInputFile::PromptCacheBreakpoint, nil]
53
53
  optional :prompt_cache_breakpoint, -> { OpenAI::Beta::BetaResponseInputFile::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::Beta::BetaResponseInputFile::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::Beta::BetaResponseInputFile::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::Beta::BetaResponseInputFile::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::Beta::BetaResponseInputFileContent::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::Beta::BetaResponseInputFileContent::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::Beta::BetaResponseInputFileContent::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::Beta::BetaResponseInputFileContent::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::Beta::BetaResponseInputImage::PromptCacheBreakpoint, nil]
39
39
  optional :prompt_cache_breakpoint, -> { OpenAI::Beta::BetaResponseInputImage::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::Beta::BetaResponseInputImage::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::Beta::BetaResponseInputImage::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::Beta::BetaResponseInputImage::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::Beta::BetaResponseInputImageContent::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::Beta::BetaResponseInputImageContent::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::Beta::BetaResponseInputImageContent::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::Beta::BetaResponseInputImageContent::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::Beta::BetaResponseInputText::PromptCacheBreakpoint, nil]
25
25
  optional :prompt_cache_breakpoint, -> { OpenAI::Beta::BetaResponseInputText::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::Beta::BetaResponseInputText::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::Beta::BetaResponseInputText::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::Beta::BetaResponseInputText::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::Beta::BetaResponseInputTextContent::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::Beta::BetaResponseInputTextContent::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::Beta::BetaResponseInputTextContent::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::Beta::BetaResponseInputTextContent::PromptCacheBreakpoint::Ttl]
65
65
  # The minimum lifetime of this cache breakpoint. Defaults to the request TTL.
@@ -298,9 +298,9 @@ module OpenAI
298
298
  required :type, const: :computer_screenshot
299
299
 
300
300
  # @!attribute prompt_cache_breakpoint
301
- # Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL
302
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
303
- # token block.
301
+ # Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
302
+ # breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
303
+ # not rounded to a token block.
304
304
  #
305
305
  # @return [OpenAI::Models::Beta::BetaResponseItem::AgentMessage::Content::ComputerScreenshot::PromptCacheBreakpoint, nil]
306
306
  optional(
@@ -322,9 +322,9 @@ module OpenAI
322
322
  # The URL of the screenshot image.
323
323
  #
324
324
  # @param prompt_cache_breakpoint [OpenAI::Models::Beta::BetaResponseItem::AgentMessage::Content::ComputerScreenshot::PromptCacheBreakpoint]
325
- # Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL
326
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
327
- # token block.
325
+ # Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
326
+ # breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
327
+ # not rounded to a token block.
328
328
  #
329
329
  # @param type [Symbol, :computer_screenshot]
330
330
  # Specifies the event type. For a computer screenshot, this property is always set
@@ -366,9 +366,9 @@ module OpenAI
366
366
  )
367
367
 
368
368
  # @!method initialize(ttl: nil, mode: :explicit)
369
- # Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL
370
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
371
- # token block.
369
+ # Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
370
+ # breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
371
+ # not rounded to a token block.
372
372
  #
373
373
  # @param ttl [Symbol, OpenAI::Models::Beta::BetaResponseItem::AgentMessage::Content::ComputerScreenshot::PromptCacheBreakpoint::Ttl]
374
374
  # The minimum lifetime of this cache breakpoint. Defaults to the request TTL.
@@ -295,9 +295,9 @@ module OpenAI
295
295
  required :type, const: :computer_screenshot
296
296
 
297
297
  # @!attribute prompt_cache_breakpoint
298
- # Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL
299
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
300
- # token block.
298
+ # Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
299
+ # breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
300
+ # not rounded to a token block.
301
301
  #
302
302
  # @return [OpenAI::Models::Beta::BetaResponseOutputItem::AgentMessage::Content::ComputerScreenshot::PromptCacheBreakpoint, nil]
303
303
  optional(
@@ -321,9 +321,9 @@ module OpenAI
321
321
  # The URL of the screenshot image.
322
322
  #
323
323
  # @param prompt_cache_breakpoint [OpenAI::Models::Beta::BetaResponseOutputItem::AgentMessage::Content::ComputerScreenshot::PromptCacheBreakpoint]
324
- # Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL
325
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
326
- # token block.
324
+ # Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
325
+ # breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
326
+ # not rounded to a token block.
327
327
  #
328
328
  # @param type [Symbol, :computer_screenshot]
329
329
  # Specifies the event type. For a computer screenshot, this property is always set
@@ -365,9 +365,9 @@ module OpenAI
365
365
  )
366
366
 
367
367
  # @!method initialize(ttl: nil, mode: :explicit)
368
- # Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL
369
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
370
- # token block.
368
+ # Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
369
+ # breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
370
+ # not rounded to a token block.
371
371
  #
372
372
  # @param ttl [Symbol, OpenAI::Models::Beta::BetaResponseOutputItem::AgentMessage::Content::ComputerScreenshot::PromptCacheBreakpoint::Ttl]
373
373
  # The minimum lifetime of this cache breakpoint. Defaults to the request TTL.
@@ -901,6 +901,8 @@ module OpenAI
901
901
 
902
902
  variant const: -> { OpenAI::Models::Beta::BetaResponsesClientEvent::ResponseCreate::Model::GPT_6_1_SOL }
903
903
 
904
+ variant const: -> { OpenAI::Models::Beta::BetaResponsesClientEvent::ResponseCreate::Model::GPT_6_1_TERRA }
905
+
904
906
  variant const: -> { OpenAI::Models::Beta::BetaResponsesClientEvent::ResponseCreate::Model::GPT_6_SOL }
905
907
 
906
908
  variant const: -> { OpenAI::Models::Beta::BetaResponsesClientEvent::ResponseCreate::Model::GPT_6_LUNA }
@@ -1312,6 +1314,7 @@ module OpenAI
1312
1314
 
1313
1315
  GPT_6_ASTRA = :"gpt-6-astra"
1314
1316
  GPT_6_1_SOL = :"gpt-6.1-sol"
1317
+ GPT_6_1_TERRA = :"gpt-6.1-terra"
1315
1318
  GPT_6_SOL = :"gpt-6-sol"
1316
1319
  GPT_6_LUNA = :"gpt-6-luna"
1317
1320
  GPT_5_6_SOL = :"gpt-5.6-sol"
@@ -180,6 +180,8 @@ module OpenAI
180
180
 
181
181
  variant const: -> { OpenAI::Models::Beta::ResponseCompactParams::Model::GPT_6_1_SOL }
182
182
 
183
+ variant const: -> { OpenAI::Models::Beta::ResponseCompactParams::Model::GPT_6_1_TERRA }
184
+
183
185
  variant const: -> { OpenAI::Models::Beta::ResponseCompactParams::Model::GPT_6_SOL }
184
186
 
185
187
  variant const: -> { OpenAI::Models::Beta::ResponseCompactParams::Model::GPT_6_LUNA }
@@ -411,6 +413,7 @@ module OpenAI
411
413
 
412
414
  GPT_6_ASTRA = :"gpt-6-astra"
413
415
  GPT_6_1_SOL = :"gpt-6.1-sol"
416
+ GPT_6_1_TERRA = :"gpt-6.1-terra"
414
417
  GPT_6_SOL = :"gpt-6-sol"
415
418
  GPT_6_LUNA = :"gpt-6-luna"
416
419
  GPT_5_6_SOL = :"gpt-5.6-sol"
@@ -767,6 +767,8 @@ module OpenAI
767
767
 
768
768
  variant const: -> { OpenAI::Models::Beta::ResponseCreateParams::Model::GPT_6_1_SOL }
769
769
 
770
+ variant const: -> { OpenAI::Models::Beta::ResponseCreateParams::Model::GPT_6_1_TERRA }
771
+
770
772
  variant const: -> { OpenAI::Models::Beta::ResponseCreateParams::Model::GPT_6_SOL }
771
773
 
772
774
  variant const: -> { OpenAI::Models::Beta::ResponseCreateParams::Model::GPT_6_LUNA }
@@ -996,6 +998,7 @@ module OpenAI
996
998
 
997
999
  GPT_6_ASTRA = :"gpt-6-astra"
998
1000
  GPT_6_1_SOL = :"gpt-6.1-sol"
1001
+ GPT_6_1_TERRA = :"gpt-6.1-terra"
999
1002
  GPT_6_SOL = :"gpt-6-sol"
1000
1003
  GPT_6_LUNA = :"gpt-6-luna"
1001
1004
  GPT_5_6_SOL = :"gpt-5.6-sol"
@@ -34,9 +34,9 @@ module OpenAI
34
34
  required :type, const: :file
35
35
 
36
36
  # @!attribute prompt_cache_breakpoint
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
  #
41
41
  # @return [OpenAI::Models::Chat::ChatCompletionContentPart::File::PromptCacheBreakpoint, nil]
42
42
  optional(
@@ -51,9 +51,9 @@ module OpenAI
51
51
  # @param file [OpenAI::Models::Chat::ChatCompletionContentPart::File::File]
52
52
  #
53
53
  # @param prompt_cache_breakpoint [OpenAI::Models::Chat::ChatCompletionContentPart::File::PromptCacheBreakpoint]
54
- # Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL
55
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
56
- # token block.
54
+ # Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
55
+ # breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
56
+ # not rounded to a token block.
57
57
  #
58
58
  # @param type [Symbol, :file]
59
59
  # The type of the content part. Always `file`.
@@ -106,9 +106,9 @@ module OpenAI
106
106
  optional :ttl, enum: -> { OpenAI::Chat::ChatCompletionContentPart::File::PromptCacheBreakpoint::Ttl }
107
107
 
108
108
  # @!method initialize(ttl: nil, mode: :explicit)
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
  #
113
113
  # @param ttl [Symbol, OpenAI::Models::Chat::ChatCompletionContentPart::File::PromptCacheBreakpoint::Ttl]
114
114
  # The minimum lifetime of this cache breakpoint. Defaults to the request TTL.
@@ -16,9 +16,9 @@ module OpenAI
16
16
  required :type, const: :image_url
17
17
 
18
18
  # @!attribute prompt_cache_breakpoint
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
  #
23
23
  # @return [OpenAI::Models::Chat::ChatCompletionContentPartImage::PromptCacheBreakpoint, nil]
24
24
  optional(
@@ -33,9 +33,9 @@ module OpenAI
33
33
  # @param image_url [OpenAI::Models::Chat::ChatCompletionContentPartImage::ImageURL]
34
34
  #
35
35
  # @param prompt_cache_breakpoint [OpenAI::Models::Chat::ChatCompletionContentPartImage::PromptCacheBreakpoint]
36
- # Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL
37
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
38
- # token block.
36
+ # Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
37
+ # breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
38
+ # not rounded to a token block.
39
39
  #
40
40
  # @param type [Symbol, :image_url]
41
41
  # The type of the content part.
@@ -95,9 +95,9 @@ module OpenAI
95
95
  optional :ttl, enum: -> { OpenAI::Chat::ChatCompletionContentPartImage::PromptCacheBreakpoint::Ttl }
96
96
 
97
97
  # @!method initialize(ttl: nil, mode: :explicit)
98
- # Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL
99
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
100
- # token block.
98
+ # Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
99
+ # breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
100
+ # not rounded to a token block.
101
101
  #
102
102
  # @param ttl [Symbol, OpenAI::Models::Chat::ChatCompletionContentPartImage::PromptCacheBreakpoint::Ttl]
103
103
  # The minimum lifetime of this cache breakpoint. Defaults to the request TTL.