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
@@ -32,6 +32,21 @@ module OpenAI
32
32
  sig { returns(Integer) }
33
33
  attr_accessor :threshold_amount
34
34
 
35
+ # Configure email notifications when the spend limit is reached. Leave this out to
36
+ # keep the current settings, or send null to reset to owner-only notifications.
37
+ sig { returns(T.nilable(OpenAI::Admin::Organization::SpendLimitUpdateParams::NotificationChannel)) }
38
+ attr_reader :notification_channel
39
+
40
+ sig {
41
+ params(
42
+ notification_channel: T.nilable(
43
+ OpenAI::Admin::Organization::SpendLimitUpdateParams::NotificationChannel::OrHash
44
+ )
45
+ )
46
+ .void
47
+ }
48
+ attr_writer :notification_channel
49
+
35
50
  sig do
36
51
  params(
37
52
 
@@ -41,6 +56,10 @@ module OpenAI
41
56
 
42
57
  threshold_amount: Integer,
43
58
 
59
+ notification_channel: T.nilable(
60
+ OpenAI::Admin::Organization::SpendLimitUpdateParams::NotificationChannel::OrHash
61
+ ),
62
+
44
63
  request_options: OpenAI::RequestOptions::OrHash
45
64
  )
46
65
  .returns(T.attached_class)
@@ -57,6 +76,10 @@ module OpenAI
57
76
  # The hard spend limit amount, in cents.
58
77
  threshold_amount:,
59
78
 
79
+ # Configure email notifications when the spend limit is reached. Leave this out to
80
+ # keep the current settings, or send null to reset to owner-only notifications.
81
+ notification_channel: nil,
82
+
60
83
  request_options: {}
61
84
  )
62
85
  end
@@ -67,6 +90,9 @@ module OpenAI
67
90
  currency: OpenAI::Admin::Organization::SpendLimitUpdateParams::Currency::OrSymbol,
68
91
  interval: OpenAI::Admin::Organization::SpendLimitUpdateParams::Interval::OrSymbol,
69
92
  threshold_amount: Integer,
93
+ notification_channel: T.nilable(
94
+ OpenAI::Admin::Organization::SpendLimitUpdateParams::NotificationChannel
95
+ ),
70
96
  request_options: OpenAI::RequestOptions
71
97
  }
72
98
  )
@@ -111,6 +137,65 @@ module OpenAI
111
137
  end
112
138
  end
113
139
 
140
+ class NotificationChannel < OpenAI::Internal::Type::BaseModel
141
+ OrHash = T.type_alias do
142
+ T.any(
143
+ OpenAI::Admin::Organization::SpendLimitUpdateParams::NotificationChannel,
144
+ OpenAI::Internal::AnyHash
145
+ )
146
+ end
147
+
148
+ sig { returns(Symbol) }
149
+ attr_accessor :type
150
+
151
+ # Additional email recipients. Omit to keep them unchanged; send [] to clear them.
152
+ sig { returns(T.nilable(T::Array[String])) }
153
+ attr_reader :recipients
154
+
155
+ sig { params(recipients: T::Array[String]).void }
156
+ attr_writer :recipients
157
+
158
+ # Email subject prefix. Omit to keep it unchanged; send null or an empty string to
159
+ # clear it.
160
+ sig { returns(T.nilable(String)) }
161
+ attr_accessor :subject_prefix
162
+
163
+ # Configure email notifications when the spend limit is reached. Leave this out to
164
+ # keep the current settings, or send null to reset to owner-only notifications.
165
+ sig do
166
+ params(
167
+
168
+ recipients: T::Array[String],
169
+
170
+ subject_prefix: T.nilable(String),
171
+
172
+ type: Symbol
173
+ )
174
+ .returns(T.attached_class)
175
+ end
176
+ def self.new(
177
+
178
+ # Additional email recipients. Omit to keep them unchanged; send [] to clear them.
179
+ recipients: nil,
180
+
181
+ # Email subject prefix. Omit to keep it unchanged; send null or an empty string to
182
+ # clear it.
183
+ subject_prefix: nil,
184
+
185
+ type: :email
186
+ )
187
+ end
188
+
189
+ sig do
190
+ override.returns(
191
+ {type: Symbol, recipients: T::Array[String], subject_prefix: T.nilable(String)}
192
+ )
193
+ end
194
+ def to_hash
195
+ end
196
+
197
+ end
198
+
114
199
  end
