openai 1.2.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 (202) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +18 -0
  3. data/README.md +1 -1
  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/batch.rb +4 -6
  10. data/lib/openai/models/batch_create_params.rb +2 -4
  11. data/lib/openai/models/beta/agents/automation_target_param.rb +2 -2
  12. data/lib/openai/models/beta/agents/session_create_params.rb +2 -2
  13. data/lib/openai/models/beta/agents/session_update_params.rb +12 -1
  14. data/lib/openai/models/beta/beta_compacted_response.rb +19 -1
  15. data/lib/openai/models/beta/beta_container_auto.rb +8 -2
  16. data/lib/openai/models/beta/beta_response.rb +11 -13
  17. data/lib/openai/models/beta/beta_responses_client_event.rb +11 -13
  18. data/lib/openai/models/beta/response_compact_params.rb +19 -10
  19. data/lib/openai/models/beta/response_create_params.rb +11 -13
  20. data/lib/openai/models/chat/chat_completion.rb +2 -4
  21. data/lib/openai/models/chat/completion_create_params.rb +15 -17
  22. data/lib/openai/models/chat/completion_update_params.rb +2 -4
  23. data/lib/openai/models/completion_create_params.rb +3 -3
  24. data/lib/openai/models/conversations/conversation_create_params.rb +12 -5
  25. data/lib/openai/models/eval_create_params.rb +2 -4
  26. data/lib/openai/models/eval_create_response.rb +5 -9
  27. data/lib/openai/models/eval_list_response.rb +5 -9
  28. data/lib/openai/models/eval_retrieve_response.rb +5 -9
  29. data/lib/openai/models/eval_stored_completions_data_source_config.rb +2 -4
  30. data/lib/openai/models/eval_update_params.rb +2 -4
  31. data/lib/openai/models/eval_update_response.rb +5 -9
  32. data/lib/openai/models/evals/create_eval_completions_run_data_source.rb +6 -8
  33. data/lib/openai/models/evals/run_cancel_response.rb +4 -6
  34. data/lib/openai/models/evals/run_create_params.rb +4 -6
  35. data/lib/openai/models/evals/run_create_response.rb +4 -6
  36. data/lib/openai/models/evals/run_list_response.rb +4 -6
  37. data/lib/openai/models/evals/run_retrieve_response.rb +4 -6
  38. data/lib/openai/models/fine_tuning/fine_tuning_job.rb +2 -4
  39. data/lib/openai/models/fine_tuning/job_create_params.rb +7 -6
  40. data/lib/openai/models/live/fork_server_event.rb +4 -4
  41. data/lib/openai/models/live/media_session_config.rb +15 -16
  42. data/lib/openai/models/live/responses_delegation_config.rb +8 -2
  43. data/lib/openai/models/live/responses_delegation_update_config.rb +8 -2
  44. data/lib/openai/models/live/server_event.rb +4 -4
  45. data/lib/openai/models/live/sideband_server_event.rb +4 -4
  46. data/lib/openai/models/realtime/realtime_audio_config_input.rb +12 -9
  47. data/lib/openai/models/realtime/realtime_response.rb +2 -4
  48. data/lib/openai/models/realtime/realtime_response_create_params.rb +2 -4
  49. data/lib/openai/models/responses/compacted_response.rb +19 -1
  50. data/lib/openai/models/responses/container_auto.rb +8 -2
  51. data/lib/openai/models/responses/response.rb +8 -10
  52. data/lib/openai/models/responses/response_compact_params.rb +19 -10
  53. data/lib/openai/models/responses/response_create_params.rb +8 -10
  54. data/lib/openai/models/responses/responses_client_event.rb +8 -10
  55. data/lib/openai/models/vector_store.rb +2 -4
  56. data/lib/openai/models/vector_store_create_params.rb +2 -4
  57. data/lib/openai/models/vector_store_update_params.rb +2 -4
  58. data/lib/openai/resources/admin/organization/projects/spend_limit.rb +5 -1
  59. data/lib/openai/resources/admin/organization/spend_limit.rb +5 -1
  60. data/lib/openai/resources/admin/organization/usage.rb +1 -1
  61. data/lib/openai/resources/batches.rb +1 -2
  62. data/lib/openai/resources/beta/agents/sessions/events.rb +7 -2
  63. data/lib/openai/resources/beta/agents/sessions/traces.rb +4 -2
  64. data/lib/openai/resources/beta/agents/sessions.rb +8 -4
  65. data/lib/openai/resources/beta/responses.rb +9 -6
  66. data/lib/openai/resources/chat/completions.rb +11 -14
  67. data/lib/openai/resources/completions.rb +2 -2
  68. data/lib/openai/resources/conversations.rb +5 -3
  69. data/lib/openai/resources/evals/runs.rb +1 -2
  70. data/lib/openai/resources/evals.rb +2 -4
  71. data/lib/openai/resources/fine_tuning/jobs.rb +2 -3
  72. data/lib/openai/resources/responses.rb +15 -14
  73. data/lib/openai/resources/vector_stores.rb +2 -4
  74. data/lib/openai/version.rb +1 -1
  75. data/rbi/openai/models/admin/organization/organization_spend_limit.rbi +68 -1
  76. data/rbi/openai/models/admin/organization/projects/project_spend_limit.rbi +68 -1
  77. data/rbi/openai/models/admin/organization/projects/spend_limit_update_params.rbi +87 -0
  78. data/rbi/openai/models/admin/organization/spend_limit_update_params.rbi +85 -0
  79. data/rbi/openai/models/admin/organization/usage_costs_params.rbi +2 -2
  80. data/rbi/openai/models/batch.rbi +4 -6
  81. data/rbi/openai/models/batch_create_params.rbi +2 -4
  82. data/rbi/openai/models/beta/agents/automation_target_param.rbi +2 -2
  83. data/rbi/openai/models/beta/agents/session_create_params.rbi +2 -2
  84. data/rbi/openai/models/beta/agents/session_update_params.rbi +12 -0
  85. data/rbi/openai/models/beta/beta_compacted_response.rbi +24 -1
  86. data/rbi/openai/models/beta/beta_container_auto.rbi +8 -2
  87. data/rbi/openai/models/beta/beta_response.rbi +11 -13
  88. data/rbi/openai/models/beta/beta_responses_client_event.rbi +11 -13
  89. data/rbi/openai/models/beta/response_compact_params.rbi +19 -9
  90. data/rbi/openai/models/beta/response_create_params.rbi +11 -13
  91. data/rbi/openai/models/chat/chat_completion.rbi +2 -4
  92. data/rbi/openai/models/chat/completion_create_params.rbi +14 -16
  93. data/rbi/openai/models/chat/completion_update_params.rbi +2 -4
  94. data/rbi/openai/models/completion_create_params.rbi +3 -3
  95. data/rbi/openai/models/conversations/conversation_create_params.rbi +12 -4
  96. data/rbi/openai/models/eval_create_params.rbi +2 -4
  97. data/rbi/openai/models/eval_create_response.rbi +5 -9
  98. data/rbi/openai/models/eval_list_response.rbi +5 -9
  99. data/rbi/openai/models/eval_retrieve_response.rbi +5 -9
  100. data/rbi/openai/models/eval_stored_completions_data_source_config.rbi +2 -4
  101. data/rbi/openai/models/eval_update_params.rbi +2 -4
  102. data/rbi/openai/models/eval_update_response.rbi +5 -9
  103. data/rbi/openai/models/evals/create_eval_completions_run_data_source.rbi +6 -8
  104. data/rbi/openai/models/evals/run_cancel_response.rbi +4 -6
  105. data/rbi/openai/models/evals/run_create_params.rbi +4 -6
  106. data/rbi/openai/models/evals/run_create_response.rbi +4 -6
  107. data/rbi/openai/models/evals/run_list_response.rbi +4 -6
  108. data/rbi/openai/models/evals/run_retrieve_response.rbi +4 -6
  109. data/rbi/openai/models/fine_tuning/fine_tuning_job.rbi +2 -4
  110. data/rbi/openai/models/fine_tuning/job_create_params.rbi +8 -6
  111. data/rbi/openai/models/live/fork_server_event.rbi +3 -3
  112. data/rbi/openai/models/live/media_session_config.rbi +15 -16
  113. data/rbi/openai/models/live/responses_delegation_config.rbi +8 -2
  114. data/rbi/openai/models/live/responses_delegation_update_config.rbi +8 -2
  115. data/rbi/openai/models/live/server_event.rbi +3 -3
  116. data/rbi/openai/models/live/sideband_server_event.rbi +3 -3
  117. data/rbi/openai/models/realtime/realtime_audio_config_input.rbi +12 -9
  118. data/rbi/openai/models/realtime/realtime_response.rbi +2 -4
  119. data/rbi/openai/models/realtime/realtime_response_create_params.rbi +2 -4
  120. data/rbi/openai/models/responses/compacted_response.rbi +24 -1
  121. data/rbi/openai/models/responses/container_auto.rbi +8 -2
  122. data/rbi/openai/models/responses/response.rbi +8 -10
  123. data/rbi/openai/models/responses/response_compact_params.rbi +19 -9
  124. data/rbi/openai/models/responses/response_create_params.rbi +8 -10
  125. data/rbi/openai/models/responses/responses_client_event.rbi +8 -10
  126. data/rbi/openai/models/vector_store.rbi +2 -4
  127. data/rbi/openai/models/vector_store_create_params.rbi +2 -4
  128. data/rbi/openai/models/vector_store_update_params.rbi +2 -4
  129. data/rbi/openai/resources/admin/organization/projects/spend_limit.rbi +6 -0
  130. data/rbi/openai/resources/admin/organization/spend_limit.rbi +6 -0
  131. data/rbi/openai/resources/admin/organization/usage.rbi +1 -1
  132. data/rbi/openai/resources/batches.rbi +1 -2
  133. data/rbi/openai/resources/beta/agents/sessions/events.rbi +7 -2
  134. data/rbi/openai/resources/beta/agents/sessions/traces.rbi +4 -2
  135. data/rbi/openai/resources/beta/agents/sessions.rbi +7 -3
  136. data/rbi/openai/resources/beta/responses.rbi +8 -5
  137. data/rbi/openai/resources/chat/completions.rbi +11 -14
  138. data/rbi/openai/resources/completions.rbi +2 -2
  139. data/rbi/openai/resources/conversations.rbi +4 -2
  140. data/rbi/openai/resources/evals/runs.rbi +1 -2
  141. data/rbi/openai/resources/evals.rbi +2 -4
  142. data/rbi/openai/resources/fine_tuning/jobs.rbi +2 -3
  143. data/rbi/openai/resources/responses.rbi +14 -13
  144. data/rbi/openai/resources/vector_stores.rbi +2 -4
  145. data/sig/openai/models/admin/organization/organization_spend_limit.rbs +42 -2
  146. data/sig/openai/models/admin/organization/projects/project_spend_limit.rbs +42 -2
  147. data/sig/openai/models/admin/organization/projects/spend_limit_update_params.rbs +48 -0
  148. data/sig/openai/models/admin/organization/spend_limit_update_params.rbs +48 -0
  149. data/sig/openai/models/admin/organization/usage_costs_params.rbs +3 -3
  150. data/sig/openai/models/batch.rbs +5 -7
  151. data/sig/openai/models/batch_create_params.rbs +2 -4
  152. data/sig/openai/models/beta/agents/automation_target_param.rbs +2 -2
  153. data/sig/openai/models/beta/agents/session_create_params.rbs +2 -2
  154. data/sig/openai/models/beta/agents/session_update_params.rbs +10 -0
  155. data/sig/openai/models/beta/beta_compacted_response.rbs +21 -2
  156. data/sig/openai/models/beta/beta_container_auto.rbs +12 -3
  157. data/sig/openai/models/beta/beta_response.rbs +8 -10
  158. data/sig/openai/models/beta/beta_responses_client_event.rbs +11 -13
  159. data/sig/openai/models/beta/response_compact_params.rbs +14 -6
  160. data/sig/openai/models/beta/response_create_params.rbs +11 -13
  161. data/sig/openai/models/chat/chat_completion.rbs +2 -4
  162. data/sig/openai/models/chat/completion_create_params.rbs +10 -12
  163. data/sig/openai/models/chat/completion_update_params.rbs +2 -4
  164. data/sig/openai/models/completion_create_params.rbs +2 -2
  165. data/sig/openai/models/conversations/conversation_create_params.rbs +10 -4
  166. data/sig/openai/models/eval_create_params.rbs +2 -4
  167. data/sig/openai/models/eval_create_response.rbs +4 -8
  168. data/sig/openai/models/eval_list_response.rbs +4 -8
  169. data/sig/openai/models/eval_retrieve_response.rbs +4 -8
  170. data/sig/openai/models/eval_stored_completions_data_source_config.rbs +2 -4
  171. data/sig/openai/models/eval_update_params.rbs +2 -4
  172. data/sig/openai/models/eval_update_response.rbs +4 -8
  173. data/sig/openai/models/evals/create_eval_completions_run_data_source.rbs +7 -9
  174. data/sig/openai/models/evals/run_cancel_response.rbs +5 -7
  175. data/sig/openai/models/evals/run_create_params.rbs +5 -7
  176. data/sig/openai/models/evals/run_create_response.rbs +5 -7
  177. data/sig/openai/models/evals/run_list_response.rbs +5 -7
  178. data/sig/openai/models/evals/run_retrieve_response.rbs +5 -7
  179. data/sig/openai/models/fine_tuning/fine_tuning_job.rbs +2 -4
  180. data/sig/openai/models/fine_tuning/job_create_params.rbs +6 -6
  181. data/sig/openai/models/live/media_session_config.rbs +21 -21
  182. data/sig/openai/models/live/responses_delegation_config.rbs +8 -2
  183. data/sig/openai/models/live/responses_delegation_update_config.rbs +8 -2
  184. data/sig/openai/models/realtime/realtime_audio_config_input.rbs +12 -9
  185. data/sig/openai/models/realtime/realtime_response.rbs +2 -4
  186. data/sig/openai/models/realtime/realtime_response_create_params.rbs +2 -4
  187. data/sig/openai/models/responses/compacted_response.rbs +21 -2
  188. data/sig/openai/models/responses/container_auto.rbs +12 -3
  189. data/sig/openai/models/responses/response.rbs +8 -10
  190. data/sig/openai/models/responses/response_compact_params.rbs +14 -6
  191. data/sig/openai/models/responses/response_create_params.rbs +11 -13
  192. data/sig/openai/models/responses/responses_client_event.rbs +11 -13
  193. data/sig/openai/models/vector_store.rbs +2 -4
  194. data/sig/openai/models/vector_store_create_params.rbs +2 -4
  195. data/sig/openai/models/vector_store_update_params.rbs +2 -4
  196. data/sig/openai/resources/admin/organization/projects/spend_limit.rbs +1 -0
  197. data/sig/openai/resources/admin/organization/spend_limit.rbs +1 -0
  198. data/sig/openai/resources/beta/agents/sessions.rbs +1 -0
  199. data/sig/openai/resources/beta/responses.rbs +1 -0
  200. data/sig/openai/resources/conversations.rbs +1 -0
  201. data/sig/openai/resources/responses.rbs +1 -0
  202. metadata +1 -1
