openai 1.1.0 → 1.3.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 (208) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +35 -0
  3. data/README.md +4 -4
  4. data/lib/openai/models/admin/organization/organization_spend_limit.rb +38 -1
  5. data/lib/openai/models/admin/organization/projects/project_spend_limit.rb +38 -1
  6. data/lib/openai/models/admin/organization/projects/spend_limit_update_params.rb +51 -1
  7. data/lib/openai/models/admin/organization/spend_limit_update_params.rb +49 -1
  8. data/lib/openai/models/admin/organization/usage_costs_params.rb +2 -2
  9. data/lib/openai/models/all_models.rb +4 -0
  10. data/lib/openai/models/batch.rb +4 -6
  11. data/lib/openai/models/batch_create_params.rb +2 -4
  12. data/lib/openai/models/beta/agents/automation_target_param.rb +2 -2
  13. data/lib/openai/models/beta/agents/session_create_params.rb +2 -2
  14. data/lib/openai/models/beta/agents/session_update_params.rb +12 -1
  15. data/lib/openai/models/beta/beta_compacted_response.rb +19 -1
  16. data/lib/openai/models/beta/beta_container_auto.rb +8 -2
  17. data/lib/openai/models/beta/beta_response.rb +23 -13
  18. data/lib/openai/models/beta/beta_responses_client_event.rb +39 -13
  19. data/lib/openai/models/beta/response_compact_params.rb +31 -10
  20. data/lib/openai/models/beta/response_create_params.rb +23 -13
  21. data/lib/openai/models/chat/chat_completion.rb +2 -4
  22. data/lib/openai/models/chat/completion_create_params.rb +15 -17
  23. data/lib/openai/models/chat/completion_update_params.rb +2 -4
  24. data/lib/openai/models/completion_create_params.rb +3 -3
  25. data/lib/openai/models/conversations/conversation_create_params.rb +12 -5
  26. data/lib/openai/models/eval_create_params.rb +2 -4
  27. data/lib/openai/models/eval_create_response.rb +5 -9
  28. data/lib/openai/models/eval_list_response.rb +5 -9
  29. data/lib/openai/models/eval_retrieve_response.rb +5 -9
  30. data/lib/openai/models/eval_stored_completions_data_source_config.rb +2 -4
  31. data/lib/openai/models/eval_update_params.rb +2 -4
  32. data/lib/openai/models/eval_update_response.rb +5 -9
  33. data/lib/openai/models/evals/create_eval_completions_run_data_source.rb +6 -8
  34. data/lib/openai/models/evals/run_cancel_response.rb +4 -6
  35. data/lib/openai/models/evals/run_create_params.rb +4 -6
  36. data/lib/openai/models/evals/run_create_response.rb +4 -6
  37. data/lib/openai/models/evals/run_list_response.rb +4 -6
  38. data/lib/openai/models/evals/run_retrieve_response.rb +4 -6
  39. data/lib/openai/models/fine_tuning/fine_tuning_job.rb +2 -4
  40. data/lib/openai/models/fine_tuning/job_create_params.rb +7 -6
  41. data/lib/openai/models/live/fork_server_event.rb +4 -4
  42. data/lib/openai/models/live/media_session_config.rb +15 -16
  43. data/lib/openai/models/live/responses_delegation_config.rb +8 -2
  44. data/lib/openai/models/live/responses_delegation_update_config.rb +8 -2
  45. data/lib/openai/models/live/server_event.rb +4 -4
  46. data/lib/openai/models/live/sideband_server_event.rb +4 -4
  47. data/lib/openai/models/realtime/realtime_audio_config_input.rb +12 -9
  48. data/lib/openai/models/realtime/realtime_response.rb +2 -4
  49. data/lib/openai/models/realtime/realtime_response_create_params.rb +2 -4
  50. data/lib/openai/models/responses/compacted_response.rb +19 -1
  51. data/lib/openai/models/responses/container_auto.rb +8 -2
  52. data/lib/openai/models/responses/response.rb +8 -10
  53. data/lib/openai/models/responses/response_compact_params.rb +31 -10
  54. data/lib/openai/models/responses/response_create_params.rb +8 -10
  55. data/lib/openai/models/responses/responses_client_event.rb +8 -10
  56. data/lib/openai/models/responses_model.rb +4 -0
  57. data/lib/openai/models/vector_store.rb +2 -4
  58. data/lib/openai/models/vector_store_create_params.rb +2 -4
  59. data/lib/openai/models/vector_store_update_params.rb +2 -4
  60. data/lib/openai/resources/admin/organization/projects/spend_limit.rb +5 -1
  61. data/lib/openai/resources/admin/organization/spend_limit.rb +5 -1
  62. data/lib/openai/resources/admin/organization/usage.rb +1 -1
  63. data/lib/openai/resources/batches.rb +1 -2
  64. data/lib/openai/resources/beta/agents/sessions/events.rb +7 -2
  65. data/lib/openai/resources/beta/agents/sessions/traces.rb +4 -2
  66. data/lib/openai/resources/beta/agents/sessions.rb +8 -4
  67. data/lib/openai/resources/beta/responses.rb +9 -6
  68. data/lib/openai/resources/chat/completions.rb +11 -14
  69. data/lib/openai/resources/completions.rb +2 -2
  70. data/lib/openai/resources/conversations.rb +5 -3
  71. data/lib/openai/resources/evals/runs.rb +1 -2
  72. data/lib/openai/resources/evals.rb +2 -4
  73. data/lib/openai/resources/fine_tuning/jobs.rb +2 -3
  74. data/lib/openai/resources/responses.rb +15 -14
  75. data/lib/openai/resources/vector_stores.rb +2 -4
  76. data/lib/openai/version.rb +1 -1
  77. data/rbi/openai/models/admin/organization/organization_spend_limit.rbi +68 -1
  78. data/rbi/openai/models/admin/organization/projects/project_spend_limit.rbi +68 -1
  79. data/rbi/openai/models/admin/organization/projects/spend_limit_update_params.rbi +87 -0
  80. data/rbi/openai/models/admin/organization/spend_limit_update_params.rbi +85 -0
  81. data/rbi/openai/models/admin/organization/usage_costs_params.rbi +2 -2
  82. data/rbi/openai/models/all_models.rbi +7 -0
  83. data/rbi/openai/models/batch.rbi +4 -6
  84. data/rbi/openai/models/batch_create_params.rbi +2 -4
  85. data/rbi/openai/models/beta/agents/automation_target_param.rbi +2 -2
  86. data/rbi/openai/models/beta/agents/session_create_params.rbi +2 -2
  87. data/rbi/openai/models/beta/agents/session_update_params.rbi +12 -0
  88. data/rbi/openai/models/beta/beta_compacted_response.rbi +24 -1
  89. data/rbi/openai/models/beta/beta_container_auto.rbi +8 -2
  90. data/rbi/openai/models/beta/beta_response.rbi +15 -13
  91. data/rbi/openai/models/beta/beta_responses_client_event.rbi +27 -13
  92. data/rbi/openai/models/beta/response_compact_params.rbi +35 -9
  93. data/rbi/openai/models/beta/response_create_params.rbi +27 -13
  94. data/rbi/openai/models/chat/chat_completion.rbi +2 -4
  95. data/rbi/openai/models/chat/completion_create_params.rbi +14 -16
  96. data/rbi/openai/models/chat/completion_update_params.rbi +2 -4
  97. data/rbi/openai/models/completion_create_params.rbi +3 -3
  98. data/rbi/openai/models/conversations/conversation_create_params.rbi +12 -4
  99. data/rbi/openai/models/eval_create_params.rbi +2 -4
  100. data/rbi/openai/models/eval_create_response.rbi +5 -9
  101. data/rbi/openai/models/eval_list_response.rbi +5 -9
  102. data/rbi/openai/models/eval_retrieve_response.rbi +5 -9
  103. data/rbi/openai/models/eval_stored_completions_data_source_config.rbi +2 -4
  104. data/rbi/openai/models/eval_update_params.rbi +2 -4
  105. data/rbi/openai/models/eval_update_response.rbi +5 -9
  106. data/rbi/openai/models/evals/create_eval_completions_run_data_source.rbi +6 -8
  107. data/rbi/openai/models/evals/run_cancel_response.rbi +4 -6
  108. data/rbi/openai/models/evals/run_create_params.rbi +4 -6
  109. data/rbi/openai/models/evals/run_create_response.rbi +4 -6
  110. data/rbi/openai/models/evals/run_list_response.rbi +4 -6
  111. data/rbi/openai/models/evals/run_retrieve_response.rbi +4 -6
  112. data/rbi/openai/models/fine_tuning/fine_tuning_job.rbi +2 -4
  113. data/rbi/openai/models/fine_tuning/job_create_params.rbi +8 -6
  114. data/rbi/openai/models/live/fork_server_event.rbi +3 -3
  115. data/rbi/openai/models/live/media_session_config.rbi +15 -16
  116. data/rbi/openai/models/live/responses_delegation_config.rbi +8 -2
  117. data/rbi/openai/models/live/responses_delegation_update_config.rbi +8 -2
  118. data/rbi/openai/models/live/server_event.rbi +3 -3
  119. data/rbi/openai/models/live/sideband_server_event.rbi +3 -3
  120. data/rbi/openai/models/realtime/realtime_audio_config_input.rbi +12 -9
  121. data/rbi/openai/models/realtime/realtime_response.rbi +2 -4
  122. data/rbi/openai/models/realtime/realtime_response_create_params.rbi +2 -4
  123. data/rbi/openai/models/responses/compacted_response.rbi +24 -1
  124. data/rbi/openai/models/responses/container_auto.rbi +8 -2
  125. data/rbi/openai/models/responses/response.rbi +8 -10
  126. data/rbi/openai/models/responses/response_compact_params.rbi +35 -9
  127. data/rbi/openai/models/responses/response_create_params.rbi +8 -10
  128. data/rbi/openai/models/responses/responses_client_event.rbi +8 -10
  129. data/rbi/openai/models/responses_model.rbi +16 -0
  130. data/rbi/openai/models/vector_store.rbi +2 -4
  131. data/rbi/openai/models/vector_store_create_params.rbi +2 -4
  132. data/rbi/openai/models/vector_store_update_params.rbi +2 -4
  133. data/rbi/openai/resources/admin/organization/projects/spend_limit.rbi +6 -0
  134. data/rbi/openai/resources/admin/organization/spend_limit.rbi +6 -0
  135. data/rbi/openai/resources/admin/organization/usage.rbi +1 -1
  136. data/rbi/openai/resources/batches.rbi +1 -2
  137. data/rbi/openai/resources/beta/agents/sessions/events.rbi +7 -2
  138. data/rbi/openai/resources/beta/agents/sessions/traces.rbi +4 -2
  139. data/rbi/openai/resources/beta/agents/sessions.rbi +7 -3
  140. data/rbi/openai/resources/beta/responses.rbi +8 -5
  141. data/rbi/openai/resources/chat/completions.rbi +11 -14
  142. data/rbi/openai/resources/completions.rbi +2 -2
  143. data/rbi/openai/resources/conversations.rbi +4 -2
  144. data/rbi/openai/resources/evals/runs.rbi +1 -2
  145. data/rbi/openai/resources/evals.rbi +2 -4
  146. data/rbi/openai/resources/fine_tuning/jobs.rbi +2 -3
  147. data/rbi/openai/resources/responses.rbi +14 -13
  148. data/rbi/openai/resources/vector_stores.rbi +2 -4
  149. data/sig/openai/models/admin/organization/organization_spend_limit.rbs +42 -2
  150. data/sig/openai/models/admin/organization/projects/project_spend_limit.rbs +42 -2
  151. data/sig/openai/models/admin/organization/projects/spend_limit_update_params.rbs +48 -0
  152. data/sig/openai/models/admin/organization/spend_limit_update_params.rbs +48 -0
  153. data/sig/openai/models/admin/organization/usage_costs_params.rbs +3 -3
  154. data/sig/openai/models/all_models.rbs +8 -0
  155. data/sig/openai/models/batch.rbs +5 -7
  156. data/sig/openai/models/batch_create_params.rbs +2 -4
  157. data/sig/openai/models/beta/agents/automation_target_param.rbs +2 -2
  158. data/sig/openai/models/beta/agents/session_create_params.rbs +2 -2
  159. data/sig/openai/models/beta/agents/session_update_params.rbs +10 -0
  160. data/sig/openai/models/beta/beta_compacted_response.rbs +21 -2
  161. data/sig/openai/models/beta/beta_container_auto.rbs +12 -3
  162. data/sig/openai/models/beta/beta_response.rbs +16 -10
  163. data/sig/openai/models/beta/beta_responses_client_event.rbs +19 -13
  164. data/sig/openai/models/beta/response_compact_params.rbs +22 -6
  165. data/sig/openai/models/beta/response_create_params.rbs +19 -13
  166. data/sig/openai/models/chat/chat_completion.rbs +2 -4
  167. data/sig/openai/models/chat/completion_create_params.rbs +10 -12
  168. data/sig/openai/models/chat/completion_update_params.rbs +2 -4
  169. data/sig/openai/models/completion_create_params.rbs +2 -2
  170. data/sig/openai/models/conversations/conversation_create_params.rbs +10 -4
  171. data/sig/openai/models/eval_create_params.rbs +2 -4
  172. data/sig/openai/models/eval_create_response.rbs +4 -8
  173. data/sig/openai/models/eval_list_response.rbs +4 -8
  174. data/sig/openai/models/eval_retrieve_response.rbs +4 -8
  175. data/sig/openai/models/eval_stored_completions_data_source_config.rbs +2 -4
  176. data/sig/openai/models/eval_update_params.rbs +2 -4
  177. data/sig/openai/models/eval_update_response.rbs +4 -8
  178. data/sig/openai/models/evals/create_eval_completions_run_data_source.rbs +7 -9
  179. data/sig/openai/models/evals/run_cancel_response.rbs +5 -7
  180. data/sig/openai/models/evals/run_create_params.rbs +5 -7
  181. data/sig/openai/models/evals/run_create_response.rbs +5 -7
  182. data/sig/openai/models/evals/run_list_response.rbs +5 -7
  183. data/sig/openai/models/evals/run_retrieve_response.rbs +5 -7
  184. data/sig/openai/models/fine_tuning/fine_tuning_job.rbs +2 -4
  185. data/sig/openai/models/fine_tuning/job_create_params.rbs +6 -6
  186. data/sig/openai/models/live/media_session_config.rbs +21 -21
  187. data/sig/openai/models/live/responses_delegation_config.rbs +8 -2
  188. data/sig/openai/models/live/responses_delegation_update_config.rbs +8 -2
  189. data/sig/openai/models/realtime/realtime_audio_config_input.rbs +12 -9
  190. data/sig/openai/models/realtime/realtime_response.rbs +2 -4
  191. data/sig/openai/models/realtime/realtime_response_create_params.rbs +2 -4
  192. data/sig/openai/models/responses/compacted_response.rbs +21 -2
  193. data/sig/openai/models/responses/container_auto.rbs +12 -3
  194. data/sig/openai/models/responses/response.rbs +8 -10
  195. data/sig/openai/models/responses/response_compact_params.rbs +22 -6
  196. data/sig/openai/models/responses/response_create_params.rbs +11 -13
  197. data/sig/openai/models/responses/responses_client_event.rbs +11 -13
  198. data/sig/openai/models/responses_model.rbs +8 -0
  199. data/sig/openai/models/vector_store.rbs +2 -4
  200. data/sig/openai/models/vector_store_create_params.rbs +2 -4
  201. data/sig/openai/models/vector_store_update_params.rbs +2 -4
  202. data/sig/openai/resources/admin/organization/projects/spend_limit.rbs +1 -0
  203. data/sig/openai/resources/admin/organization/spend_limit.rbs +1 -0
  204. data/sig/openai/resources/beta/agents/sessions.rbs +1 -0
  205. data/sig/openai/resources/beta/responses.rbs +1 -0
  206. data/sig/openai/resources/conversations.rbs +1 -0
  207. data/sig/openai/resources/responses.rbs +1 -0
  208. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 14249c7a47dfa4d81273f59b451f91b9527702698e46c86b1df814bb97abbf27
