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
@@ -17,9 +17,9 @@ module OpenAI
17
17
  )
18
18
  end
19
19
 
20
- # Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide
21
- # range of models with different capabilities, performance characteristics, and
22
- # price points. Refer to the
20
+ # Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
21
+ # wide range of models with different capabilities, performance characteristics,
22
+ # and price points. Refer to the
23
23
  # [model guide](https://developers.openai.com/api/docs/models) to browse and
24
24
  # compare available models.
25
25
  sig { returns(T.nilable(T.any(OpenAI::Responses::ResponseCompactParams::Model::OrSymbol, String))) }
@@ -76,6 +76,10 @@ module OpenAI
76
76
  sig { returns(T.nilable(OpenAI::Responses::ResponseCompactParams::PromptCacheRetention::OrSymbol)) }
77
77
  attr_accessor :prompt_cache_retention
78
78
 
79
+ # A stable identifier used for safety monitoring and abuse detection.
80
+ sig { returns(T.nilable(String)) }
81
+ attr_accessor :safety_identifier
82
+
79
83
  # Specifies the processing type used for serving the request. - If set to 'auto',
80
84
  # then the request will be processed with the service tier configured in the
81
85
  # Project settings. Unless otherwise configured, the Project will use 'default'. -
@@ -114,6 +118,8 @@ module OpenAI
114
118
 
115
119
  prompt_cache_retention: T.nilable(OpenAI::Responses::ResponseCompactParams::PromptCacheRetention::OrSymbol),
116
120
 
121
+ safety_identifier: T.nilable(String),
122
+
117
123
  service_tier: T.nilable(OpenAI::Responses::ResponseCompactParams::ServiceTier::OrSymbol),
118
124
 
119
125
  request_options: OpenAI::RequestOptions::OrHash
@@ -122,9 +128,9 @@ module OpenAI
122
128
  end
123
129
  def self.new(
124
130
 
125
- # Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide
126
- # range of models with different capabilities, performance characteristics, and
127
- # price points. Refer to the
131
+ # Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
132
+ # wide range of models with different capabilities, performance characteristics,
133
+ # and price points. Refer to the
128
134
  # [model guide](https://developers.openai.com/api/docs/models) to browse and
129
135
  # compare available models.
130
136
  model:,
@@ -164,6 +170,9 @@ module OpenAI
164
170
  # How long to retain a prompt cache entry created by this request.
165
171
  prompt_cache_retention: nil,
166
172
 
173
+ # A stable identifier used for safety monitoring and abuse detection.
174
+ safety_identifier: nil,
175
+
167
176
  # Specifies the processing type used for serving the request. - If set to 'auto',
168
177
  # then the request will be processed with the service tier configured in the
169
178
  # Project settings. Unless otherwise configured, the Project will use 'default'. -
@@ -199,6 +208,7 @@ module OpenAI
199
208
  prompt_cache_retention: T.nilable(
200
209
  OpenAI::Responses::ResponseCompactParams::PromptCacheRetention::OrSymbol
201
210
  ),
211
+ safety_identifier: T.nilable(String),
202
212
  service_tier: T.nilable(OpenAI::Responses::ResponseCompactParams::ServiceTier::OrSymbol),
203
213
  request_options: OpenAI::RequestOptions
204
214
  }
@@ -207,9 +217,9 @@ module OpenAI
207
217
  def to_hash
208
218
  end
209
219
 
210
- # Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide
211
- # range of models with different capabilities, performance characteristics, and
212
- # price points. Refer to the
220
+ # Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
221
+ # wide range of models with different capabilities, performance characteristics,
222
+ # and price points. Refer to the
213
223
  # [model guide](https://developers.openai.com/api/docs/models) to browse and
214
224
  # compare available models.
215
225
  module Model
@@ -480,6 +490,22 @@ module OpenAI
480
490
  )
481
491
  GPT_6_ROSALIND = T.let(:"gpt-6-rosalind", OpenAI::Responses::ResponseCompactParams::Model::TaggedSymbol)
482
492
  GPT_6_2_ASTRA_LAW = T.let(:"gpt-6.2-astra-law", OpenAI::Responses::ResponseCompactParams::Model::TaggedSymbol)