@@ -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.
@@ -120,8 +119,7 @@ module OpenAI
120
119
  #
121
120
  # @param metadata [Hash{Symbol=>String}, nil]
122
121
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
123
- # for storing additional information about the object in a structured format, and
124
- # querying for objects via API or the dashboard.
122
+ # for storing additional information about the object in a structured format.
125
123
  #
126
124
  # Keys are strings with a maximum length of 64 characters. Values are strings with
127
125
  # a maximum length of 512 characters.
@@ -193,7 +191,7 @@ module OpenAI
193
191
  )
194
192
 
195
193
  # @!attribute model
196
- # The name of the model to use for generating completions (e.g. "o3-mini").
194
+ # The model to use to sample outputs with the Responses API.
197
195
  #
198
196
  # @return [String, nil]
199
197
  optional :model, String
@@ -219,7 +217,7 @@ module OpenAI
219
217
  # namespace.
220
218
  #
221
219
  # @param model [String]
222
- # The name of the model to use for generating completions (e.g. "o3-mini").
220
+ # The model to use to sample outputs with the Responses API.
223
221
  #
224
222
  # @param sampling_params [OpenAI::Models::Evals::RunCancelResponse::DataSource::Responses::SamplingParams]
225
223
  #
@@ -21,8 +21,7 @@ module OpenAI
21
21
 
