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
@@ -16,7 +16,7 @@ module OpenAI
16
16
  # Returned when a Live session update is accepted. Contains the resolved session configuration after the update.
17
17
  variant :"session.updated", -> { OpenAI::Live::SessionUpdatedEvent }
18
18
 
19
- # Sent when speech resumes paused inference and it is ready for audio in a Live WebRTC session. Delivered to the sideband and, when permitted by its event settings, the data channel.
19
+ # Sent when speech wakes inference and it is ready for audio in a Live WebRTC session. This occurs on the first wake and after each later wake. Delivered to the sideband and, when permitted by its event settings, the data channel.
20
20
  variant :"session.resumed", -> { OpenAI::Live::SidebandServerEvent::SessionResumed }
21
21
 
22
22
  # Sent when the idle timeout pauses inference in a Live WebRTC session. The WebRTC connection, sideband, and session ID persist. Delivered to the sideband and, when permitted by its event settings, the data channel.
@@ -120,9 +120,9 @@ module OpenAI
120
120
  optional :client_event_id, String
121
121
 
122
122
  # @!method initialize(event_id:, client_event_id: nil, type: :"session.resumed")
123
- # Sent when speech resumes paused inference and it is ready for audio in a Live
124
- # WebRTC session. Delivered to the sideband and, when permitted by its event
125
- # settings, the data channel.
123
+ # Sent when speech wakes inference and it is ready for audio in a Live WebRTC
124
+ # session. This occurs on the first wake and after each later wake. Delivered to
125
+ # the sideband and, when permitted by its event settings, the data channel.
126
126
  #
127
127
  # @param event_id [String]
128
128
  # The unique ID of the Live server event.
@@ -11,9 +11,10 @@ module OpenAI
11
11
  optional :format_, union: -> { OpenAI::Realtime::RealtimeAudioFormats }, api_name: :format
12
12
 
13
13
  # @!attribute noise_reduction
14
- # Configuration for input audio noise reduction. This can be set to `null` to turn
15
- # off. Noise reduction filters audio added to the input audio buffer before it is
16
- # sent to VAD and the model. Filtering the audio can improve VAD and turn
14
+ # When you supply a `noise_reduction` object, you must set `type` to `near_field`
15
+ # or `far_field`. Set `noise_reduction` to `null` to turn off input audio noise
16
+ # reduction. Noise reduction filters audio added to the input audio buffer before
17
+ # it is sent to VAD and the model. Filtering the audio can improve VAD and turn
17
18
  # detection accuracy (reducing false positives) and model performance by improving
18
19
  # perception of the input audio.
19
20
  #
@@ -59,9 +60,10 @@ module OpenAI
59
60
  # The format of the input audio.
60
61
  #
61
62
  # @param noise_reduction [OpenAI::Models::Realtime::RealtimeAudioConfigInput::NoiseReduction]
62
- # Configuration for input audio noise reduction. This can be set to `null` to turn
63
- # off. Noise reduction filters audio added to the input audio buffer before it is
64
- # sent to VAD and the model. Filtering the audio can improve VAD and turn
63
+ # When you supply a `noise_reduction` object, you must set `type` to `near_field`
64
+ # or `far_field`. Set `noise_reduction` to `null` to turn off input audio noise
65
+ # reduction. Noise reduction filters audio added to the input audio buffer before
66
+ # it is sent to VAD and the model. Filtering the audio can improve VAD and turn
65
67
  # detection accuracy (reducing false positives) and model performance by improving
66
68
  # perception of the input audio.
67
69
  #
@@ -112,9 +114,10 @@ module OpenAI
112
114
  optional :type, enum: -> { OpenAI::Realtime::NoiseReductionType }
113
115
 
114
116
  # @!method initialize(strength: nil, type: nil)
115
- # Configuration for input audio noise reduction. This can be set to `null` to turn
116
- # off. Noise reduction filters audio added to the input audio buffer before it is
117
- # sent to VAD and the model. Filtering the audio can improve VAD and turn
117
+ # When you supply a `noise_reduction` object, you must set `type` to `near_field`
118
+ # or `far_field`. Set `noise_reduction` to `null` to turn off input audio noise
119
+ # reduction. Noise reduction filters audio added to the input audio buffer before
120
+ # it is sent to VAD and the model. Filtering the audio can improve VAD and turn
118
121
  # detection accuracy (reducing false positives) and model performance by improving