493
+ GPT_6_ASTRA_HEALTHCARE = T.let(
494
+ :"gpt-6-astra-healthcare",
495
+ OpenAI::Responses::ResponseCompactParams::Model::TaggedSymbol
496
+ )
497
+ GPT_6_1_SOL_HEALTHCARE = T.let(
498
+ :"gpt-6.1-sol-healthcare",
499
+ OpenAI::Responses::ResponseCompactParams::Model::TaggedSymbol
500
+ )
501
+ GPT_6_2_ASTRA_HEALTHCARE = T.let(
502
+ :"gpt-6.2-astra-healthcare",
503
+ OpenAI::Responses::ResponseCompactParams::Model::TaggedSymbol
504
+ )
505
+ GPT_6_2_SOL_HEALTHCARE = T.let(
506
+ :"gpt-6.2-sol-healthcare",
507
+ OpenAI::Responses::ResponseCompactParams::Model::TaggedSymbol
508
+ )
483
509
 
484
510
  end
485
511
 
@@ -114,17 +114,16 @@ module OpenAI
114
114
  attr_accessor :max_tool_calls
115
115
 
116
116
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
117
- # for storing additional information about the object in a structured format, and
118
- # querying for objects via API or the dashboard.
117
+ # for storing additional information about the object in a structured format.
119
118
  #
120
119
  # Keys are strings with a maximum length of 64 characters. Values are strings with
121
120
  # a maximum length of 512 characters.
122
121
  sig { returns(T.nilable(T::Hash[Symbol, String])) }
123
122
  attr_accessor :metadata
124
123
 
125
- # Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide
126
- # range of models with different capabilities, performance characteristics, and
127
- # price points. Refer to the
124
+ # Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
125
+ # wide range of models with different capabilities, performance characteristics,
126
+ # and price points. Refer to the
128
127
  # [model guide](https://developers.openai.com/api/docs/models) to browse and
129
128
  # compare available models.