22
22
  # @!attribute metadata
23
23
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
24
- # for storing additional information about the object in a structured format, and
25
- # querying for objects via API or the dashboard.
24
+ # for storing additional information about the object in a structured format.
26
25
  #
27
26
  # Keys are strings with a maximum length of 64 characters. Values are strings with
28
27
  # a maximum length of 512 characters.
@@ -44,8 +43,7 @@ module OpenAI
44
43
  #
45
44
  # @param metadata [Hash{Symbol=>String}, nil]
46
45
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
47
- # for storing additional information about the object in a structured format, and
48
- # querying for objects via API or the dashboard.
46
+ # for storing additional information about the object in a structured format.
49
47
  #
50
48
  # Keys are strings with a maximum length of 64 characters. Values are strings with
51
49
  # a maximum length of 512 characters.
@@ -100,7 +98,7 @@ module OpenAI
100
98
  )
101
99
 
102
100
  # @!attribute model
103
- # The name of the model to use for generating completions (e.g. "o3-mini").
101
+ # The model to use to sample outputs with the Responses API.
104
102
  #
105
103
  # @return [String, nil]
106
104
  optional :model, String
@@ -129,7 +127,7 @@ module OpenAI
129
127
  # namespace.
130
128
  #
131
129
  # @param model [String]