119
122
  # perception of the input audio.
120
123
  #
@@ -36,8 +36,7 @@ module OpenAI
36
36
 
37
37
  # @!attribute metadata
38
38
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
39
- # for storing additional information about the object in a structured format, and
40
- # querying for objects via API or the dashboard.
39
+ # for storing additional information about the object in a structured format.
41
40
  #
42
41
  # Keys are strings with a maximum length of 64 characters. Values are strings with
43
42
  # a maximum length of 512 characters.
@@ -114,8 +113,7 @@ module OpenAI
114
113
  #
115
114
  # @param metadata [Hash{Symbol=>String}, nil]
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.
@@ -54,8 +54,7 @@ module OpenAI
54
54
 
55
55
  # @!attribute metadata
56
56
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
57
- # for storing additional information about the object in a structured format, and
58
- # querying for objects via API or the dashboard.
57
+ # for storing additional information about the object in a structured format.
59
58
  #
60
59
  # Keys are strings with a maximum length of 64 characters. Values are strings with
61
60
  # a maximum length of 512 characters.
@@ -149,8 +148,7 @@ module OpenAI
149
148
  #
150
149
  # @param metadata [Hash{Symbol=>String}, nil]
151
150
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
152
- # for storing additional information about the object in a structured format, and
153
- # querying for objects via API or the dashboard.
151
+ # for storing additional information about the object in a structured format.
154
152
  #
155
153
  # Keys are strings with a maximum length of 64 characters. Values are strings with
156
154
  # a maximum length of 512 characters.
@@ -42,7 +42,19 @@ module OpenAI
42
42
  # @return [OpenAI::Models::Responses::CompactedResponse::Image, nil]
43
43
  optional :image, -> { OpenAI::Responses::CompactedResponse::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::Responses::CompactedResponse::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::Responses::ContainerAuto::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::Responses::SkillReference, OpenAI::Models::Responses::InlineSkill>, nil]
35
38
  optional :skills, -> { OpenAI::Internal::Type::ArrayOf[union: OpenAI::Responses::ContainerAuto::Skill] }
@@ -45,7 +48,10 @@ module OpenAI
45
48
  # Network access policy for the container.
46
49
  #
47
50
  # @param skills [Array<OpenAI::Models::Responses::SkillReference, OpenAI::Models::Responses::InlineSkill>]
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 [String, Symbol, OpenAI::Models::ChatModel, OpenAI::Models::ResponsesModel::ResponsesOnlyModel]
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
  #
@@ -9,9 +9,9 @@ module OpenAI
9
9
  include OpenAI::Internal::Type::RequestParameters
10
10
 
11
11
  # @!attribute model
12
- # Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide
13
- # range of models with different capabilities, performance characteristics, and
14
- # price points. Refer to the
12
+ # Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
13
+ # wide range of models with different capabilities, performance characteristics,
14
+ # and price points. Refer to the
15
15
  # [model guide](https://developers.openai.com/api/docs/models) to browse and
16
16
  # compare available models.
17
17
  #
@@ -86,6 +86,12 @@ module OpenAI
86
86
  nil?: true
87
87
  )
88
88
 
89
+ # @!attribute safety_identifier
90
+ # A stable identifier used for safety monitoring and abuse detection.
91
+ #
92
+ # @return [String, nil]
93
+ optional :safety_identifier, String, nil?: true
94
+
89
95
  # @!attribute service_tier
90
96
  # Specifies the processing type used for serving the request. - If set to 'auto',
91
97
  # then the request will be processed with the service tier configured in the
@@ -107,11 +113,11 @@ module OpenAI
107
113
  # @return [Symbol, OpenAI::Models::Responses::ResponseCompactParams::ServiceTier, nil]
108
114
  optional :service_tier, enum: -> { OpenAI::Responses::ResponseCompactParams::ServiceTier }, nil?: true
109
115
 