130
129
  sig {
@@ -622,16 +621,15 @@ module OpenAI
622
621
  max_tool_calls: nil,
623
622
 
624
623
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
625
- # for storing additional information about the object in a structured format, and
626
- # querying for objects via API or the dashboard.
624
+ # for storing additional information about the object in a structured format.
627
625
  #
628
626
  # Keys are strings with a maximum length of 64 characters. Values are strings with
629
627
  # a maximum length of 512 characters.
630
628
  metadata: nil,
631
629
 
632
- # Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide
633
- # range of models with different capabilities, performance characteristics, and
634
- # price points. Refer to the
630
+ # Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
631
+ # wide range of models with different capabilities, performance characteristics,
632
+ # and price points. Refer to the
635
633
  # [model guide](https://developers.openai.com/api/docs/models) to browse and
636
634
  # compare available models.
637
635
  model: nil,
@@ -144,17 +144,16 @@ module OpenAI
144
144
  attr_accessor :max_tool_calls
145
145
 
146
146
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
147
- # for storing additional information about the object in a structured format, and
148
- # querying for objects via API or the dashboard.
147
+ # for storing additional information about the object in a structured format.
149
148
  #
150
149
  # Keys are strings with a maximum length of 64 characters. Values are strings with
151
150
  # a maximum length of 512 characters.
152
151
  sig { returns(T.nilable(T::Hash[Symbol, String])) }
153
152
  attr_accessor :metadata
154
153
 
155
- # Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide
156
- # range of models with different capabilities, performance characteristics, and
157
- # price points. Refer to the
154
+ # Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
155
+ # wide range of models with different capabilities, performance characteristics,
156
+ # and price points. Refer to the
158
157
  # [model guide](https://developers.openai.com/api/docs/models) to browse and
159
158
  # compare available models.
160
159
  sig {
@@ -708,16 +707,15 @@ module OpenAI
708
707
  max_tool_calls: nil,
709
708
 
710
709
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
711
- # for storing additional information about the object in a structured format, and
712
- # querying for objects via API or the dashboard.
710
+ # for storing additional information about the object in a structured format.
713
711
  #
714
712
  # Keys are strings with a maximum length of 64 characters. Values are strings with
715
713
  # a maximum length of 512 characters.
716
714
  metadata: nil,
717
715
 
718
- # Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide
719
- # range of models with different capabilities, performance characteristics, and
720
- # price points. Refer to the
716
+ # Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
717
+ # wide range of models with different capabilities, performance characteristics,
718
+ # and price points. Refer to the
721
719
  # [model guide](https://developers.openai.com/api/docs/models) to browse and
722
720
  # compare available models.
723
721
  model: nil,
@@ -67,6 +67,22 @@ module OpenAI
67
67
  )
68
68
  GPT_6_ROSALIND = T.let(:"gpt-6-rosalind", OpenAI::ResponsesModel::ResponsesOnlyModel::TaggedSymbol)
69
69
  GPT_6_2_ASTRA_LAW = T.let(:"gpt-6.2-astra-law", OpenAI::ResponsesModel::ResponsesOnlyModel::TaggedSymbol)
70
+ GPT_6_ASTRA_HEALTHCARE = T.let(
71
+ :"gpt-6-astra-healthcare",
72
+ OpenAI::ResponsesModel::ResponsesOnlyModel::TaggedSymbol
73
+ )
74
+ GPT_6_1_SOL_HEALTHCARE = T.let(
75
+ :"gpt-6.1-sol-healthcare",
76
+ OpenAI::ResponsesModel::ResponsesOnlyModel::TaggedSymbol
77
+ )
78
+ GPT_6_2_ASTRA_HEALTHCARE = T.let(
79
+ :"gpt-6.2-astra-healthcare",
80
+ OpenAI::ResponsesModel::ResponsesOnlyModel::TaggedSymbol
81
+ )
82
+ GPT_6_2_SOL_HEALTHCARE = T.let(
83
+ :"gpt-6.2-sol-healthcare",
84
+ OpenAI::ResponsesModel::ResponsesOnlyModel::TaggedSymbol
85
+ )
70
86
 
71
87
  sig { override.returns(T::Array[OpenAI::ResponsesModel::ResponsesOnlyModel::TaggedSymbol]) }
72
88
  def self.values
@@ -31,8 +31,7 @@ module OpenAI
31
31
  attr_accessor :last_active_at
32
32
 
33
33
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
34
- # for storing additional information about the object in a structured format, and
35
- # querying for objects via API or the dashboard.
34
+ # for storing additional information about the object in a structured format.
36
35
  #
37
36
  # Keys are strings with a maximum length of 64 characters. Values are strings with
38
37
  # a maximum length of 512 characters.
@@ -111,8 +110,7 @@ module OpenAI
111
110
  last_active_at:,
112
111
 
113
112
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
114
- # for storing additional information about the object in a structured format, and
115
- # querying for objects via API or the dashboard.
113
+ # for storing additional information about the object in a structured format.
116
114
  #
117
115
  # Keys are strings with a maximum length of 64 characters. Values are strings with
118
116
  # a maximum length of 512 characters.
@@ -58,8 +58,7 @@ module OpenAI
58
58
  attr_writer :file_ids
59
59
 
60
60
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
61
- # for storing additional information about the object in a structured format, and
62
- # querying for objects via API or the dashboard.
61
+ # for storing additional information about the object in a structured format.
63
62
  #
64
63
  # Keys are strings with a maximum length of 64 characters. Values are strings with
65
64
  # a maximum length of 512 characters.
@@ -114,8 +113,7 @@ module OpenAI
114
113
  file_ids: nil,
115
114
 
116
115
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
117
- # for storing additional information about the object in a structured format, and
118
- # querying for objects via API or the dashboard.
116
+ # for storing additional information about the object in a structured format.
119
117
  #
120
118
  # Keys are strings with a maximum length of 64 characters. Values are strings with
121
119
  # a maximum length of 512 characters.
@@ -26,8 +26,7 @@ module OpenAI
26
26
  attr_writer :expires_after
27
27
 
28
28
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
29
- # for storing additional information about the object in a structured format, and
30
- # querying for objects via API or the dashboard.
29
+ # for storing additional information about the object in a structured format.
31
30
  #
32
31
  # Keys are strings with a maximum length of 64 characters. Values are strings with
33
32
  # a maximum length of 512 characters.
@@ -61,8 +60,7 @@ module OpenAI
61
60
  expires_after: nil,
62
61
 
63
62
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
64
- # for storing additional information about the object in a structured format, and
65
- # querying for objects via API or the dashboard.
63
+ # for storing additional information about the object in a structured format.
66
64
  #
67
65
  # Keys are strings with a maximum length of 64 characters. Values are strings with
68
66
  # a maximum length of 512 characters.
@@ -31,6 +31,9 @@ module OpenAI
31
31
  currency: OpenAI::Admin::Organization::Projects::SpendLimitUpdateParams::Currency::OrSymbol,
32
32
  interval: OpenAI::Admin::Organization::Projects::SpendLimitUpdateParams::Interval::OrSymbol,
33
33
  threshold_amount: Integer,
34
+ notification_channel: T.nilable(
35
+ OpenAI::Admin::Organization::Projects::SpendLimitUpdateParams::NotificationChannel::OrHash
36
+ ),
34
37
  request_options: OpenAI::RequestOptions::OrHash
35
38
  )