132
- # The name of the model to use for generating completions (e.g. "o3-mini").
130
+ # The model to use to sample outputs with the Responses API.
133
131
  #
134
132
  # @param sampling_params [OpenAI::Models::Evals::RunCreateParams::DataSource::CreateEvalResponsesRunDataSource::SamplingParams]
135
133
 
@@ -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.
@@ -120,8 +119,7 @@ module OpenAI
120
119
  #
121
120
  # @param metadata [Hash{Symbol=>String}, nil]
122
121
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
123
- # for storing additional information about the object in a structured format, and
124
- # querying for objects via API or the dashboard.
122
+ # for storing additional information about the object in a structured format.
125
123
  #
126
124
  # Keys are strings with a maximum length of 64 characters. Values are strings with
127
125
  # a maximum length of 512 characters.
@@ -193,7 +191,7 @@ module OpenAI
193
191
  )
194
192
 
195
193
  # @!attribute model
196
- # The name of the model to use for generating completions (e.g. "o3-mini").
194
+ # The model to use to sample outputs with the Responses API.
197
195
  #
198
196
  # @return [String, nil]
199
197
  optional :model, String
@@ -219,7 +217,7 @@ module OpenAI
219
217
  # namespace.
220
218
  #
221
219
  # @param model [String]
222
- # The name of the model to use for generating completions (e.g. "o3-mini").
220
+ # The model to use to sample outputs with the Responses API.
223
221
  #