115
200
 
116
201
  end
@@ -67,7 +67,7 @@ module OpenAI
67
67
  attr_writer :limit
68
68
 
69
69
  # Return only costs for these exact line item names. Each value must match the
70
- # complete `line_item` value, for example `gpt-6-astra, input_tokens`.
70
+ # complete `line_item` value, for example `gpt-6.2-astra, input_tokens`.
71
71
  sig { returns(T.nilable(T::Array[String])) }
72
72
  attr_reader :line_items
73
73
 
@@ -143,7 +143,7 @@ module OpenAI
143
143
  limit: nil,
144
144
 
145
145
  # Return only costs for these exact line item names. Each value must match the
146
- # complete `line_item` value, for example `gpt-6-astra, input_tokens`.
146
+ # complete `line_item` value, for example `gpt-6.2-astra, input_tokens`.
147
147
  line_items: nil,
148
148
 
149
149
  # A cursor for use in pagination. Corresponding to the `next_page` field from the
@@ -55,6 +55,13 @@ module OpenAI
55
55
  GPT_ROSALIND_RESEARCH = T.let(:"gpt-rosalind-research", OpenAI::AllModels::ResponsesOnlyModel::TaggedSymbol)
56
56
  GPT_6_ROSALIND = T.let(:"gpt-6-rosalind", OpenAI::AllModels::ResponsesOnlyModel::TaggedSymbol)
57
57
  GPT_6_2_ASTRA_LAW = T.let(:"gpt-6.2-astra-law", OpenAI::AllModels::ResponsesOnlyModel::TaggedSymbol)
58
+ GPT_6_ASTRA_HEALTHCARE = T.let(:"gpt-6-astra-healthcare", OpenAI::AllModels::ResponsesOnlyModel::TaggedSymbol)
59
+ GPT_6_1_SOL_HEALTHCARE = T.let(:"gpt-6.1-sol-healthcare", OpenAI::AllModels::ResponsesOnlyModel::TaggedSymbol)
60
+ GPT_6_2_ASTRA_HEALTHCARE = T.let(
61
+ :"gpt-6.2-astra-healthcare",
62
+ OpenAI::AllModels::ResponsesOnlyModel::TaggedSymbol
63
+ )
64
+ GPT_6_2_SOL_HEALTHCARE = T.let(:"gpt-6.2-sol-healthcare", OpenAI::AllModels::ResponsesOnlyModel::TaggedSymbol)
58
65
 
59
66
  sig { override.returns(T::Array[OpenAI::AllModels::ResponsesOnlyModel::TaggedSymbol]) }
60
67
  def self.values
@@ -109,15 +109,14 @@ module OpenAI
109
109
  attr_writer :in_progress_at
110
110
 
111
111
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
112
- # for storing additional information about the object in a structured format, and
113
- # querying for objects via API or the dashboard.
112
+ # for storing additional information about the object in a structured format.
114
113
  #
115
114
  # Keys are strings with a maximum length of 64 characters. Values are strings with
116
115
  # a maximum length of 512 characters.
117
116
  sig { returns(T.nilable(T::Hash[Symbol, String])) }
118
117
  attr_accessor :metadata
119
118
 
120
- # Model ID used to process the batch, like `gpt-6-astra`. OpenAI offers a wide
119
+ # Model ID used to process the batch, like `gpt-6.2-astra`. OpenAI offers a wide
121
120
  # range of models with different capabilities, performance characteristics, and
122
121
  # price points. Refer to the
123
122
  # [model guide](https://developers.openai.com/api/docs/models) to browse and
@@ -249,14 +248,13 @@ module OpenAI
249
248
  in_progress_at: nil,
250
249
 
251
250
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
252
- # for storing additional information about the object in a structured format, and
253
- # querying for objects via API or the dashboard.
251
+ # for storing additional information about the object in a structured format.
254
252
  #
255
253
  # Keys are strings with a maximum length of 64 characters. Values are strings with