36
39
  .returns(OpenAI::Admin::Organization::Projects::ProjectSpendLimit)
@@ -45,6 +48,9 @@ module OpenAI
45
48
  interval:,
46
49
  # The hard spend limit amount, in cents.
47
50
  threshold_amount:,
51
+ # Configure email notifications when the spend limit is reached. Leave this out to
52
+ # keep the current settings, or send null to reset to owner-only notifications.
53
+ notification_channel: nil,
48
54
  request_options: {}
49
55
  )
50
56
  end
@@ -24,6 +24,9 @@ module OpenAI
24
24
  currency: OpenAI::Admin::Organization::SpendLimitUpdateParams::Currency::OrSymbol,
25
25
  interval: OpenAI::Admin::Organization::SpendLimitUpdateParams::Interval::OrSymbol,
26
26
  threshold_amount: Integer,
27
+ notification_channel: T.nilable(
28
+ OpenAI::Admin::Organization::SpendLimitUpdateParams::NotificationChannel::OrHash
29
+ ),
27
30
  request_options: OpenAI::RequestOptions::OrHash
28
31
  )
29
32
  .returns(OpenAI::Admin::Organization::OrganizationSpendLimit)
@@ -36,6 +39,9 @@ module OpenAI
36
39
  interval:,
37
40
  # The hard spend limit amount, in cents.
38
41
  threshold_amount:,
42
+ # Configure email notifications when the spend limit is reached. Leave this out to
43
+ # keep the current settings, or send null to reset to owner-only notifications.
44
+ notification_channel: nil,
39
45
  request_options: {}
40
46
  )
41
47
  end
@@ -241,7 +241,7 @@ module OpenAI
241
241
  # 180, and the default is 7.
242
242
  limit: nil,
243
243
  # Return only costs for these exact line item names. Each value must match the
244
- # complete `line_item` value, for example `gpt-6-astra, input_tokens`.
244
+ # complete `line_item` value, for example `gpt-6.2-astra, input_tokens`.
245
245
  line_items: nil,
246
246
  # A cursor for use in pagination. Corresponding to the `next_page` field from the
247
247
  # previous response.
@@ -37,8 +37,7 @@ module OpenAI
37
37
  # requests, and can be up to 200 MB in size.
38
38
  input_file_id:,
39
39
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
40
- # for storing additional information about the object in a structured format, and
41
- # querying for objects via API or the dashboard.
40
+ # for storing additional information about the object in a structured format.
42
41
  #
43
42
  # Keys are strings with a maximum length of 64 characters. Values are strings with
44
43
  # a maximum length of 512 characters.
@@ -40,8 +40,13 @@ module OpenAI
40
40
  session_id,
41
41
  # Body param: The input events to submit to the session.
42
42
  events:,
43
- # Header param: An optional client-generated key that makes retries of submitted
44
- # messages idempotent.
43
+ # Header param: An optional client-generated key for message submissions. Retry
44
+ # the same message with the same key and identical input within the 24-hour replay
45
+ # window; a retry replays the original outcome if it is available. After the
46
+ # window expires, a key whose outcome is unavailable may return 409. After a
47
+ # timeout or server error, inspect the session history and items before
48
+ # resubmitting. Use a new key for a new message, or only after confirming the
49
+ # earlier message did not execute.
45
50
  idempotency_key: nil,
46
51
  request_options: {}
47
52
  )
@@ -13,8 +13,10 @@ module OpenAI
13
13
 
14
14
  # Lists published root-turn traces as OTLP JSON, ordered by turn creation time and
15
15
  # ID. Unpublished traces are skipped. Each page returns data available when read;