224
222
  # @param sampling_params [OpenAI::Models::Evals::RunCreateResponse::DataSource::Responses::SamplingParams]
225
223
  #
@@ -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.
@@ -120,8 +119,7 @@ module OpenAI
120
119
  #
121
120
  # @param metadata [Hash{Symbol=>String}, nil]
122
121
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
123
- # for storing additional information about the object in a structured format, and
124
- # querying for objects via API or the dashboard.
122
+ # for storing additional information about the object in a structured format.
125
123
  #
126
124
  # Keys are strings with a maximum length of 64 characters. Values are strings with
127
125
  # a maximum length of 512 characters.
@@ -193,7 +191,7 @@ module OpenAI
193
191
  )
194
192
 
195
193
  # @!attribute model
196
- # The name of the model to use for generating completions (e.g. "o3-mini").
194
+ # The model to use to sample outputs with the Responses API.
197
195
  #
198
196
  # @return [String, nil]
199
197
  optional :model, String
@@ -219,7 +217,7 @@ module OpenAI
219
217
  # namespace.
220
218
  #
221
219
  # @param model [String]
222
- # The name of the model to use for generating completions (e.g. "o3-mini").
220
+ # The model to use to sample outputs with the Responses API.
223
221
  #
224
222
  # @param sampling_params [OpenAI::Models::Evals::RunListResponse::DataSource::Responses::SamplingParams]
225
223
  #
@@ -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.
@@ -120,8 +119,7 @@ module OpenAI
120
119
  #
121
120
  # @param metadata [Hash{Symbol=>String}, nil]
122
121
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
123
- # for storing additional information about the object in a structured format, and
124
- # querying for objects via API or the dashboard.
122
+ # for storing additional information about the object in a structured format.
125
123
  #
126
124
  # Keys are strings with a maximum length of 64 characters. Values are strings with
127
125
  # a maximum length of 512 characters.
@@ -193,7 +191,7 @@ module OpenAI
193
191
  )
194
192
 
195
193
  # @!attribute model
196
- # The name of the model to use for generating completions (e.g. "o3-mini").
194
+ # The model to use to sample outputs with the Responses API.
197
195
  #
198
196
  # @return [String, nil]
199
197
  optional :model, String
@@ -219,7 +217,7 @@ module OpenAI
219
217
  # namespace.
220
218
  #
221
219
  # @param model [String]
222
- # The name of the model to use for generating completions (e.g. "o3-mini").
220
+ # The model to use to sample outputs with the Responses API.
223
221
  #
224
222
  # @param sampling_params [OpenAI::Models::Evals::RunRetrieveResponse::DataSource::Responses::SamplingParams]
225
223
  #
@@ -127,8 +127,7 @@ module OpenAI
127
127
 
128
128
  # @!attribute metadata