4
- data.tar.gz: 7b2b4145f2427041cb5a4f3b2ae46df922a01b8c96af0fa6f619848a252087af
3
+ metadata.gz: cf14cd3fd24c8248523cce4c9f6765bb81c0af4cc6af141f6d5d370f41befd6f
4
+ data.tar.gz: a7c4fe0821533ebe151ca851094ec77b43cc794f5c0c3a306c89ca8bf982d82b
5
5
  SHA512:
6
- metadata.gz: 33d44eb1628ef7cb94359952aa2f8950678089e8021e8996ccb5cf357ce54d2b32de50a9afd6845521cc82b9bcfe65a5ecd5a7ce134f1a82b37e583ab12d8eee
7
- data.tar.gz: 8bc539e8cfb6d3488cea2fbca1d7d502a390cceb8e063cd45ae0c6aa8e1432e795405e324be888cb0ba68bfbf37af268eda6324e1d69c486ae08ffdb337d3783
6
+ metadata.gz: 34e6d3c6f4c69b20b50e926c72fa4dc4138d083fe0d6fcbb6bb9a90afed18f3e312f674a7e68339c58841c389b8bef64d376259fa390a94473e959e6b767abcc
7
+ data.tar.gz: 640d290dfe43be4b53da6f1eb372449ba19784022ad80ebb7229eb1cd31e0ebb0a298adcc01189efa8d7c610730fc4bffe4aeeaeb4458f6dcbcca956157fa5e7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,40 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.3.0](https://github.com/openai/openai-ruby/compare/v1.2.0...v1.3.0) (2026-11-26)
4
+
5
+
6
+ ### Features
7
+
8
+ * **api:** add spend alerts and response compaction fields ([#1115](https://github.com/openai/openai-ruby/issues/1115)) ([364d2bb](https://github.com/openai/openai-ruby/commit/364d2bb638ce541e86e8df2ff42438bb53ef72cb))
9
+ * **api:** support updating session vaults ([#1114](https://github.com/openai/openai-ruby/issues/1114)) ([eb69e40](https://github.com/openai/openai-ruby/commit/eb69e40a7cc4ed46ee8fa7733f7c796922060f01))
10
+
11
+
12
+ ### Chores
13
+
14
+ * **api:** clarify message retries ([#1113](https://github.com/openai/openai-ruby/issues/1113)) ([84cebab](https://github.com/openai/openai-ruby/commit/84cebab1ba1265f8284a7248e062af02d952ebd8))
15
+ * **api:** clarify Realtime audio noise reduction ([#1112](https://github.com/openai/openai-ruby/issues/1112)) ([4110d90](https://github.com/openai/openai-ruby/commit/4110d90f8ce18e64f987889ff3c64bc40ed3b0be))
16
+ * **api:** correct metadata documentation ([#1110](https://github.com/openai/openai-ruby/issues/1110)) ([487326b](https://github.com/openai/openai-ruby/commit/487326b1d2fd96c5ac0b12a2472e6518fad650ca))
17
+ * **api:** document inline skill upload limits ([#1095](https://github.com/openai/openai-ruby/issues/1095)) ([782b979](https://github.com/openai/openai-ruby/commit/782b979316cf82d71ce9c547c01edd7e94781b56))
18
+ * **deps:** bump connection_pool from 2.5.5 to 3.0.3 ([#1023](https://github.com/openai/openai-ruby/issues/1023)) ([578c5be](https://github.com/openai/openai-ruby/commit/578c5becfc5de8769d71982b6910f9c88f771026))
19
+ * **deps:** bump the codeql group with 2 updates ([#1111](https://github.com/openai/openai-ruby/issues/1111)) ([98c41a3](https://github.com/openai/openai-ruby/commit/98c41a3e91e1bb4cd70bcfab90cde675a2ee96c9))
20
+
21
+ ## [1.2.0](https://github.com/openai/openai-ruby/compare/v1.1.0...v1.2.0) (2026-11-24)
22
+
23
+
24
+ ### Features
25
+
26
+ * **api:** add healthcare model IDs for Responses ([#1108](https://github.com/openai/openai-ruby/issues/1108)) ([976671f](https://github.com/openai/openai-ruby/commit/976671fa7fc4b214915509f9441c9610108b78bb))
27
+
28
+
29
+ ### Chores
30
+
31
+ * **deps:** bump ruby/setup-ruby from 1.343.0 to 1.344.0 ([#1106](https://github.com/openai/openai-ruby/issues/1106)) ([6c3c103](https://github.com/openai/openai-ruby/commit/6c3c1033990cbc0efc2b6123b503a8cfa6309db5))
32
+
33
+
34
+ ### Documentation
35
+
36
+ * correct Ruby 1.0 migration guidance and examples ([#1100](https://github.com/openai/openai-ruby/issues/1100)) ([caa7317](https://github.com/openai/openai-ruby/commit/caa731792004db258fcd44191661f60571a42e6e))
37
+
3
38
  ## [1.1.0](https://github.com/openai/openai-ruby/compare/v1.0.0...v1.1.0) (2026-11-23)
4
39
 
5
40
 
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", "~> 1.1.0"
18
+ gem "openai", "~> 1.3.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -782,7 +782,7 @@ For more information about webhooks, see [the API docs](https://platform.openai.
782
782
 
783
783
  For most use cases, you will likely want to verify the webhook and parse the payload at the same time. To achieve this, we provide the method `client.webhooks.unwrap`, which parses a webhook request and verifies that it was sent by OpenAI. This method will raise an error if the signature is invalid.
784
784
 
785
- Note that the `body` parameter must be the raw JSON string sent from the server (do not parse it first). The `unwrap` method will parse this JSON for you into an event object after verifying the webhook was sent from OpenAI.
785
+ Note that the `body` parameter must be the raw JSON string sent from the server (do not parse it first). The `unwrap` method verifies the signature before parsing the JSON. It returns a typed event for recognized event types and a hash for unrecognized events.
786
786
 
787
787
  ```ruby
788
788
  require 'sinatra'
@@ -800,13 +800,13 @@ post '/webhook' do
800
800
  begin
801
801
  event = client.webhooks.unwrap(request_body, request.env)
802
802
 
803
- case event.type
803
+ case event[:type]
804
804
  when :'response.completed'
805
805
  puts "Response completed: #{event.data}"
806
806
  when :'response.failed'
807
807
  puts "Response failed: #{event.data}"
808
808
  else
809
- puts "Unhandled event type: #{event.type}"
809
+ puts "Unhandled event type: #{event[:type]}"
810
810
  end
811
811
 
812
812
  status 200
@@ -37,7 +37,16 @@ module OpenAI
37
37
  # @return [Integer]
38
38
  required :threshold_amount, Integer
39
39
 
40
- # @!method initialize(currency:, enforcement:, interval:, threshold_amount:, object: :"organization.spend_limit")
40
+ # @!attribute notification_channel
41
+ # Email notifications sent when the hard spend limit is reached.
42
+ #
43
+ # @return [OpenAI::Models::Admin::Organization::OrganizationSpendLimit::NotificationChannel, nil]
44
+ optional(
45
+ :notification_channel,
46
+ -> { OpenAI::Admin::Organization::OrganizationSpendLimit::NotificationChannel }
47
+ )
48
+
49
+ # @!method initialize(currency:, enforcement:, interval:, threshold_amount:, notification_channel: nil, object: :"organization.spend_limit")
41
50
  # Represents a hard spend limit configured at the organization level.
42
51
  #
43
52
  # @param currency [String, Symbol, OpenAI::Models::Admin::Organization::OrganizationSpendLimit::Currency]
@@ -53,6 +62,9 @@ module OpenAI
53
62
  # @param threshold_amount [Integer]
54
63
  # The hard spend limit amount, in cents.
55
64
  #
65
+ # @param notification_channel [OpenAI::Models::Admin::Organization::OrganizationSpendLimit::NotificationChannel]
66
+ # Email notifications sent when the hard spend limit is reached.
67
+ #
56
68
  # @param object [Symbol, :"organization.spend_limit"]
57
69
  # The object type, which is always `organization.spend_limit`.
58
70
 
@@ -160,6 +172,31 @@ module OpenAI
160
172
 
161
173
  # @!endgroup
162
174
  end
175
+
176
+ # @see OpenAI::Models::Admin::Organization::OrganizationSpendLimit#notification_channel
177
+ class NotificationChannel < OpenAI::Internal::Type::BaseModel
178
+ # @!attribute recipients
179
+ #
180
+ # @return [Array<String>]
181
+ required :recipients, OpenAI::Internal::Type::ArrayOf[String]
182
+
183
+ # @!attribute type
184
+ #
185
+ # @return [Symbol, :email]
186
+ required :type, const: :email
187
+
188
+ # @!attribute subject_prefix
189
+ #
190
+ # @return [String, nil]
191
+ optional :subject_prefix, String, nil?: true
192
+
193
+ # @!method initialize(recipients:, subject_prefix: nil, type: :email)
194
+ # Email notifications sent when the hard spend limit is reached.
195
+ #
196
+ # @param recipients [Array<String>]
197
+ # @param subject_prefix [String, nil]
198
+ # @param type [Symbol, :email]
199
+ end
163
200
  end
164
201
  end
165
202
 
@@ -38,7 +38,16 @@ module OpenAI
38
38
  # @return [Integer]
39
39
  required :threshold_amount, Integer
40
40
 
41
- # @!method initialize(currency:, enforcement:, interval:, threshold_amount:, object: :"project.spend_limit")
41
+ # @!attribute notification_channel
42
+ # Email notifications sent when the hard spend limit is reached.
43
+ #
44
+ # @return [OpenAI::Models::Admin::Organization::Projects::ProjectSpendLimit::NotificationChannel, nil]
45
+ optional(
46
+ :notification_channel,
47
+ -> { OpenAI::Admin::Organization::Projects::ProjectSpendLimit::NotificationChannel }
48
+ )
49
+
50
+ # @!method initialize(currency:, enforcement:, interval:, threshold_amount:, notification_channel: nil, object: :"project.spend_limit")
42
51
  # Represents a hard spend limit configured at the project level.
43
52
  #
44
53
  # @param currency [String, Symbol, OpenAI::Models::Admin::Organization::Projects::ProjectSpendLimit::Currency]
@@ -54,6 +63,9 @@ module OpenAI
54
63
  # @param threshold_amount [Integer]
55
64
  # The hard spend limit amount, in cents.
56
65
  #
66
+ # @param notification_channel [OpenAI::Models::Admin::Organization::Projects::ProjectSpendLimit::NotificationChannel]
67
+ # Email notifications sent when the hard spend limit is reached.
68
+ #
57
69
  # @param object [Symbol, :"project.spend_limit"]
58
70
  # The object type, which is always `project.spend_limit`.
59
71
 
@@ -167,6 +179,31 @@ module OpenAI
167
179
 
168
180
  # @!endgroup
169
181
  end
182
+
183
+ # @see OpenAI::Models::Admin::Organization::Projects::ProjectSpendLimit#notification_channel
184
+ class NotificationChannel < OpenAI::Internal::Type::BaseModel
185
+ # @!attribute recipients
186
+ #
187
+ # @return [Array<String>]
188
+ required :recipients, OpenAI::Internal::Type::ArrayOf[String]
189
+
190
+ # @!attribute type
191
+ #
192
+ # @return [Symbol, :email]
193
+ required :type, const: :email
194
+
195
+ # @!attribute subject_prefix
196
+ #
197
+ # @return [String, nil]
198
+ optional :subject_prefix, String, nil?: true
199
+
200
+ # @!method initialize(recipients:, subject_prefix: nil, type: :email)
201
+ # Email notifications sent when the hard spend limit is reached.
202
+ #
203
+ # @param recipients [Array<String>]
204
+ # @param subject_prefix [String, nil]
205
+ # @param type [Symbol, :email]
206
+ end
170
207
  end
171
208
  end
172
209
 
@@ -34,7 +34,20 @@ module OpenAI
34
34
  # @return [Integer]
35
35
  required :threshold_amount, Integer
36
36
 
37
- # @!method initialize(project_id:, currency:, interval:, threshold_amount:, request_options: {})
37
+ # @!attribute notification_channel
38
+ # Configure email notifications when the spend limit is reached. Leave this out to
39
+ # keep the current settings, or send null to reset to owner-only notifications.
40
+ #
41
+ # @return [OpenAI::Models::Admin::Organization::Projects::SpendLimitUpdateParams::NotificationChannel, nil]
42
+ optional(
43
+ :notification_channel,
44
+ -> {
45
+ OpenAI::Admin::Organization::Projects::SpendLimitUpdateParams::NotificationChannel
46
+ },
47
+ nil?: true
48
+ )
49
+
50
+ # @!method initialize(project_id:, currency:, interval:, threshold_amount:, notification_channel: nil, request_options: {})
38
51
  # @param project_id [String]
39
52
  #
40
53
  # @param currency [Symbol, OpenAI::Models::Admin::Organization::Projects::SpendLimitUpdateParams::Currency]
@@ -47,6 +60,10 @@ module OpenAI
47
60
  # @param threshold_amount [Integer]
48
61
  # The hard spend limit amount, in cents.
49
62
  #
63
+ # @param notification_channel [OpenAI::Models::Admin::Organization::Projects::SpendLimitUpdateParams::NotificationChannel, nil]
64
+ # Configure email notifications when the spend limit is reached. Leave this out to
65
+ # keep the current settings, or send null to reset to owner-only notifications.
66
+ #
50
67
  # @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}]
51
68
 
52
69
  # The currency for the threshold amount. Currently, only `USD` is supported.
@@ -69,6 +86,39 @@ module OpenAI
69
86
  # @!method self.values
70
87
  # @return [Array<Symbol>]
71
88
  end
89
+
90
+ class NotificationChannel < OpenAI::Internal::Type::BaseModel
91
+ # @!attribute type
92
+ #
93
+ # @return [Symbol, :email]
94
+ required :type, const: :email
95
+
96
+ # @!attribute recipients
97
+ # Additional email recipients. Omit to keep them unchanged; send [] to clear them.
98
+ #
99
+ # @return [Array<String>, nil]
100
+ optional :recipients, OpenAI::Internal::Type::ArrayOf[String]
101
+
102
+ # @!attribute subject_prefix
103
+ # Email subject prefix. Omit to keep it unchanged; send null or an empty string to
104
+ # clear it.
105
+ #
106
+ # @return [String, nil]
107
+ optional :subject_prefix, String, nil?: true
108
+
109
+ # @!method initialize(recipients: nil, subject_prefix: nil, type: :email)
110
+ # Configure email notifications when the spend limit is reached. Leave this out to
111
+ # keep the current settings, or send null to reset to owner-only notifications.
112
+ #
113
+ # @param recipients [Array<String>]
114
+ # Additional email recipients. Omit to keep them unchanged; send [] to clear them.
115
+ #
116
+ # @param subject_prefix [String, nil]
117
+ # Email subject prefix. Omit to keep it unchanged; send null or an empty string to
118
+ # clear it.
119
+ #
120
+ # @param type [Symbol, :email]
121
+ end
72
122
  end
73
123
  end
74
124
  end
@@ -28,7 +28,18 @@ module OpenAI
28
28
  # @return [Integer]
29
29
  required :threshold_amount, Integer
30
30
 
31
- # @!method initialize(currency:, interval:, threshold_amount:, request_options: {})
31
+ # @!attribute notification_channel
32
+ # Configure email notifications when the spend limit is reached. Leave this out to
33
+ # keep the current settings, or send null to reset to owner-only notifications.
34
+ #
35
+ # @return [OpenAI::Models::Admin::Organization::SpendLimitUpdateParams::NotificationChannel, nil]
36
+ optional(
37
+ :notification_channel,
38
+ -> { OpenAI::Admin::Organization::SpendLimitUpdateParams::NotificationChannel },
39
+ nil?: true
40
+ )
41
+
42
+ # @!method initialize(currency:, interval:, threshold_amount:, notification_channel: nil, request_options: {})
32
43
  # @param currency [Symbol, OpenAI::Models::Admin::Organization::SpendLimitUpdateParams::Currency]
33
44
  # The currency for the threshold amount. Currently, only `USD` is supported.
34
45
  #
@@ -39,6 +50,10 @@ module OpenAI
39
50
  # @param threshold_amount [Integer]
40
51
  # The hard spend limit amount, in cents.
41
52
  #
53
+ # @param notification_channel [OpenAI::Models::Admin::Organization::SpendLimitUpdateParams::NotificationChannel, nil]
54
+ # Configure email notifications when the spend limit is reached. Leave this out to
55
+ # keep the current settings, or send null to reset to owner-only notifications.
56
+ #
42
57
  # @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}]
43
58
 
44
59
  # The currency for the threshold amount. Currently, only `USD` is supported.
@@ -61,6 +76,39 @@ module OpenAI
61
76
  # @!method self.values
62
77
  # @return [Array<Symbol>]
63
78
  end
79
+
80
+ class NotificationChannel < OpenAI::Internal::Type::BaseModel
81
+ # @!attribute type
82
+ #
83
+ # @return [Symbol, :email]
84
+ required :type, const: :email
85
+
86
+ # @!attribute recipients
87
+ # Additional email recipients. Omit to keep them unchanged; send [] to clear them.
88
+ #
89
+ # @return [Array<String>, nil]
90
+ optional :recipients, OpenAI::Internal::Type::ArrayOf[String]
91
+
92
+ # @!attribute subject_prefix
93
+ # Email subject prefix. Omit to keep it unchanged; send null or an empty string to
94
+ # clear it.
95
+ #
96
+ # @return [String, nil]
97
+ optional :subject_prefix, String, nil?: true
98
+
99
+ # @!method initialize(recipients: nil, subject_prefix: nil, type: :email)
100
+ # Configure email notifications when the spend limit is reached. Leave this out to
101
+ # keep the current settings, or send null to reset to owner-only notifications.
102
+ #
103
+ # @param recipients [Array<String>]
104
+ # Additional email recipients. Omit to keep them unchanged; send [] to clear them.
105
+ #
106
+ # @param subject_prefix [String, nil]
107
+ # Email subject prefix. Omit to keep it unchanged; send null or an empty string to
108
+ # clear it.
109
+ #
110
+ # @param type [Symbol, :email]
111
+ end
64
112
  end
65
113
  end
66
114
  end
@@ -58,7 +58,7 @@ module OpenAI
58
58
 
59
59
  # @!attribute line_items
60
60
  # Return only costs for these exact line item names. Each value must match the
61
- # complete `line_item` value, for example `gpt-6-astra, input_tokens`.
61
+ # complete `line_item` value, for example `gpt-6.2-astra, input_tokens`.
62
62
  #
63
63
  # @return [Array<String>, nil]
64
64
  optional :line_items, OpenAI::Internal::Type::ArrayOf[String]
@@ -105,7 +105,7 @@ module OpenAI
105
105
  #
106
106
  # @param line_items [Array<String>]
107
107
  # Return only costs for these exact line item names. Each value must match the
108
- # complete `line_item` value, for example `gpt-6-astra, input_tokens`.
108
+ # complete `line_item` value, for example `gpt-6.2-astra, input_tokens`.
109
109
  #
110
110
  # @param page [String]
111
111
  # A cursor for use in pagination. Corresponding to the `next_page` field from the
@@ -79,6 +79,10 @@ module OpenAI
79
79
  GPT_ROSALIND_RESEARCH = :"gpt-rosalind-research"
80
80
  GPT_6_ROSALIND = :"gpt-6-rosalind"
81
81
  GPT_6_2_ASTRA_LAW = :"gpt-6.2-astra-law"
82
+ GPT_6_ASTRA_HEALTHCARE = :"gpt-6-astra-healthcare"
83
+ GPT_6_1_SOL_HEALTHCARE = :"gpt-6.1-sol-healthcare"
84
+ GPT_6_2_ASTRA_HEALTHCARE = :"gpt-6.2-astra-healthcare"
85
+ GPT_6_2_SOL_HEALTHCARE = :"gpt-6.2-sol-healthcare"
82
86
 
83
87
  # @!method self.values
84
88
  # @return [Array<Symbol>]
@@ -106,8 +106,7 @@ module OpenAI
106
106
 
107
107
  # @!attribute metadata
108
108
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
109
- # for storing additional information about the object in a structured format, and
110
- # querying for objects via API or the dashboard.
109
+ # for storing additional information about the object in a structured format.
111
110
  #
112
111
  # Keys are strings with a maximum length of 64 characters. Values are strings with
113
112
  # a maximum length of 512 characters.
@@ -116,7 +115,7 @@ module OpenAI
116
115
  optional :metadata, OpenAI::Internal::Type::HashOf[String], nil?: true
117
116
 
118
117
  # @!attribute model
119
- # Model ID used to process the batch, like `gpt-6-astra`. OpenAI offers a wide
118
+ # Model ID used to process the batch, like `gpt-6.2-astra`. OpenAI offers a wide
120
119
  # range of models with different capabilities, performance characteristics, and
121
120
  # price points. Refer to the
122
121
  # [model guide](https://developers.openai.com/api/docs/models) to browse and
@@ -194,14 +193,13 @@ module OpenAI
194
193
  #
195
194
  # @param metadata [Hash{Symbol=>String}, nil]
196
195
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
197
- # for storing additional information about the object in a structured format, and
198
- # querying for objects via API or the dashboard.
196
+ # for storing additional information about the object in a structured format.
199
197
  #
200
198
  # Keys are strings with a maximum length of 64 characters. Values are strings with
201
199
  # a maximum length of 512 characters.
202
200
  #
203
201
  # @param model [String]
204
- # Model ID used to process the batch, like `gpt-6-astra`. OpenAI offers a wide
202
+ # Model ID used to process the batch, like `gpt-6.2-astra`. OpenAI offers a wide
205
203
  # range of models with different capabilities, performance characteristics, and
206
204
  # price points. Refer to the
207
205
  # [model guide](https://developers.openai.com/api/docs/models) to browse and
@@ -38,8 +38,7 @@ module OpenAI
38
38
 
39
39
  # @!attribute metadata
40
40
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
41
- # for storing additional information about the object in a structured format, and
42
- # querying for objects via API or the dashboard.
41
+ # for storing additional information about the object in a structured format.
43
42
  #
44
43
  # Keys are strings with a maximum length of 64 characters. Values are strings with
45
44
  # a maximum length of 512 characters.
@@ -77,8 +76,7 @@ module OpenAI
77
76
  #
78
77
  # @param metadata [Hash{Symbol=>String}, nil]
79
78
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
80
- # for storing additional information about the object in a structured format, and
81
- # querying for objects via API or the dashboard.
79
+ # for storing additional information about the object in a structured format.
82
80
  #
83
81
  # Keys are strings with a maximum length of 64 characters. Values are strings with
84
82
  # a maximum length of 512 characters.
@@ -152,7 +152,7 @@ module OpenAI
152
152
 
153
153
  # @!attribute tools
154
154
  # Tools available to the agent. Omit to inherit, or pass null to clear them. The
155
- # resolved tool list must fit within 3 MiB (3,145,728 bytes) of compact UTF-8
155
+ # resolved tool list must fit within 8 MiB (8,388,608 bytes) of compact UTF-8
156
156
  # JSON.
157
157
  #
158
158
  # @return [Array<OpenAI::Models::Beta::AgentToolParam::Function, OpenAI::Models::Beta::AgentToolParam::ToolSearch, OpenAI::Models::Beta::AgentToolParam::ProgrammaticToolCalling, OpenAI::Models::Beta::AgentToolParam::Mcp, OpenAI::Models::Beta::AgentToolParam::WebSearch, OpenAI::Models::Beta::AgentToolParam::ComputerUse, OpenAI::Models::Beta::AgentToolParam::Automations>, nil]
@@ -197,7 +197,7 @@ module OpenAI
197
197
  #
198
198
  # @param tools [Array<OpenAI::Models::Beta::AgentToolParam::Function, OpenAI::Models::Beta::AgentToolParam::ToolSearch, OpenAI::Models::Beta::AgentToolParam::ProgrammaticToolCalling, OpenAI::Models::Beta::AgentToolParam::Mcp, OpenAI::Models::Beta::AgentToolParam::WebSearch, OpenAI::Models::Beta::AgentToolParam::ComputerUse, OpenAI::Models::Beta::AgentToolParam::Automations>, nil]
199
199
  # Tools available to the agent. Omit to inherit, or pass null to clear them. The
200
- # resolved tool list must fit within 3 MiB (3,145,728 bytes) of compact UTF-8
200
+ # resolved tool list must fit within 8 MiB (8,388,608 bytes) of compact UTF-8
201
201
  # JSON.
202
202
 
203
203
  # @see OpenAI::Models::Beta::Agents::AutomationTargetParam::NewSession::Agent#compaction
@@ -195,7 +195,7 @@ module OpenAI
195
195
 
196
196
  # @!attribute tools
197
197
  # Tools available to the agent. Omit to inherit, or pass null to clear them. The
198
- # resolved tool list must fit within 3 MiB (3,145,728 bytes) of compact UTF-8
198
+ # resolved tool list must fit within 8 MiB (8,388,608 bytes) of compact UTF-8
199
199
  # JSON.
200
200
  #
201
201
  # @return [Array<OpenAI::Models::Beta::AgentToolParam::Function, OpenAI::Models::Beta::AgentToolParam::ToolSearch, OpenAI::Models::Beta::AgentToolParam::ProgrammaticToolCalling, OpenAI::Models::Beta::AgentToolParam::Mcp, OpenAI::Models::Beta::AgentToolParam::WebSearch, OpenAI::Models::Beta::AgentToolParam::ComputerUse, OpenAI::Models::Beta::AgentToolParam::Automations>, nil]
@@ -241,7 +241,7 @@ module OpenAI
241
241
  #
242
242
  # @param tools [Array<OpenAI::Models::Beta::AgentToolParam::Function, OpenAI::Models::Beta::AgentToolParam::ToolSearch, OpenAI::Models::Beta::AgentToolParam::ProgrammaticToolCalling, OpenAI::Models::Beta::AgentToolParam::Mcp, OpenAI::Models::Beta::AgentToolParam::WebSearch, OpenAI::Models::Beta::AgentToolParam::ComputerUse, OpenAI::Models::Beta::AgentToolParam::Automations>, nil]
243
243
  # Tools available to the agent. Omit to inherit, or pass null to clear them. The
244
- # resolved tool list must fit within 3 MiB (3,145,728 bytes) of compact UTF-8
244
+ # resolved tool list must fit within 8 MiB (8,388,608 bytes) of compact UTF-8
245
245
  # JSON.
246
246
 
247
247
  # @see OpenAI::Models::Beta::Agents::SessionCreateParams::Agent#compaction
@@ -59,7 +59,14 @@ module OpenAI
59
59
  nil?: true
60
60
  )
61
61
 
62
- # @!method initialize(session_id:, agent: nil, metadata: nil, prompt_cache_options: nil, review: nil, spend_control: nil, request_options: {})
62
+ # @!attribute vault_ids
63
+ # Replaces the session's referenced vaults. Omit to retain them; null or [] clears
64
+ # them.
65
+ #
66
+ # @return [Array<String>, nil]
67
+ optional :vault_ids, OpenAI::Internal::Type::ArrayOf[String], nil?: true
68
+
69
+ # @!method initialize(session_id:, agent: nil, metadata: nil, prompt_cache_options: nil, review: nil, spend_control: nil, vault_ids: nil, request_options: {})
63
70
  # @param session_id [String]
64
71
  #
65
72
  # @param agent [OpenAI::Models::Beta::Agents::SessionUpdateParams::Agent]
@@ -82,6 +89,10 @@ module OpenAI
82
89
  # Omit to retain the limit; null or a null limit removes it without resetting
83
90
  # spend.
84
91
  #
92
+ # @param vault_ids [Array<String>, nil]
93
+ # Replaces the session's referenced vaults. Omit to retain them; null or [] clears
94
+ # them.
95
+ #
85
96
  # @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}]
86
97
 
87
98
  class Agent < OpenAI::Internal::Type::BaseModel
@@ -42,7 +42,19 @@ module OpenAI
42
42
  # @return [OpenAI::Models::Beta::BetaCompactedResponse::Image, nil]
43
43
  optional :image, -> { OpenAI::Beta::BetaCompactedResponse::Image }
44
44
 
45
- # @!method initialize(id:, created_at:, output:, usage:, image: nil, object: :"response.compaction")
45
+ # @!attribute safety_identifier
46
+ # A stable identifier that was used for safety monitoring and abuse detection.
47
+ #
48
+ # @return [String, nil]
49
+ optional :safety_identifier, String, nil?: true
50
+
51
+ # @!attribute service_tier
52
+ # The service tier used for compaction, when reported.
53
+ #
54
+ # @return [String, nil]
55
+ optional :service_tier, String
56
+
57
+ # @!method initialize(id:, created_at:, output:, usage:, image: nil, safety_identifier: nil, service_tier: nil, object: :"response.compaction")
46
58
  # @param id [String]
47
59
  # The unique identifier for the compacted response.
48
60
  #
@@ -59,6 +71,12 @@ module OpenAI
59
71
  #
60
72
  # @param image [OpenAI::Models::Beta::BetaCompactedResponse::Image]
61
73
  #
74
+ # @param safety_identifier [String, nil]
75
+ # A stable identifier that was used for safety monitoring and abuse detection.
76
+ #
77
+ # @param service_tier [String]
78
+ # The service tier used for compaction, when reported.
79
+ #
62
80
  # @param object [Symbol, :"response.compaction"]
63
81
  # The object type. Always `response.compaction`.
64
82
 
@@ -29,7 +29,10 @@ module OpenAI
29
29
  optional :network_policy, union: -> { OpenAI::Beta::BetaContainerAuto::NetworkPolicy }
30
30
 
31
31
  # @!attribute skills
32
- # An optional list of skills referenced by id or inline data.
32
+ # An optional list of skills referenced by id or inline data. Across all inline
33
+ # skills in this list, decoded ZIP data must total at most 50 MiB and Base64 text
34
+ # must total at most 70,254,592 characters, including line breaks. Skill
35
+ # references do not count toward these limits.
33
36
  #
34
37
  # @return [Array<OpenAI::Models::Beta::BetaSkillReference, OpenAI::Models::Beta::BetaInlineSkill>, nil]
35
38
  optional :skills, -> { OpenAI::Internal::Type::ArrayOf[union: OpenAI::Beta::BetaContainerAuto::Skill] }
@@ -45,7 +48,10 @@ module OpenAI
45
48
  # Network access policy for the container.
46
49
  #
47
50
  # @param skills [Array<OpenAI::Models::Beta::BetaSkillReference, OpenAI::Models::Beta::BetaInlineSkill>]
48
- # An optional list of skills referenced by id or inline data.
51
+ # An optional list of skills referenced by id or inline data. Across all inline
52
+ # skills in this list, decoded ZIP data must total at most 50 MiB and Base64 text
53
+ # must total at most 70,254,592 characters, including line breaks. Skill
54
+ # references do not count toward these limits.
49
55
  #
50
56
  # @param type [Symbol, :container_auto]
51
57
  # Automatically creates a container for this request
@@ -48,8 +48,7 @@ module OpenAI
48
48
 
49
49
  # @!attribute metadata
50
50
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
51
- # for storing additional information about the object in a structured format, and
52
- # querying for objects via API or the dashboard.
51
+ # for storing additional information about the object in a structured format.
53
52
  #
54
53
  # Keys are strings with a maximum length of 64 characters. Values are strings with
55
54
  # a maximum length of 512 characters.
@@ -58,9 +57,9 @@ module OpenAI
58
57
  required :metadata, OpenAI::Internal::Type::HashOf[String], nil?: true
59
58
 
60
59
  # @!attribute model
61
- # Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide
62
- # range of models with different capabilities, performance characteristics, and
63
- # price points. Refer to the
60
+ # Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
61
+ # wide range of models with different capabilities, performance characteristics,
62
+ # and price points. Refer to the
64
63
  # [model guide](https://developers.openai.com/api/docs/models) to browse and
65
64
  # compare available models.
66
65
  #
@@ -415,16 +414,15 @@ module OpenAI
415
414
  #
416
415
  # @param metadata [Hash{Symbol=>String}, nil]
417
416
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
418
- # for storing additional information about the object in a structured format, and
419
- # querying for objects via API or the dashboard.
417
+ # for storing additional information about the object in a structured format.
420
418
  #
421
419
  # Keys are strings with a maximum length of 64 characters. Values are strings with
422
420
  # a maximum length of 512 characters.
423
421
  #
424
422
  # @param model [Symbol, String, OpenAI::Models::Beta::BetaResponse::Model]
425
- # Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide
426
- # range of models with different capabilities, performance characteristics, and
427
- # price points. Refer to the
423
+ # Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
424
+ # wide range of models with different capabilities, performance characteristics,
425
+ # and price points. Refer to the
428
426
  # [model guide](https://developers.openai.com/api/docs/models) to browse and
429
427
  # compare available models.
430
428
  #
@@ -738,9 +736,9 @@ module OpenAI
738
736
  ]
739
737
  end
740
738
 
741
- # Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide
742
- # range of models with different capabilities, performance characteristics, and
743
- # price points. Refer to the
739
+ # Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
740
+ # wide range of models with different capabilities, performance characteristics,
741
+ # and price points. Refer to the
744
742
  # [model guide](https://developers.openai.com/api/docs/models) to browse and
745
743
  # compare available models.
746
744
  #
@@ -970,6 +968,14 @@ module OpenAI
970
968
 
971
969
  variant const: -> { OpenAI::Models::Beta::BetaResponse::Model::GPT_6_2_ASTRA_LAW }
972
970
 
971
+ variant const: -> { OpenAI::Models::Beta::BetaResponse::Model::GPT_6_ASTRA_HEALTHCARE }
972
+
973
+ variant const: -> { OpenAI::Models::Beta::BetaResponse::Model::GPT_6_1_SOL_HEALTHCARE }
974
+
975
+ variant const: -> { OpenAI::Models::Beta::BetaResponse::Model::GPT_6_2_ASTRA_HEALTHCARE }
976
+
977
+ variant const: -> { OpenAI::Models::Beta::BetaResponse::Model::GPT_6_2_SOL_HEALTHCARE }
978
+
973
979
  variant String
974
980
 
975
981
  # @!method self.variants
@@ -1342,6 +1348,10 @@ module OpenAI
1342
1348
  GPT_6_CYBER = :"gpt-6-cyber"
1343
1349
  GPT_ROSALIND_RESEARCH = :"gpt-rosalind-research"
1344
1350
  GPT_6_2_ASTRA_LAW = :"gpt-6.2-astra-law"
1351
+ GPT_6_ASTRA_HEALTHCARE = :"gpt-6-astra-healthcare"
1352
+ GPT_6_1_SOL_HEALTHCARE = :"gpt-6.1-sol-healthcare"
1353
+ GPT_6_2_ASTRA_HEALTHCARE = :"gpt-6.2-astra-healthcare"
1354
+ GPT_6_2_SOL_HEALTHCARE = :"gpt-6.2-sol-healthcare"
1345
1355
 
1346
1356
  # @!endgroup
1347
1357
  end