110
- # @!method initialize(model:, image: nil, input: nil, instructions: nil, previous_response_id: nil, prompt_cache_key: nil, prompt_cache_options: nil, prompt_cache_retention: nil, service_tier: nil, request_options: {})
116
+ # @!method initialize(model:, image: nil, input: nil, instructions: nil, previous_response_id: nil, prompt_cache_key: nil, prompt_cache_options: nil, prompt_cache_retention: nil, safety_identifier: nil, service_tier: nil, request_options: {})
111
117
  # @param model [Symbol, String, OpenAI::Models::Responses::ResponseCompactParams::Model, nil]
112
- # Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide
113
- # range of models with different capabilities, performance characteristics, and
114
- # price points. Refer to the
118
+ # Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
119
+ # wide range of models with different capabilities, performance characteristics,
120
+ # and price points. Refer to the
115
121
  # [model guide](https://developers.openai.com/api/docs/models) to browse and
116
122
  # compare available models.
117
123
  #
@@ -150,6 +156,9 @@ module OpenAI
150
156
  # @param prompt_cache_retention [Symbol, OpenAI::Models::Responses::ResponseCompactParams::PromptCacheRetention, nil]
151
157
  # How long to retain a prompt cache entry created by this request.
152
158
  #
159
+ # @param safety_identifier [String, nil]
160
+ # A stable identifier used for safety monitoring and abuse detection.
161
+ #
153
162
  # @param service_tier [Symbol, OpenAI::Models::Responses::ResponseCompactParams::ServiceTier, nil]
154
163
  # Specifies the processing type used for serving the request. - If set to 'auto',
155
164
  # then the request will be processed with the service tier configured in the
@@ -170,9 +179,9 @@ module OpenAI
170
179
  #
171
180
  # @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}]
172
181
 
173
- # Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide
174
- # range of models with different capabilities, performance characteristics, and
175
- # price points. Refer to the
182
+ # Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
183
+ # wide range of models with different capabilities, performance characteristics,
184
+ # and price points. Refer to the
176
185
  # [model guide](https://developers.openai.com/api/docs/models) to browse and
177
186
  # compare available models.
178
187
  module Model
@@ -420,6 +429,14 @@ module OpenAI
420
429
 
421
430
  variant const: -> { OpenAI::Models::Responses::ResponseCompactParams::Model::GPT_6_2_ASTRA_LAW }
422
431
 
432
+ variant const: -> { OpenAI::Models::Responses::ResponseCompactParams::Model::GPT_6_ASTRA_HEALTHCARE }
433
+
434
+ variant const: -> { OpenAI::Models::Responses::ResponseCompactParams::Model::GPT_6_1_SOL_HEALTHCARE }
435
+
436
+ variant const: -> { OpenAI::Models::Responses::ResponseCompactParams::Model::GPT_6_2_ASTRA_HEALTHCARE }
437
+
438
+ variant const: -> { OpenAI::Models::Responses::ResponseCompactParams::Model::GPT_6_2_SOL_HEALTHCARE }
439
+
423
440
  variant String
424
441
 
425
442
  # @!method self.variants
@@ -793,6 +810,10 @@ module OpenAI
793
810
  GPT_ROSALIND_RESEARCH = :"gpt-rosalind-research"
794
811
  GPT_6_ROSALIND = :"gpt-6-rosalind"
795
812
  GPT_6_2_ASTRA_LAW = :"gpt-6.2-astra-law"
813
+ GPT_6_ASTRA_HEALTHCARE = :"gpt-6-astra-healthcare"
814
+ GPT_6_1_SOL_HEALTHCARE = :"gpt-6.1-sol-healthcare"
815
+ GPT_6_2_ASTRA_HEALTHCARE = :"gpt-6.2-astra-healthcare"
816
+ GPT_6_2_SOL_HEALTHCARE = :"gpt-6.2-sol-healthcare"
796
817
 
797
818
  # @!endgroup
798
819
  end
@@ -134,8 +134,7 @@ module OpenAI
134
134
 
135
135
  # @!attribute metadata
136
136
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
137
- # for storing additional information about the object in a structured format, and
138
- # querying for objects via API or the dashboard.
137
+ # for storing additional information about the object in a structured format.
139
138
  #