129
129
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
130
- # for storing additional information about the object in a structured format, and
131
- # querying for objects via API or the dashboard.
130
+ # for storing additional information about the object in a structured format.
132
131
  #
133
132
  # Keys are strings with a maximum length of 64 characters. Values are strings with
134
133
  # a maximum length of 512 characters.
@@ -208,8 +207,7 @@ module OpenAI
208
207
  #
209
208
  # @param metadata [Hash{Symbol=>String}, nil]
210
209
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
211
- # for storing additional information about the object in a structured format, and
212
- # querying for objects via API or the dashboard.
210
+ # for storing additional information about the object in a structured format.
213
211
  #
214
212
  # Keys are strings with a maximum length of 64 characters. Values are strings with
215
213
  # a maximum length of 512 characters.
@@ -60,8 +60,7 @@ module OpenAI
60
60
 
61
61
  # @!attribute metadata
62
62
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
63
- # for storing additional information about the object in a structured format, and
64
- # querying for objects via API or the dashboard.
63
+ # for storing additional information about the object in a structured format.
65
64
  #
66
65
  # Keys are strings with a maximum length of 64 characters. Values are strings with
67
66
  # a maximum length of 512 characters.
@@ -88,7 +87,7 @@ module OpenAI
88
87
  # name.
89
88
  #
90
89
  # For example, a `suffix` of "custom-model-name" would produce a model name like
91
- # `ft:gpt-4o-mini:openai:custom-model-name:7p4lURel`.
90
+ # `ft:gpt-4.1-mini-2025-04-14:openai:custom-model-name:7p4lURel`.
92
91
  #
93
92
  # @return [String, nil]
94
93
  optional :suffix, String, nil?: true
@@ -146,8 +145,7 @@ module OpenAI
146
145
  #
147
146
  # @param metadata [Hash{Symbol=>String}, nil]
148
147
  # 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.
148
+ # for storing additional information about the object in a structured format.
151
149
  #
152
150
  # Keys are strings with a maximum length of 64 characters. Values are strings with
153
151
  # a maximum length of 512 characters.
@@ -165,7 +163,7 @@ module OpenAI
165
163
  # name.
166
164
  #
167
165
  # For example, a `suffix` of "custom-model-name" would produce a model name like
168
- # `ft:gpt-4o-mini:openai:custom-model-name:7p4lURel`.
166
+ # `ft:gpt-4.1-mini-2025-04-14:openai:custom-model-name:7p4lURel`.
169
167
  #
170
168
  # @param validation_file [String, nil]
171
169
  # The ID of an uploaded file that contains validation data.
@@ -191,6 +189,8 @@ module OpenAI
191
189
 
192
190
  variant String
193
191
 
192
+ variant const: -> { OpenAI::Models::FineTuning::JobCreateParams::Model::GPT_4_1_MINI_2025_04_14 }
193
+
194
194
  variant const: -> { OpenAI::Models::FineTuning::JobCreateParams::Model::BABBAGE_002 }
195
195
 
196
196
  variant const: -> { OpenAI::Models::FineTuning::JobCreateParams::Model::DAVINCI_002 }
@@ -208,6 +208,7 @@ module OpenAI
208
208
 
209
209
  # @!group
210
210
 
211
+ GPT_4_1_MINI_2025_04_14 = :"gpt-4.1-mini-2025-04-14"
211
212
  BABBAGE_002 = :"babbage-002"
212
213
  DAVINCI_002 = :"davinci-002"
213
214
  GPT_3_5_TURBO = :"gpt-3.5-turbo"
@@ -19,7 +19,7 @@ module OpenAI
19
19
  # Returned when a Live session update is accepted. Contains the resolved session configuration after the update.
20
20
  variant :"session.updated", -> { OpenAI::Live::SessionUpdatedEvent }
21
21
 
22
- # 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.
22
+ # 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.
23
23
  variant :"session.resumed", -> { OpenAI::Live::ForkServerEvent::SessionResumed }
24
24
 
25
25
  # 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.
@@ -123,9 +123,9 @@ module OpenAI
123
123
  optional :client_event_id, String
124
124
 
125
125
  # @!method initialize(event_id:, client_event_id: nil, type: :"session.resumed")
126
- # Sent when speech resumes paused inference and it is ready for audio in a Live
127
- # WebRTC session. Delivered to the sideband and, when permitted by its event
128
- # settings, the data channel.
126
+ # Sent when speech wakes inference and it is ready for audio in a Live WebRTC
127
+ # session. This occurs on the first wake and after each later wake. Delivered to
128
+ # the sideband and, when permitted by its event settings, the data channel.
129
129
  #