256
254
  # a maximum length of 512 characters.
257
255
  metadata: nil,
258
256
 
259
- # Model ID used to process the batch, like `gpt-6-astra`. OpenAI offers a wide
257
+ # Model ID used to process the batch, like `gpt-6.2-astra`. OpenAI offers a wide
260
258
  # range of models with different capabilities, performance characteristics, and
261
259
  # price points. Refer to the
262
260
  # [model guide](https://developers.openai.com/api/docs/models) to browse and
@@ -39,8 +39,7 @@ module OpenAI
39
39
  attr_accessor :input_file_id
40
40
 
41
41
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
42
- # for storing additional information about the object in a structured format, and
43
- # querying for objects via API or the dashboard.
42
+ # for storing additional information about the object in a structured format.
44
43
  #
45
44
  # Keys are strings with a maximum length of 64 characters. Values are strings with
46
45
  # a maximum length of 512 characters.
@@ -95,8 +94,7 @@ module OpenAI
95
94
  input_file_id:,
96
95
 
97
96
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
98
- # for storing additional information about the object in a structured format, and
99
- # querying for objects via API or the dashboard.
97
+ # for storing additional information about the object in a structured format.
100
98
  #
101
99
  # Keys are strings with a maximum length of 64 characters. Values are strings with
102
100
  # a maximum length of 512 characters.
@@ -217,7 +217,7 @@ module OpenAI
217
217
  attr_writer :text
218
218
 
219
219
  # Tools available to the agent. Omit to inherit, or pass null to clear them. The
220
- # resolved tool list must fit within 3 MiB (3,145,728 bytes) of compact UTF-8
220
+ # resolved tool list must fit within 8 MiB (8,388,608 bytes) of compact UTF-8
221
221
  # JSON.
222
222
  sig {
223
223
  returns(
@@ -309,7 +309,7 @@ module OpenAI
309
309
  text: nil,
310
310
 
311
311
  # Tools available to the agent. Omit to inherit, or pass null to clear them. The
312
- # resolved tool list must fit within 3 MiB (3,145,728 bytes) of compact UTF-8
312
+ # resolved tool list must fit within 8 MiB (8,388,608 bytes) of compact UTF-8
313
313
  # JSON.
314
314
 
315
315
  tools: nil
@@ -264,7 +264,7 @@ module OpenAI
264
264
  attr_writer :text
265
265
 
266
266
  # Tools available to the agent. Omit to inherit, or pass null to clear them. The
267
- # resolved tool list must fit within 3 MiB (3,145,728 bytes) of compact UTF-8
267
+ # resolved tool list must fit within 8 MiB (8,388,608 bytes) of compact UTF-8
268
268
  # JSON.
269
269
  sig {
270
270
  returns(
@@ -353,7 +353,7 @@ module OpenAI
353
353
  text: nil,
354
354
 
355
355
  # Tools available to the agent. Omit to inherit, or pass null to clear them. The
356
- # resolved tool list must fit within 3 MiB (3,145,728 bytes) of compact UTF-8
356
+ # resolved tool list must fit within 8 MiB (8,388,608 bytes) of compact UTF-8
357
357
  # JSON.
358
358
 
359
359
  tools: nil
@@ -66,6 +66,11 @@ module OpenAI
66
66
  }
67
67
  attr_writer :spend_control
68
68
 
69
+ # Replaces the session's referenced vaults. Omit to retain them; null or [] clears
70
+ # them.
71
+ sig { returns(T.nilable(T::Array[String])) }
72
+ attr_accessor :vault_ids
73
+
69
74
  sig do
70
75
  params(
71
76
 
@@ -81,6 +86,8 @@ module OpenAI
81
86
 
82
87
  spend_control: T.nilable(OpenAI::Beta::Agents::SessionUpdateParams::SpendControl::OrHash),
83
88
 
89
+ vault_ids: T.nilable(T::Array[String]),
90
+
84
91
  request_options: OpenAI::RequestOptions::OrHash
85
92
  )
86
93
  .returns(T.attached_class)
@@ -109,6 +116,10 @@ module OpenAI
109
116
  # spend.
110
117
  spend_control: nil,
111
118
 
119
+ # Replaces the session's referenced vaults. Omit to retain them; null or [] clears
120
+ # them.
121
+ vault_ids: nil,
122
+
112
123
  request_options: {}
113
124
  )
114
125
  end
@@ -122,6 +133,7 @@ module OpenAI
122
133
  prompt_cache_options: T.nilable(OpenAI::Beta::Agents::SessionUpdateParams::PromptCacheOptions),
123
134
  review: OpenAI::Beta::Agents::SessionUpdateParams::Review::OrSymbol,
124
135
  spend_control: T.nilable(OpenAI::Beta::Agents::SessionUpdateParams::SpendControl),
136
+ vault_ids: T.nilable(T::Array[String]),
125
137
  request_options: OpenAI::RequestOptions
126
138
  }
127
139
  )