16
- # it does not wait for late traces. Trace reads and the JSON response are limited
17
- # to 16 MiB per request. If the limit is exceeded, request fewer traces.
16
+ # it does not wait for late traces. Pages may contain fewer traces than requested
17
+ # to fit the 16 MiB response limit. When `has_more` is true, pass `last_id` as
18
+ # `after` to continue. If the first trace exceeds 16 MiB before conversion or
19
+ # cannot fit on a page by itself, the API returns a `trace_too_large` error.
18
20
  sig {
19
21
  params(
20
22
  session_id: String,
@@ -171,9 +171,9 @@ module OpenAI
171
171
  )
172
172
  end
173
173
 
174
- # Updates session tools, metadata, model, reasoning effort, service tier, or the
175
- # default prompt cache lifetime. Model settings apply to subsequent turns. Omitted
176
- # fields are unchanged. See
174
+ # Updates session tools, vaults, metadata, model, reasoning effort, service tier,
175
+ # or the default prompt cache lifetime. Model settings apply to subsequent turns.
176
+ # Omitted fields are unchanged. See
177
177
  # [managing sessions](https://developers.openai.com/api/docs/guides/agents-api/sessions/manage).
178
178
  sig {
179
179
  params(
@@ -183,6 +183,7 @@ module OpenAI
183
183
  prompt_cache_options: T.nilable(OpenAI::Beta::Agents::SessionUpdateParams::PromptCacheOptions::OrHash),
184
184
  review: OpenAI::Beta::Agents::SessionUpdateParams::Review::OrSymbol,
185
185
  spend_control: T.nilable(OpenAI::Beta::Agents::SessionUpdateParams::SpendControl::OrHash),
186
+ vault_ids: T.nilable(T::Array[String]),
186
187
  request_options: OpenAI::RequestOptions::OrHash
187
188
  )
188
189
  .returns(OpenAI::Beta::AgentSession)
@@ -205,6 +206,9 @@ module OpenAI
205
206
  # Omit to retain the limit; null or a null limit removes it without resetting
206
207
  # spend.
207
208
  spend_control: nil,
209
+ # Replaces the session's referenced vaults. Omit to retain them; null or [] clears
210
+ # them.
211
+ vault_ids: nil,
208
212
  request_options: {}
209
213
  )
210
214
  end
@@ -190,12 +190,12 @@ module OpenAI
190
190
  max_tool_calls: nil,
191
191
  # Body param: Set of 16 key-value pairs that can be attached to an object. This
192
192
  # can be useful for storing additional information about the object in a
193
- # structured format, and querying for objects via API or the dashboard.
193
+ # structured format.
194
194
  #
195
195
  # Keys are strings with a maximum length of 64 characters. Values are strings with
196
196
  # a maximum length of 512 characters.
197
197
  metadata: nil,
198
- # Body param: Model ID used to generate the response, like `gpt-6-astra`. OpenAI
198
+ # Body param: Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI
199
199
  # offers a wide range of models with different capabilities, performance
200
200
  # characteristics, and price points. Refer to the
201
201
  # [model guide](https://developers.openai.com/api/docs/models) to browse and
@@ -522,12 +522,12 @@ module OpenAI
522
522
  max_tool_calls: nil,
523
523
  # Body param: Set of 16 key-value pairs that can be attached to an object. This
524
524
  # can be useful for storing additional information about the object in a
525
- # structured format, and querying for objects via API or the dashboard.
525
+ # structured format.
526
526
  #
527
527
  # Keys are strings with a maximum length of 64 characters. Values are strings with
528
528
  # a maximum length of 512 characters.
529
529
  metadata: nil,
530
- # Body param: Model ID used to generate the response, like `gpt-6-astra`. OpenAI
530
+ # Body param: Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI
531
531
  # offers a wide range of models with different capabilities, performance
532
532
  # characteristics, and price points. Refer to the
533
533
  # [model guide](https://developers.openai.com/api/docs/models) to browse and
@@ -839,6 +839,7 @@ module OpenAI
839
839
  prompt_cache_key: T.nilable(String),
840
840
  prompt_cache_options: T.nilable(OpenAI::Beta::ResponseCompactParams::PromptCacheOptions::OrHash),
841
841
  prompt_cache_retention: T.nilable(OpenAI::Beta::ResponseCompactParams::PromptCacheRetention::OrSymbol),
842
+ safety_identifier: T.nilable(String),
842
843
  service_tier: T.nilable(OpenAI::Beta::ResponseCompactParams::ServiceTier::OrSymbol),
843
844
  betas: T::Array[OpenAI::Beta::ResponseCompactParams::Beta::OrSymbol],
844
845
  request_options: OpenAI::RequestOptions::OrHash
@@ -846,7 +847,7 @@ module OpenAI
846
847
  .returns(OpenAI::Beta::BetaCompactedResponse)
847
848
  }