130
130
  # @param event_id [String]
131
131
  # The unique ID of the Live server event.
@@ -34,9 +34,10 @@ module OpenAI
34
34
  optional :delegation, union: -> { OpenAI::Live::MediaSessionConfig::Delegation }, nil?: true
35
35
 
36
36
  # @!attribute idle_timeout_s
37
- # Whole seconds of inactivity after which a Live WebRTC session with a speech wake
38
- # policy pauses inference. The connection and conversation history are retained.
39
- # Omit to keep inference active until the session ends.
37
+ # Whole seconds of inactivity after which a Live WebRTC or SIP session with a
38
+ # speech wake policy pauses inference. The connection and conversation history are
39
+ # retained. Omit to keep inference active after the first wake until the session
40
+ # ends.
40
41
  #
41
42
  # @return [Integer, nil]
42
43
  optional :idle_timeout_s, Integer
@@ -85,8 +86,7 @@ module OpenAI
85
86
  optional :triggers, -> { OpenAI::Internal::Type::ArrayOf[OpenAI::Live::DecisionTrigger] }
86
87
 
87
88
  # @!attribute wake_policy
88
- # Inference starts when the Live WebRTC session connects. After an idle pause,
89
- # microphone speech resumes inference.
89
+ # Starts inference when microphone speech is detected.
90
90
  #
91
91
  # @return [OpenAI::Models::Live::MediaSessionConfig::WakePolicy, nil]
92
92
  optional :wake_policy, -> { OpenAI::Live::MediaSessionConfig::WakePolicy }
@@ -115,9 +115,10 @@ module OpenAI
115
115
  # API.
116
116
  #
117
117
  # @param idle_timeout_s [Integer]
118
- # Whole seconds of inactivity after which a Live WebRTC session with a speech wake
119
- # policy pauses inference. The connection and conversation history are retained.
120
- # Omit to keep inference active until the session ends.
118
+ # Whole seconds of inactivity after which a Live WebRTC or SIP session with a
119
+ # speech wake policy pauses inference. The connection and conversation history are
120
+ # retained. Omit to keep inference active after the first wake until the session
121
+ # ends.
121
122
  #
122
123
  # @param input [Array<OpenAI::Models::Live::InitialItem::Developer, OpenAI::Models::Live::InitialItem::User, OpenAI::Models::Live::InitialItem::Assistant>]
123
124
  # Ordered text-only history supplied before startup. Supports developer, user, and
@@ -148,8 +149,7 @@ module OpenAI
148
149
  # triggers.
149
150
  #
150
151
  # @param wake_policy [OpenAI::Models::Live::MediaSessionConfig::WakePolicy]
151
- # Inference starts when the Live WebRTC session connects. After an idle pause,
152
- # microphone speech resumes inference.
152
+ # Starts inference when microphone speech is detected.
153
153
 
154
154
  # The Live model. Required in the session configuration for every transport; do
155
155
  # not pass it as a URL query parameter.
@@ -342,20 +342,19 @@ module OpenAI
342
342
  required :type, const: :speech
343
343
 
344
344
  # @!attribute vad_threshold
345
- # The speech detection threshold for resuming paused inference, from 0 to 1
346
- # inclusive. Defaults to 0.5. Higher values require stronger evidence of speech.
345
+ # The speech detection threshold for the first wake and each later wake, from 0 to
346
+ # 1 inclusive. Defaults to 0.5. Higher values require stronger evidence of speech.
347
347
  # This setting is independent of active turn detection.
348
348
  #
349
349
  # @return [Float, nil]
350
350
  optional :vad_threshold, Float
351
351
 
352
352
  # @!method initialize(vad_threshold: nil, type: :speech)
353
- # Inference starts when the Live WebRTC session connects. After an idle pause,
354
- # microphone speech resumes inference.
353
+ # Starts inference when microphone speech is detected.
355
354
  #
356
355
  # @param vad_threshold [Float]
357
- # The speech detection threshold for resuming paused inference, from 0 to 1
358
- # inclusive. Defaults to 0.5. Higher values require stronger evidence of speech.
356
+ # The speech detection threshold for the first wake and each later wake, from 0 to
357
+ # 1 inclusive. Defaults to 0.5. Higher values require stronger evidence of speech.
359
358
  # This setting is independent of active turn detection.
360
359
  #
361
360
  # @param type [Symbol, :speech]
@@ -947,7 +947,10 @@ module OpenAI
947
947
  )
948
948
 