@@ -47,6 +47,17 @@ module OpenAI
47
47
  sig { params(image: OpenAI::Beta::BetaCompactedResponse::Image::OrHash).void }
48
48
  attr_writer :image
49
49
 
50
+ # A stable identifier that was used for safety monitoring and abuse detection.
51
+ sig { returns(T.nilable(String)) }
52
+ attr_accessor :safety_identifier
53
+
54
+ # The service tier used for compaction, when reported.
55
+ sig { returns(T.nilable(String)) }
56
+ attr_reader :service_tier
57
+
58
+ sig { params(service_tier: String).void }
59
+ attr_writer :service_tier
60
+
50
61
  sig do
51
62
  params(
52
63
 
@@ -96,6 +107,10 @@ module OpenAI
96
107
 
97
108
  image: OpenAI::Beta::BetaCompactedResponse::Image::OrHash,
98
109
 
110
+ safety_identifier: T.nilable(String),
111
+
112
+ service_tier: String,
113
+
99
114
  object: Symbol
100
115
  )
101
116
  .returns(T.attached_class)
@@ -118,6 +133,12 @@ module OpenAI
118
133
 
119
134
  image: nil,
120
135
 
136
+ # A stable identifier that was used for safety monitoring and abuse detection.
137
+ safety_identifier: nil,
138
+
139
+ # The service tier used for compaction, when reported.
140
+ service_tier: nil,
141
+
121
142
  # The object type. Always `response.compaction`.
122
143
 
123
144
  object: :"response.compaction"
@@ -132,7 +153,9 @@ module OpenAI
132
153
  object: Symbol,
133
154
  output: T::Array[OpenAI::Beta::BetaResponseItem::Variants],
134
155
  usage: OpenAI::Beta::BetaResponseUsage,
135
- image: OpenAI::Beta::BetaCompactedResponse::Image
156
+ image: OpenAI::Beta::BetaCompactedResponse::Image,
157
+ safety_identifier: T.nilable(String),
158
+ service_tier: String
136
159
  }
137
160
  )
138
161
  end
@@ -52,7 +52,10 @@ module OpenAI
52
52
  }
53
53
  attr_writer :network_policy
54
54
 
55
- # An optional list of skills referenced by id or inline data.
55
+ # An optional list of skills referenced by id or inline data. Across all inline
56
+ # skills in this list, decoded ZIP data must total at most 50 MiB and Base64 text
57
+ # must total at most 70,254,592 characters, including line breaks. Skill
58
+ # references do not count toward these limits.
56
59
  sig { returns(T.nilable(T::Array[T.any(OpenAI::Beta::BetaSkillReference, OpenAI::Beta::BetaInlineSkill)])) }
57
60
  attr_reader :skills
58
61
 
@@ -93,7 +96,10 @@ module OpenAI
93
96
  # Network access policy for the container.
94
97
  network_policy: nil,
95
98
 
96
- # An optional list of skills referenced by id or inline data.
99
+ # An optional list of skills referenced by id or inline data. Across all inline
100
+ # skills in this list, decoded ZIP data must total at most 50 MiB and Base64 text
101
+ # must total at most 70,254,592 characters, including line breaks. Skill
102
+ # references do not count toward these limits.
97
103
  skills: nil,
98
104
 
99
105
  # Automatically creates a container for this request