140
139
  # Keys are strings with a maximum length of 64 characters. Values are strings with
141
140
  # a maximum length of 512 characters.
@@ -144,9 +143,9 @@ module OpenAI
144
143
  optional :metadata, OpenAI::Internal::Type::HashOf[String], nil?: true
145
144
 
146
145
  # @!attribute model
147
- # Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide
148
- # range of models with different capabilities, performance characteristics, and
149
- # price points. Refer to the
146
+ # Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
147
+ # wide range of models with different capabilities, performance characteristics,
148
+ # and price points. Refer to the
150
149
  # [model guide](https://developers.openai.com/api/docs/models) to browse and
151
150
  # compare available models.
152
151
  #
@@ -474,16 +473,15 @@ module OpenAI
474
473
  #
475
474
  # @param metadata [Hash{Symbol=>String}, nil]
476
475
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
477
- # for storing additional information about the object in a structured format, and
478
- # querying for objects via API or the dashboard.
476
+ # for storing additional information about the object in a structured format.
479
477
  #
480
478
  # Keys are strings with a maximum length of 64 characters. Values are strings with
481
479
  # a maximum length of 512 characters.
482
480
  #
483
481
  # @param model [String, Symbol, OpenAI::Models::ChatModel, OpenAI::Models::ResponsesModel::ResponsesOnlyModel]
484
- # Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide
485
- # range of models with different capabilities, performance characteristics, and
486
- # price points. Refer to the
482
+ # Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
483
+ # wide range of models with different capabilities, performance characteristics,
484
+ # and price points. Refer to the
487
485
  # [model guide](https://developers.openai.com/api/docs/models) to browse and
488
486
  # compare available models.
489
487
  #
@@ -191,8 +191,7 @@ module OpenAI
191
191
 
192
192
  # @!attribute metadata
193
193
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
194
- # for storing additional information about the object in a structured format, and
195
- # querying for objects via API or the dashboard.
194
+ # for storing additional information about the object in a structured format.
196
195
  #
197
196
  # Keys are strings with a maximum length of 64 characters. Values are strings with
198
197
  # a maximum length of 512 characters.
@@ -201,9 +200,9 @@ module OpenAI
201
200
  optional :metadata, OpenAI::Internal::Type::HashOf[String], nil?: true
202
201
 
203
202
  # @!attribute model
204
- # Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide
205
- # range of models with different capabilities, performance characteristics, and
206
- # price points. Refer to the
203
+ # Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
204
+ # wide range of models with different capabilities, performance characteristics,
205
+ # and price points. Refer to the
207
206
  # [model guide](https://developers.openai.com/api/docs/models) to browse and
208
207
  # compare available models.
209
208
  #
@@ -581,16 +580,15 @@ module OpenAI
581
580
  #
582
581
  # @param metadata [Hash{Symbol=>String}, nil]
583
582
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
584
- # for storing additional information about the object in a structured format, and
585
- # querying for objects via API or the dashboard.
583
+ # for storing additional information about the object in a structured format.
586
584
  #
587
585
  # Keys are strings with a maximum length of 64 characters. Values are strings with
588
586
  # a maximum length of 512 characters.
589
587
  #
590
588
  # @param model [String, Symbol, OpenAI::Models::ChatModel, OpenAI::Models::ResponsesModel::ResponsesOnlyModel]
591
- # Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a wide
592
- # range of models with different capabilities, performance characteristics, and
593
- # price points. Refer to the
589
+ # Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
590
+ # wide range of models with different capabilities, performance characteristics,
591
+ # and price points. Refer to the
594
592
  # [model guide](https://developers.openai.com/api/docs/models) to browse and
595
593
  # compare available models.
596
594
  #
@@ -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>]
@@ -29,8 +29,7 @@ module OpenAI
29
29
 
30
30
  # @!attribute metadata
31
31
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
32
- # for storing additional information about the object in a structured format, and
33
- # querying for objects via API or the dashboard.
32
+ # for storing additional information about the object in a structured format.
34
33
  #
35
34
  # Keys are strings with a maximum length of 64 characters. Values are strings with