949
949
  # @!attribute skills
950
- # An optional list of skills referenced by id or inline data.
950
+ # An optional list of skills referenced by id or inline data. Across all inline
951
+ # skills in this list, decoded ZIP data must total at most 50 MiB and Base64 text
952
+ # must total at most 70,254,592 characters, including line breaks. Skill
953
+ # references do not count toward these limits.
951
954
  #
952
955
  # @return [Array<OpenAI::Models::Live::ResponsesDelegationConfig::Tool::Shell::Environment::ContainerAuto::Skill::SkillReference, OpenAI::Models::Live::ResponsesDelegationConfig::Tool::Shell::Environment::ContainerAuto::Skill::Inline>, nil]
953
956
  optional(
@@ -971,7 +974,10 @@ module OpenAI
971
974
  # Network access policy for the container.
972
975
  #
973
976
  # @param skills [Array<OpenAI::Models::Live::ResponsesDelegationConfig::Tool::Shell::Environment::ContainerAuto::Skill::SkillReference, OpenAI::Models::Live::ResponsesDelegationConfig::Tool::Shell::Environment::ContainerAuto::Skill::Inline>, nil]
974
- # An optional list of skills referenced by id or inline data.
977
+ # An optional list of skills referenced by id or inline data. Across all inline
978
+ # skills in this list, decoded ZIP data must total at most 50 MiB and Base64 text
979
+ # must total at most 70,254,592 characters, including line breaks. Skill
980
+ # references do not count toward these limits.
975
981
  #
976
982
  # @param type [Symbol, :container_auto]
977
983
  # Automatically creates a container for this request
@@ -957,7 +957,10 @@ module OpenAI
957
957
  )
958
958
 
959
959
  # @!attribute skills
960
- # An optional list of skills referenced by id or inline data.
960
+ # An optional list of skills referenced by id or inline data. Across all inline
961
+ # skills in this list, decoded ZIP data must total at most 50 MiB and Base64 text
962
+ # must total at most 70,254,592 characters, including line breaks. Skill
963
+ # references do not count toward these limits.
961
964
  #
962
965
  # @return [Array<OpenAI::Models::Live::ResponsesDelegationUpdateConfig::Tool::Shell::Environment::ContainerAuto::Skill::SkillReference, OpenAI::Models::Live::ResponsesDelegationUpdateConfig::Tool::Shell::Environment::ContainerAuto::Skill::Inline>, nil]
963
966
  optional(
@@ -981,7 +984,10 @@ module OpenAI
981
984
  # Network access policy for the container.
982
985
  #
983
986
  # @param skills [Array<OpenAI::Models::Live::ResponsesDelegationUpdateConfig::Tool::Shell::Environment::ContainerAuto::Skill::SkillReference, OpenAI::Models::Live::ResponsesDelegationUpdateConfig::Tool::Shell::Environment::ContainerAuto::Skill::Inline>, nil]
984
- # An optional list of skills referenced by id or inline data.
987
+ # An optional list of skills referenced by id or inline data. Across all inline
988
+ # skills in this list, decoded ZIP data must total at most 50 MiB and Base64 text
989
+ # must total at most 70,254,592 characters, including line breaks. Skill
990
+ # references do not count toward these limits.
985
991
  #
986
992
  # @param type [Symbol, :container_auto]
987
993
  # Automatically creates a container for this request
@@ -19,7 +19,7 @@ module OpenAI
19
19
  # Returned when a Live session update is accepted. Contains the resolved session configuration after the update.
20
20
  variant :"session.updated", -> { OpenAI::Live::SessionUpdatedEvent }
21
21
 
22
- # 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.
22
+ # 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.
23
23
  variant :"session.resumed", -> { OpenAI::Live::ServerEvent::SessionResumed }
24
24
 
25
25
  # 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.
@@ -123,9 +123,9 @@ module OpenAI
123
123
  optional :client_event_id, String
124
124
 
125
125
  # @!method initialize(event_id:, client_event_id: nil, type: :"session.resumed")
126
- # Sent when speech resumes paused inference and it is ready for audio in a Live
127
- # WebRTC session. Delivered to the sideband and, when permitted by its event
128
- # settings, the data channel.
126
+ # Sent when speech wakes inference and it is ready for audio in a Live WebRTC
127
+ # session. This occurs on the first wake and after each later wake. Delivered to
128
+ # the sideband and, when permitted by its event settings, the data channel.
129
129
  #
130
130
  # @param event_id [String]
131
131
  # The unique ID of the Live server event.
@@ -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