@@ -53,17 +53,16 @@ module OpenAI
53
53
  attr_accessor :instructions
54
54
 
55
55
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
56
- # for storing additional information about the object in a structured format, and
57
- # querying for objects via API or the dashboard.
56
+ # for storing additional information about the object in a structured format.
58
57
  #
59
58
  # Keys are strings with a maximum length of 64 characters. Values are strings with
60
59
  # a maximum length of 512 characters.
61
60
  sig { returns(T.nilable(T::Hash[Symbol, String])) }
62
61
  attr_accessor :metadata
63
62
 
64
- # Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide
65
- # range of models with different capabilities, performance characteristics, and
66
- # price points. Refer to the
63
+ # Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
64
+ # wide range of models with different capabilities, performance characteristics,
65
+ # and price points. Refer to the
67
66
  # [model guide](https://developers.openai.com/api/docs/models) to browse and
68
67
  # compare available models.
69
68
  sig { returns(OpenAI::Beta::BetaResponse::Model::Variants) }
@@ -544,16 +543,15 @@ module OpenAI
544
543
  instructions:,
545
544
 
546
545
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
547
- # for storing additional information about the object in a structured format, and
548
- # querying for objects via API or the dashboard.
546
+ # for storing additional information about the object in a structured format.
549
547
  #
550
548
  # Keys are strings with a maximum length of 64 characters. Values are strings with
551
549
  # a maximum length of 512 characters.
552
550
  metadata:,
553
551
 
554
- # Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide
555
- # range of models with different capabilities, performance characteristics, and
556
- # price points. Refer to the
552
+ # Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
553
+ # wide range of models with different capabilities, performance characteristics,
554
+ # and price points. Refer to the
557
555
  # [model guide](https://developers.openai.com/api/docs/models) to browse and
558
556
  # compare available models.
559
557
  model:,
@@ -968,9 +966,9 @@ module OpenAI
968
966
 
969
967
  end
970
968
 
971
- # Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide
972
- # range of models with different capabilities, performance characteristics, and
973
- # price points. Refer to the
969
+ # Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
970
+ # wide range of models with different capabilities, performance characteristics,
971
+ # and price points. Refer to the
974
972
  # [model guide](https://developers.openai.com/api/docs/models) to browse and
975
973
  # compare available models.
976
974
  module Model
@@ -1135,6 +1133,10 @@ module OpenAI
1135
1133
  GPT_6_CYBER = T.let(:"gpt-6-cyber", OpenAI::Beta::BetaResponse::Model::TaggedSymbol)
1136
1134
  GPT_ROSALIND_RESEARCH = T.let(:"gpt-rosalind-research", OpenAI::Beta::BetaResponse::Model::TaggedSymbol)
1137
1135
  GPT_6_2_ASTRA_LAW = T.let(:"gpt-6.2-astra-law", OpenAI::Beta::BetaResponse::Model::TaggedSymbol)
1136
+ GPT_6_ASTRA_HEALTHCARE = T.let(:"gpt-6-astra-healthcare", OpenAI::Beta::BetaResponse::Model::TaggedSymbol)
1137
+ GPT_6_1_SOL_HEALTHCARE = T.let(:"gpt-6.1-sol-healthcare", OpenAI::Beta::BetaResponse::Model::TaggedSymbol)
1138
+ GPT_6_2_ASTRA_HEALTHCARE = T.let(:"gpt-6.2-astra-healthcare", OpenAI::Beta::BetaResponse::Model::TaggedSymbol)
1139
+ GPT_6_2_SOL_HEALTHCARE = T.let(:"gpt-6.2-sol-healthcare", OpenAI::Beta::BetaResponse::Model::TaggedSymbol)
1138
1140
 
1139
1141
  end
1140
1142
 
@@ -146,17 +146,16 @@ module OpenAI
146
146
  attr_accessor :max_tool_calls
147
147
 
148
148
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
149
- # for storing additional information about the object in a structured format, and
150
- # querying for objects via API or the dashboard.
149
+ # for storing additional information about the object in a structured format.
151
150
  #
152
151
  # Keys are strings with a maximum length of 64 characters. Values are strings with
153
152
  # a maximum length of 512 characters.