36
35
  # a maximum length of 512 characters.
@@ -93,8 +92,7 @@ module OpenAI
93
92
  #
94
93
  # @param metadata [Hash{Symbol=>String}, nil]
95
94
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
96
- # for storing additional information about the object in a structured format, and
97
- # querying for objects via API or the dashboard.
95
+ # for storing additional information about the object in a structured format.
98
96
  #
99
97
  # Keys are strings with a maximum length of 64 characters. Values are strings with
100
98
  # a maximum length of 512 characters.
@@ -37,8 +37,7 @@ module OpenAI
37
37
 
38
38
  # @!attribute metadata
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.
@@ -71,8 +70,7 @@ module OpenAI
71
70
  #
72
71
  # @param metadata [Hash{Symbol=>String}, nil]
73
72
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
74
- # for storing additional information about the object in a structured format, and
75
- # querying for objects via API or the dashboard.
73
+ # for storing additional information about the object in a structured format.
76
74
  #
77
75
  # Keys are strings with a maximum length of 64 characters. Values are strings with
78
76
  # a maximum length of 512 characters.
@@ -20,8 +20,7 @@ module OpenAI
20
20
 
21
21
  # @!attribute metadata
22
22
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
23
- # for storing additional information about the object in a structured format, and
24
- # querying for objects via API or the dashboard.
23
+ # for storing additional information about the object in a structured format.
25
24
  #
26
25
  # Keys are strings with a maximum length of 64 characters. Values are strings with
27
26
  # a maximum length of 512 characters.
@@ -43,8 +42,7 @@ module OpenAI
43
42
  #
44
43
  # @param metadata [Hash{Symbol=>String}, nil]
45
44
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
46
- # for storing additional information about the object in a structured format, and
47
- # querying for objects via API or the dashboard.
45
+ # for storing additional information about the object in a structured format.
48
46
  #
49
47
  # Keys are strings with a maximum length of 64 characters. Values are strings with
50
48
  # a maximum length of 512 characters.
@@ -30,7 +30,7 @@ module OpenAI
30
30
 
31
31
  # Create or replace a project's hard spend limit.
32
32
  #
33
- # @overload update(project_id, currency:, interval:, threshold_amount:, request_options: {})
33
+ # @overload update(project_id, currency:, interval:, threshold_amount:, notification_channel: nil, request_options: {})
34
34
  #
35
35
  # @param project_id [String]
36
36
  # The ID of the project whose hard spend limit is being managed.
@@ -45,6 +45,10 @@ module OpenAI
45
45
  # @param threshold_amount [Integer]
46
46
  # The hard spend limit amount, in cents.
47
47
  #
48
+ # @param notification_channel [OpenAI::Models::Admin::Organization::Projects::SpendLimitUpdateParams::NotificationChannel, nil]
49
+ # Configure email notifications when the spend limit is reached. Leave this out to
50
+ # keep the current settings, or send null to reset to owner-only notifications.
51
+ #
48
52
  # @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}, nil]
49
53
  #
50
54
  # @return [OpenAI::Models::Admin::Organization::Projects::ProjectSpendLimit]
@@ -26,7 +26,7 @@ module OpenAI
26
26
 
27
27
  # Create or replace the organization's hard spend limit.
28
28
  #
29
- # @overload update(currency:, interval:, threshold_amount:, request_options: {})
29
+ # @overload update(currency:, interval:, threshold_amount:, notification_channel: nil, request_options: {})
30
30
  #
31
31
  # @param currency [Symbol, OpenAI::Models::Admin::Organization::SpendLimitUpdateParams::Currency]
32
32
  # The currency for the threshold amount. Currently, only `USD` is supported.
@@ -38,6 +38,10 @@ module OpenAI
38
38
  # @param threshold_amount [Integer]
39
39
  # The hard spend limit amount, in cents.
40
40
  #
41
+ # @param notification_channel [OpenAI::Models::Admin::Organization::SpendLimitUpdateParams::NotificationChannel, nil]
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
+ #
41
45
  # @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}, nil]
42
46
  #
43
47
  # @return [OpenAI::Models::Admin::Organization::OrganizationSpendLimit]