848
849
  def compact(
849
- # Body param: Model ID used to generate the response, like `gpt-6-astra`. OpenAI
850
+ # Body param: Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI
850
851
  # offers a wide range of models with different capabilities, performance
851
852
  # characteristics, and price points. Refer to the
852
853
  # [model guide](https://developers.openai.com/api/docs/models) to browse and
@@ -882,6 +883,8 @@ module OpenAI
882
883
  prompt_cache_options: nil,
883
884
  # Body param: How long to retain a prompt cache entry created by this request.
884
885
  prompt_cache_retention: nil,
886
+ # Body param: A stable identifier used for safety monitoring and abuse detection.
887
+ safety_identifier: nil,
885
888
  # Body param: Specifies the processing type used for serving the request. - If set
886
889
  # to 'auto', then the request will be processed with the service tier configured
887
890
  # in the Project settings. Unless otherwise configured, the Project will use
@@ -116,9 +116,9 @@ module OpenAI
116
116
  # [images](https://developers.openai.com/api/docs/guides/images-vision), and
117
117
  # [audio](https://developers.openai.com/api/docs/guides/audio).
118
118
  messages:,
119
- # Model ID used to generate the response, like `gpt-6-astra` or `o3`. OpenAI
120
- # offers a wide range of models with different capabilities, performance
121
- # characteristics, and price points. Refer to the
119
+ # Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
120
+ # wide range of models with different capabilities, performance characteristics,
121
+ # and price points. Refer to the
122
122
  # [model guide](https://developers.openai.com/api/docs/models) to browse and
123
123
  # compare available models.
124
124
  model:,
@@ -175,8 +175,7 @@ module OpenAI
175
175
  # [o-series models](https://developers.openai.com/api/docs/guides/reasoning).
176
176
  max_tokens: nil,
177
177
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
178
- # for storing additional information about the object in a structured format, and
179
- # querying for objects via API or the dashboard.
178
+ # for storing additional information about the object in a structured format.
180
179
  #
181
180
  # Keys are strings with a maximum length of 64 characters. Values are strings with
182
181
  # a maximum length of 512 characters.
@@ -299,7 +298,7 @@ module OpenAI
299
298
  # request. This response value may be different from the value set in the
300
299
  # parameter.
301
300
  service_tier: nil,
302
- # Not supported with latest reasoning models `o3` and `o4-mini`.
301
+ # Not supported with reasoning models `o3` and `o4-mini`.
303
302
  #
304
303
  # Up to 4 sequences where the API will stop generating further tokens. The
305
304
  # returned text will not contain the stop sequence.
@@ -462,9 +461,9 @@ module OpenAI
462
461
  # [images](https://developers.openai.com/api/docs/guides/images-vision), and
463
462
  # [audio](https://developers.openai.com/api/docs/guides/audio).
464
463
  messages:,
465
- # Model ID used to generate the response, like `gpt-6-astra` or `o3`. OpenAI
466
- # offers a wide range of models with different capabilities, performance
467
- # characteristics, and price points. Refer to the
464
+ # Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
465
+ # wide range of models with different capabilities, performance characteristics,
466
+ # and price points. Refer to the
468
467
  # [model guide](https://developers.openai.com/api/docs/models) to browse and
469
468
  # compare available models.
470
469
  model:,
@@ -521,8 +520,7 @@ module OpenAI
521
520
  # [o-series models](https://developers.openai.com/api/docs/guides/reasoning).
522
521
  max_tokens: nil,
523
522
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
524
- # for storing additional information about the object in a structured format, and
525
- # querying for objects via API or the dashboard.
523
+ # for storing additional information about the object in a structured format.
526
524
  #
527
525
  # Keys are strings with a maximum length of 64 characters. Values are strings with
528
526
  # a maximum length of 512 characters.
@@ -645,7 +643,7 @@ module OpenAI
645
643
  # request. This response value may be different from the value set in the
646
644
  # parameter.
647
645
  service_tier: nil,
648
- # Not supported with latest reasoning models `o3` and `o4-mini`.
646
+ # Not supported with reasoning models `o3` and `o4-mini`.
649
647
  #
650
648
  # Up to 4 sequences where the API will stop generating further tokens. The
651
649
  # returned text will not contain the stop sequence.
@@ -741,8 +739,7 @@ module OpenAI
741
739
  # The ID of the chat completion to update.
742
740
  completion_id,
743
741
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
744
- # for storing additional information about the object in a structured format, and
745
- # querying for objects via API or the dashboard.
742
+ # for storing additional information about the object in a structured format.
746
743
  #
747
744
  # Keys are strings with a maximum length of 64 characters. Values are strings with
748
745
  # a maximum length of 512 characters.
@@ -118,7 +118,7 @@ module OpenAI
118
118
  # Determinism is not guaranteed, and you should refer to the `system_fingerprint`
119
119
  # response parameter to monitor changes in the backend.
120
120
  seed: nil,
121
- # Not supported with latest reasoning models `o3` and `o4-mini`.
121
+ # Not supported with reasoning models `o3` and `o4-mini`.
122
122
  #
123
123
  # Up to 4 sequences where the API will stop generating further tokens. The
124
124
  # returned text will not contain the stop sequence.
@@ -263,7 +263,7 @@ module OpenAI
263
263
  # Determinism is not guaranteed, and you should refer to the `system_fingerprint`
264
264
  # response parameter to monitor changes in the backend.
265
265
  seed: nil,
266
- # Not supported with latest reasoning models `o3` and `o4-mini`.
266
+ # Not supported with reasoning models `o3` and `o4-mini`.
267
267
  #
268
268
  # Up to 4 sequences where the API will stop generating further tokens. The
269
269
  # returned text will not contain the stop sequence.
@@ -53,6 +53,7 @@ module OpenAI
53
53
  ]