154
153
  sig { returns(T.nilable(T::Hash[Symbol, String])) }
155
154
  attr_accessor :metadata
156
155
 
157
- # Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide
158
- # range of models with different capabilities, performance characteristics, and
159
- # price points. Refer to the
156
+ # Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
157
+ # wide range of models with different capabilities, performance characteristics,
158
+ # and price points. Refer to the
160
159
  # [model guide](https://developers.openai.com/api/docs/models) to browse and
161
160
  # compare available models.
162
161
  sig {
@@ -717,16 +716,15 @@ module OpenAI
717
716
  max_tool_calls: nil,
718
717
 
719
718
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
720
- # for storing additional information about the object in a structured format, and
721
- # querying for objects via API or the dashboard.
719
+ # for storing additional information about the object in a structured format.
722
720
  #
723
721
  # Keys are strings with a maximum length of 64 characters. Values are strings with
724
722
  # a maximum length of 512 characters.
725
723
  metadata: nil,
726
724
 
727
- # Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide
728
- # range of models with different capabilities, performance characteristics, and
729
- # price points. Refer to the
725
+ # Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
726
+ # wide range of models with different capabilities, performance characteristics,
727
+ # and price points. Refer to the
730
728
  # [model guide](https://developers.openai.com/api/docs/models) to browse and
731
729
  # compare available models.
732
730
  model: nil,
@@ -1406,9 +1404,9 @@ module OpenAI
1406
1404
 
1407
1405
  end
1408
1406
 
1409
- # Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide
1410
- # range of models with different capabilities, performance characteristics, and
1411
- # price points. Refer to the
1407
+ # Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
1408
+ # wide range of models with different capabilities, performance characteristics,
1409
+ # and price points. Refer to the
1412
1410
  # [model guide](https://developers.openai.com/api/docs/models) to browse and
1413
1411
  # compare available models.
1414
1412
  module Model
@@ -1822,6 +1820,22 @@ module OpenAI
1822
1820
  :"gpt-6.2-astra-law",
1823
1821
  OpenAI::Beta::BetaResponsesClientEvent::ResponseCreate::Model::TaggedSymbol
1824
1822
  )
1823
+ GPT_6_ASTRA_HEALTHCARE = T.let(
1824
+ :"gpt-6-astra-healthcare",
1825
+ OpenAI::Beta::BetaResponsesClientEvent::ResponseCreate::Model::TaggedSymbol
1826
+ )
1827
+ GPT_6_1_SOL_HEALTHCARE = T.let(
1828
+ :"gpt-6.1-sol-healthcare",
1829
+ OpenAI::Beta::BetaResponsesClientEvent::ResponseCreate::Model::TaggedSymbol
1830
+ )
1831
+ GPT_6_2_ASTRA_HEALTHCARE = T.let(
1832
+ :"gpt-6.2-astra-healthcare",
1833
+ OpenAI::Beta::BetaResponsesClientEvent::ResponseCreate::Model::TaggedSymbol
1834
+ )
1835
+ GPT_6_2_SOL_HEALTHCARE = T.let(
1836
+ :"gpt-6.2-sol-healthcare",
1837
+ OpenAI::Beta::BetaResponsesClientEvent::ResponseCreate::Model::TaggedSymbol
1838
+ )
1825
1839
 
1826
1840
  end
1827
1841
 
@@ -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::Beta::ResponseCompactParams::Model::OrSymbol, String))) }
@@ -75,6 +75,10 @@ module OpenAI
75
75
  sig { returns(T.nilable(OpenAI::Beta::ResponseCompactParams::PromptCacheRetention::OrSymbol)) }
76
76
  attr_accessor :prompt_cache_retention
77
77
 
78
+ # A stable identifier used for safety monitoring and abuse detection.
79
+ sig { returns(T.nilable(String)) }
80
+ attr_accessor :safety_identifier
81
+
78
82
  # Specifies the processing type used for serving the request. - If set to 'auto',
79
83
  # then the request will be processed with the service tier configured in the
80
84
  # Project settings. Unless otherwise configured, the Project will use 'default'. -
@@ -119,6 +123,8 @@ module OpenAI
119
123
 