@@ -271,7 +271,7 @@ module OpenAI
271
271
  #
272
272
  # @param line_items [Array<String>]
273
273
  # Return only costs for these exact line item names. Each value must match the
274
- # complete `line_item` value, for example `gpt-6-astra, input_tokens`.
274
+ # complete `line_item` value, for example `gpt-6.2-astra, input_tokens`.
275
275
  #
276
276
  # @param page [String]
277
277
  # A cursor for use in pagination. Corresponding to the `next_page` field from the
@@ -30,8 +30,7 @@ module OpenAI
30
30
  #
31
31
  # @param metadata [Hash{Symbol=>String}, nil]
32
32
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
33
- # for storing additional information about the object in a structured format, and
34
- # querying for objects via API or the dashboard.
33
+ # for storing additional information about the object in a structured format.
35
34
  #
36
35
  # Keys are strings with a maximum length of 64 characters. Values are strings with
37
36
  # a maximum length of 512 characters.
@@ -23,8 +23,13 @@ module OpenAI
23
23
  # Body param: The input events to submit to the session.
24
24
  #
25
25
  # @param idempotency_key [String]
26
- # Header param: An optional client-generated key that makes retries of submitted
27
- # messages idempotent.
26
+ # Header param: An optional client-generated key for message submissions. Retry
27
+ # the same message with the same key and identical input within the 24-hour replay
28
+ # window; a retry replays the original outcome if it is available. After the
29
+ # window expires, a key whose outcome is unavailable may return 409. After a
30
+ # timeout or server error, inspect the session history and items before
31
+ # resubmitting. Use a new key for a new message, or only after confirming the
32
+ # earlier message did not execute.
28
33
  #
29
34
  # @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}, nil]
30
35
  #
@@ -8,8 +8,10 @@ module OpenAI
8
8
  class Traces
9
9
  # Lists published root-turn traces as OTLP JSON, ordered by turn creation time and
10
10
  # ID. Unpublished traces are skipped. Each page returns data available when read;
11
- # it does not wait for late traces. Trace reads and the JSON response are limited
12
- # to 16 MiB per request. If the limit is exceeded, request fewer traces.
11
+ # it does not wait for late traces. Pages may contain fewer traces than requested
12
+ # to fit the 16 MiB response limit. When `has_more` is true, pass `last_id` as
13
+ # `after` to continue. If the first trace exceeds 16 MiB before conversion or
14
+ # cannot fit on a page by itself, the API returns a `trace_too_large` error.
13
15
  #
14
16
  # @overload list(session_id, after: nil, limit: nil, order: nil, request_options: {})
15
17
  #
@@ -209,12 +209,12 @@ module OpenAI
209
209
  )
210
210
  end
211
211
 
212
- # Updates session tools, metadata, model, reasoning effort, service tier, or the
213
- # default prompt cache lifetime. Model settings apply to subsequent turns. Omitted
214
- # fields are unchanged. See
212
+ # Updates session tools, vaults, metadata, model, reasoning effort, service tier,
213
+ # or the default prompt cache lifetime. Model settings apply to subsequent turns.
214
+ # Omitted fields are unchanged. See
215
215
  # [managing sessions](https://developers.openai.com/api/docs/guides/agents-api/sessions/manage).
216
216
  #
217
- # @overload update(session_id, agent: nil, metadata: nil, prompt_cache_options: nil, review: nil, spend_control: nil, request_options: {})
217
+ # @overload update(session_id, agent: nil, metadata: nil, prompt_cache_options: nil, review: nil, spend_control: nil, vault_ids: nil, request_options: {})
218
218
  #
219
219
  # @param session_id [String]
220
220
  # The ID of the session.
@@ -239,6 +239,10 @@ module OpenAI
239
239
  # Omit to retain the limit; null or a null limit removes it without resetting
240
240
  # spend.
241
241
  #
242
+ # @param vault_ids [Array<String>, nil]
243
+ # Replaces the session's referenced vaults. Omit to retain them; null or [] clears
244
+ # them.
245
+ #
242
246
  # @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}, nil]
243
247
  #
244
248
  # @return [OpenAI::Models::Beta::AgentSession]