54
54
  ),
55
55
  metadata: T.nilable(T::Hash[Symbol, String]),
56
+ safety_identifier: T.nilable(String),
56
57
  request_options: OpenAI::RequestOptions::OrHash
57
58
  )
58
59
  .returns(OpenAI::Conversations::Conversation)
@@ -62,12 +63,13 @@ module OpenAI
62
63
  # at a time.
63
64
  items: nil,
64
65
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
65
- # for storing additional information about the object in a structured format, and
66
- # querying for objects via API or the dashboard.
66
+ # for storing additional information about the object in a structured format.
67
67
  #
68
68
  # Keys are strings with a maximum length of 64 characters. Values are strings with
69
69
  # a maximum length of 512 characters.
70
70
  metadata: nil,
71
+ # A stable identifier used for safety monitoring and abuse detection.
72
+ safety_identifier: nil,
71
73
  request_options: {}
72
74
  )
73
75
  end
@@ -35,8 +35,7 @@ module OpenAI
35
35
  # Details about the run's data source.
36
36
  data_source:,
37
37
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
38
- # for storing additional information about the object in a structured format, and
39
- # querying for objects via API or the dashboard.
38
+ # for storing additional information about the object in a structured format.
40
39
  #
41
40
  # Keys are strings with a maximum length of 64 characters. Values are strings with
42
41
  # a maximum length of 512 characters.
@@ -48,8 +48,7 @@ module OpenAI
48
48
  # namespace (ie, `{{sample.output_text}}`).
49
49
  testing_criteria:,
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.
@@ -87,8 +86,7 @@ module OpenAI
87
86
  # The ID of the evaluation to update.
88
87
  eval_id,
89
88
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
90
- # for storing additional information about the object in a structured format, and
91
- # querying for objects via API or the dashboard.
89
+ # for storing additional information about the object in a structured format.
92
90
  #
93
91
  # Keys are strings with a maximum length of 64 characters. Values are strings with
94
92
  # a maximum length of 512 characters.
@@ -64,8 +64,7 @@ module OpenAI
64
64
  # A list of integrations to enable for your fine-tuning job.
65
65
  integrations: nil,
66
66
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
67
- # for storing additional information about the object in a structured format, and
68
- # querying for objects via API or the dashboard.
67
+ # for storing additional information about the object in a structured format.
69
68
  #
70
69
  # Keys are strings with a maximum length of 64 characters. Values are strings with
71
70
  # a maximum length of 512 characters.
@@ -80,7 +79,7 @@ module OpenAI
80
79
  # name.
81
80
  #
82
81
  # For example, a `suffix` of "custom-model-name" would produce a model name like
83
- # `ft:gpt-4o-mini:openai:custom-model-name:7p4lURel`.
82
+ # `ft:gpt-4.1-mini-2025-04-14:openai:custom-model-name:7p4lURel`.
84
83
  suffix: nil,
85
84
  # The ID of an uploaded file that contains validation data.
86
85
  #