120
124
  prompt_cache_retention: T.nilable(OpenAI::Beta::ResponseCompactParams::PromptCacheRetention::OrSymbol),
121
125
 
126
+ safety_identifier: T.nilable(String),
127
+
122
128
  service_tier: T.nilable(OpenAI::Beta::ResponseCompactParams::ServiceTier::OrSymbol),
123
129
 
124
130
  betas: T::Array[OpenAI::Beta::ResponseCompactParams::Beta::OrSymbol],
@@ -129,9 +135,9 @@ module OpenAI
129
135
  end
130
136
  def self.new(
131
137
 
132
- # Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide
133
- # range of models with different capabilities, performance characteristics, and
134
- # price points. Refer to the
138
+ # Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
139
+ # wide range of models with different capabilities, performance characteristics,
140
+ # and price points. Refer to the
135
141
  # [model guide](https://developers.openai.com/api/docs/models) to browse and
136
142
  # compare available models.
137
143
  model:,
@@ -171,6 +177,9 @@ module OpenAI
171
177
  # How long to retain a prompt cache entry created by this request.
172
178
  prompt_cache_retention: nil,
173
179
 
180
+ # A stable identifier used for safety monitoring and abuse detection.
181
+ safety_identifier: nil,
182
+
174
183
  # Specifies the processing type used for serving the request. - If set to 'auto',
175
184
  # then the request will be processed with the service tier configured in the
176
185
  # Project settings. Unless otherwise configured, the Project will use 'default'. -
@@ -206,6 +215,7 @@ module OpenAI
206
215
  prompt_cache_key: T.nilable(String),
207
216
  prompt_cache_options: T.nilable(OpenAI::Beta::ResponseCompactParams::PromptCacheOptions),
208
217
  prompt_cache_retention: T.nilable(OpenAI::Beta::ResponseCompactParams::PromptCacheRetention::OrSymbol),
218
+ safety_identifier: T.nilable(String),
209
219
  service_tier: T.nilable(OpenAI::Beta::ResponseCompactParams::ServiceTier::OrSymbol),
210
220
  betas: T::Array[OpenAI::Beta::ResponseCompactParams::Beta::OrSymbol],
211
221
  request_options: OpenAI::RequestOptions
@@ -215,9 +225,9 @@ module OpenAI
215
225
  def to_hash
216
226
  end
217
227
 
218
- # Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide
219
- # range of models with different capabilities, performance characteristics, and
220
- # price points. Refer to the
228
+ # Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
229
+ # wide range of models with different capabilities, performance characteristics,
230
+ # and price points. Refer to the
221
231
  # [model guide](https://developers.openai.com/api/docs/models) to browse and
222
232
  # compare available models.
223
233
  module Model
@@ -440,6 +450,22 @@ module OpenAI
440
450
  )
441
451
  GPT_6_ROSALIND = T.let(:"gpt-6-rosalind", OpenAI::Beta::ResponseCompactParams::Model::TaggedSymbol)
442
452
  GPT_6_2_ASTRA_LAW = T.let(:"gpt-6.2-astra-law", OpenAI::Beta::ResponseCompactParams::Model::TaggedSymbol)
453
+ GPT_6_ASTRA_HEALTHCARE = T.let(
454
+ :"gpt-6-astra-healthcare",
455
+ OpenAI::Beta::ResponseCompactParams::Model::TaggedSymbol
456
+ )
457
+ GPT_6_1_SOL_HEALTHCARE = T.let(
458
+ :"gpt-6.1-sol-healthcare",
459
+ OpenAI::Beta::ResponseCompactParams::Model::TaggedSymbol
460
+ )
461
+ GPT_6_2_ASTRA_HEALTHCARE = T.let(
462
+ :"gpt-6.2-astra-healthcare",
463
+ OpenAI::Beta::ResponseCompactParams::Model::TaggedSymbol
464
+ )
465
+ GPT_6_2_SOL_HEALTHCARE = T.let(
466
+ :"gpt-6.2-sol-healthcare",
467
+ OpenAI::Beta::ResponseCompactParams::Model::TaggedSymbol
468
+ )
443
469
 
444
470
  end
445
471