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
@@ -25,8 +25,7 @@ module OpenAI
25
25
  attr_accessor :data_source_config
26
26
 
27
27
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
28
- # for storing additional information about the object in a structured format, and
29
- # querying for objects via API or the dashboard.
28
+ # for storing additional information about the object in a structured format.
30
29
  #
31
30
  # Keys are strings with a maximum length of 64 characters. Values are strings with
32
31
  # a maximum length of 512 characters.
@@ -50,7 +49,7 @@ module OpenAI
50
49
  #
51
50
  # - Improve the quality of my chatbot
52
51
  # - See how well my chatbot handles customer support
53
- # - Check if o4-mini is better at my usecase than gpt-6-astra
52
+ # - Compare how different models perform on the same task
54
53
  sig do
55
54
  params(
56
55
 
@@ -94,8 +93,7 @@ module OpenAI
94
93
  data_source_config:,
95
94
 
96
95
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
97
- # for storing additional information about the object in a structured format, and
98
- # querying for objects via API or the dashboard.
96
+ # for storing additional information about the object in a structured format.
99
97
  #
100
98
  # Keys are strings with a maximum length of 64 characters. Values are strings with
101
99
  # a maximum length of 512 characters.
@@ -159,8 +157,7 @@ module OpenAI
159
157
  attr_accessor :type
160
158
 
161
159
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
162
- # for storing additional information about the object in a structured format, and
163
- # querying for objects via API or the dashboard.
160
+ # for storing additional information about the object in a structured format.
164
161
  #
165
162
  # Keys are strings with a maximum length of 64 characters. Values are strings with
166
163
  # a maximum length of 512 characters.
@@ -190,8 +187,7 @@ module OpenAI
190
187
  schema:,
191
188
 
192
189
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
193
- # for storing additional information about the object in a structured format, and
194
- # querying for objects via API or the dashboard.
190
+ # for storing additional information about the object in a structured format.
195
191
  #
196
192
  # Keys are strings with a maximum length of 64 characters. Values are strings with
197
193
  # a maximum length of 512 characters.
@@ -25,8 +25,7 @@ module OpenAI
25
25
  attr_accessor :data_source_config
26
26
 
27
27
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
28
- # for storing additional information about the object in a structured format, and
29
- # querying for objects via API or the dashboard.
28
+ # for storing additional information about the object in a structured format.
30
29
  #
31
30
  # Keys are strings with a maximum length of 64 characters. Values are strings with
32
31
  # a maximum length of 512 characters.
@@ -50,7 +49,7 @@ module OpenAI
50
49
  #
51
50
  # - Improve the quality of my chatbot
52
51
  # - See how well my chatbot handles customer support
53
- # - Check if o4-mini is better at my usecase than gpt-6-astra
52
+ # - Compare how different models perform on the same task
54
53
  sig do
55
54
  params(
56
55
 
@@ -94,8 +93,7 @@ module OpenAI
94
93
  data_source_config:,
95
94
 
96
95
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
97
- # for storing additional information about the object in a structured format, and
98
- # querying for objects via API or the dashboard.
96
+ # for storing additional information about the object in a structured format.
99
97
  #
100
98
  # Keys are strings with a maximum length of 64 characters. Values are strings with
101
99
  # a maximum length of 512 characters.
@@ -159,8 +157,7 @@ module OpenAI
159
157
  attr_accessor :type
160
158
 
161
159
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
162
- # for storing additional information about the object in a structured format, and
163
- # querying for objects via API or the dashboard.
160
+ # for storing additional information about the object in a structured format.
164
161
  #
165
162
  # Keys are strings with a maximum length of 64 characters. Values are strings with
166
163
  # a maximum length of 512 characters.
@@ -190,8 +187,7 @@ module OpenAI
190
187
  schema:,
191
188
 
192
189
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
193
- # for storing additional information about the object in a structured format, and
194
- # querying for objects via API or the dashboard.
190
+ # for storing additional information about the object in a structured format.
195
191
  #
196
192
  # Keys are strings with a maximum length of 64 characters. Values are strings with
197
193
  # a maximum length of 512 characters.
@@ -22,8 +22,7 @@ module OpenAI
22
22
  attr_accessor :type
23
23
 
24
24
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
25
- # for storing additional information about the object in a structured format, and
26
- # querying for objects via API or the dashboard.
25
+ # for storing additional information about the object in a structured format.
27
26
  #
28
27
  # Keys are strings with a maximum length of 64 characters. Values are strings with
29
28
  # a maximum length of 512 characters.
@@ -49,8 +48,7 @@ module OpenAI
49
48
  schema:,
50
49
 
51
50
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
52
- # for storing additional information about the object in a structured format, and
53
- # querying for objects via API or the dashboard.
51
+ # for storing additional information about the object in a structured format.
54
52
  #
55
53
  # Keys are strings with a maximum length of 64 characters. Values are strings with
56
54
  # a maximum length of 512 characters.
@@ -19,8 +19,7 @@ module OpenAI
19
19
  attr_accessor :eval_id
20
20
 
21
21
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
22
- # for storing additional information about the object in a structured format, and
23
- # querying for objects via API or the dashboard.
22
+ # for storing additional information about the object in a structured format.
24
23
  #
25
24
  # Keys are strings with a maximum length of 64 characters. Values are strings with
26
25
  # a maximum length of 512 characters.
@@ -52,8 +51,7 @@ module OpenAI
52
51
  eval_id:,
53
52
 
54
53
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
55
- # for storing additional information about the object in a structured format, and
56
- # querying for objects via API or the dashboard.
54
+ # for storing additional information about the object in a structured format.
57
55
  #
58
56
  # Keys are strings with a maximum length of 64 characters. Values are strings with
59
57
  # a maximum length of 512 characters.
@@ -25,8 +25,7 @@ module OpenAI
25
25
  attr_accessor :data_source_config
26
26
 
27
27
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
28
- # for storing additional information about the object in a structured format, and
29
- # querying for objects via API or the dashboard.
28
+ # for storing additional information about the object in a structured format.
30
29
  #
31
30
  # Keys are strings with a maximum length of 64 characters. Values are strings with
32
31
  # a maximum length of 512 characters.
@@ -50,7 +49,7 @@ module OpenAI
50
49
  #
51
50
  # - Improve the quality of my chatbot
52
51
  # - See how well my chatbot handles customer support
53
- # - Check if o4-mini is better at my usecase than gpt-6-astra
52
+ # - Compare how different models perform on the same task
54
53
  sig do
55
54
  params(
56
55
 
@@ -94,8 +93,7 @@ module OpenAI
94
93
  data_source_config:,
95
94
 
96
95
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
97
- # for storing additional information about the object in a structured format, and
98
- # querying for objects via API or the dashboard.
96
+ # for storing additional information about the object in a structured format.
99
97
  #
100
98
  # Keys are strings with a maximum length of 64 characters. Values are strings with
101
99
  # a maximum length of 512 characters.
@@ -159,8 +157,7 @@ module OpenAI
159
157
  attr_accessor :type
160
158
 
161
159
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
162
- # for storing additional information about the object in a structured format, and
163
- # querying for objects via API or the dashboard.
160
+ # for storing additional information about the object in a structured format.
164
161
  #
165
162
  # Keys are strings with a maximum length of 64 characters. Values are strings with
166
163
  # a maximum length of 512 characters.
@@ -190,8 +187,7 @@ module OpenAI
190
187
  schema:,
191
188
 
192
189
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
193
- # for storing additional information about the object in a structured format, and
194
- # querying for objects via API or the dashboard.
190
+ # for storing additional information about the object in a structured format.
195
191
  #
196
192
  # Keys are strings with a maximum length of 64 characters. Values are strings with
197
193
  # a maximum length of 512 characters.
@@ -57,7 +57,7 @@ module OpenAI
57
57
  }
58
58
  attr_writer :input_messages
59
59
 
60
- # The name of the model to use for generating completions (e.g. "o3-mini").
60
+ # The model to use to sample outputs with the Chat Completions API.
61
61
  sig { returns(T.nilable(String)) }
62
62
  attr_reader :model
63
63
 
@@ -107,7 +107,7 @@ module OpenAI
107
107
  # namespace.
108
108
  input_messages: nil,
109
109
 
110
- # The name of the model to use for generating completions (e.g. "o3-mini").
110
+ # The model to use to sample outputs with the Chat Completions API.
111
111
  model: nil,
112
112
 
113
113
  sampling_params: nil
@@ -312,15 +312,14 @@ module OpenAI
312
312
  attr_accessor :limit
313
313
 
314
314
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
315
- # for storing additional information about the object in a structured format, and
316
- # querying for objects via API or the dashboard.
315
+ # for storing additional information about the object in a structured format.
317
316
  #
318
317
  # Keys are strings with a maximum length of 64 characters. Values are strings with
319
318
  # a maximum length of 512 characters.
320
319
  sig { returns(T.nilable(T::Hash[Symbol, String])) }
321
320
  attr_accessor :metadata
322
321
 
323
- # An optional model to filter by (e.g., 'gpt-6-astra').
322
+ # An optional model to filter by (e.g., 'gpt-4.1-mini-2025-04-14').
324
323
  sig { returns(T.nilable(String)) }
325
324
  attr_accessor :model
326
325
 
@@ -354,14 +353,13 @@ module OpenAI
354
353
  limit: nil,
355
354
 
356
355
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
357
- # for storing additional information about the object in a structured format, and
358
- # querying for objects via API or the dashboard.
356
+ # for storing additional information about the object in a structured format.
359
357
  #
360
358
  # Keys are strings with a maximum length of 64 characters. Values are strings with
361
359
  # a maximum length of 512 characters.
362
360
  metadata: nil,
363
361
 
364
- # An optional model to filter by (e.g., 'gpt-6-astra').
362
+ # An optional model to filter by (e.g., 'gpt-4.1-mini-2025-04-14').
365
363
  model: nil,
366
364
 
367
365
  # The type of source. Always `stored_completions`.
@@ -38,8 +38,7 @@ module OpenAI
38
38
  attr_accessor :eval_id
39
39
 
40
40
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
41
- # for storing additional information about the object in a structured format, and
42
- # querying for objects via API or the dashboard.
41
+ # for storing additional information about the object in a structured format.
43
42
  #
44
43
  # Keys are strings with a maximum length of 64 characters. Values are strings with
45
44
  # a maximum length of 512 characters.
@@ -139,8 +138,7 @@ module OpenAI
139
138
  eval_id:,
140
139
 
141
140
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
142
- # for storing additional information about the object in a structured format, and
143
- # querying for objects via API or the dashboard.
141
+ # for storing additional information about the object in a structured format.
144
142
  #
145
143
  # Keys are strings with a maximum length of 64 characters. Values are strings with
146
144
  # a maximum length of 512 characters.
@@ -246,7 +244,7 @@ module OpenAI
246
244
  }
247
245
  attr_writer :input_messages
248
246
 
249
- # The name of the model to use for generating completions (e.g. "o3-mini").
247
+ # The model to use to sample outputs with the Responses API.
250
248
  sig { returns(T.nilable(String)) }
251
249
  attr_reader :model
252
250
 
@@ -298,7 +296,7 @@ module OpenAI
298
296
  # namespace.
299
297
  input_messages: nil,
300
298
 
301
- # The name of the model to use for generating completions (e.g. "o3-mini").
299
+ # The model to use to sample outputs with the Responses API.
302
300
  model: nil,
303
301
 
304
302
  sampling_params: nil,
@@ -33,8 +33,7 @@ module OpenAI
33
33
  attr_accessor :data_source
34
34
 
35
35
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
36
- # for storing additional information about the object in a structured format, and
37
- # querying for objects via API or the dashboard.
36
+ # for storing additional information about the object in a structured format.
38
37
  #
39
38
  # Keys are strings with a maximum length of 64 characters. Values are strings with
40
39
  # a maximum length of 512 characters.
@@ -75,8 +74,7 @@ module OpenAI
75
74
  data_source:,
76
75
 
77
76
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
78
- # for storing additional information about the object in a structured format, and
79
- # querying for objects via API or the dashboard.
77
+ # for storing additional information about the object in a structured format.
80
78
  #
81
79
  # Keys are strings with a maximum length of 64 characters. Values are strings with
82
80
  # a maximum length of 512 characters.
@@ -172,7 +170,7 @@ module OpenAI
172
170
  }
173
171
  attr_writer :input_messages
174
172
 
175
- # The name of the model to use for generating completions (e.g. "o3-mini").
173
+ # The model to use to sample outputs with the Responses API.
176
174
  sig { returns(T.nilable(String)) }
177
175
  attr_reader :model
178
176
 
@@ -231,7 +229,7 @@ module OpenAI
231
229
  # namespace.
232
230
  input_messages: nil,
233
231
 
234
- # The name of the model to use for generating completions (e.g. "o3-mini").
232
+ # The model to use to sample outputs with the Responses API.
235
233
  model: nil,
236
234
 
237
235
  sampling_params: nil
@@ -38,8 +38,7 @@ module OpenAI
38
38
  attr_accessor :eval_id
39
39
 
40
40
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
41
- # for storing additional information about the object in a structured format, and
42
- # querying for objects via API or the dashboard.
41
+ # for storing additional information about the object in a structured format.
43
42
  #
44
43
  # Keys are strings with a maximum length of 64 characters. Values are strings with
45
44
  # a maximum length of 512 characters.
@@ -139,8 +138,7 @@ module OpenAI
139
138
  eval_id:,
140
139
 
141
140
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
142
- # for storing additional information about the object in a structured format, and
143
- # querying for objects via API or the dashboard.
141
+ # for storing additional information about the object in a structured format.
144
142
  #
145
143
  # Keys are strings with a maximum length of 64 characters. Values are strings with
146
144
  # a maximum length of 512 characters.
@@ -246,7 +244,7 @@ module OpenAI
246
244
  }
247
245
  attr_writer :input_messages
248
246
 
249
- # The name of the model to use for generating completions (e.g. "o3-mini").
247
+ # The model to use to sample outputs with the Responses API.
250
248
  sig { returns(T.nilable(String)) }
251
249
  attr_reader :model
252
250
 
@@ -298,7 +296,7 @@ module OpenAI
298
296
  # namespace.
299
297
  input_messages: nil,
300
298
 
301
- # The name of the model to use for generating completions (e.g. "o3-mini").
299
+ # The model to use to sample outputs with the Responses API.
302
300
  model: nil,
303
301
 
304
302
  sampling_params: nil,
@@ -38,8 +38,7 @@ module OpenAI
38
38
  attr_accessor :eval_id
39
39
 
40
40
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
41
- # for storing additional information about the object in a structured format, and
42
- # querying for objects via API or the dashboard.
41
+ # for storing additional information about the object in a structured format.
43
42
  #
44
43
  # Keys are strings with a maximum length of 64 characters. Values are strings with
45
44
  # a maximum length of 512 characters.
@@ -139,8 +138,7 @@ module OpenAI
139
138
  eval_id:,
140
139
 
141
140
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
142
- # for storing additional information about the object in a structured format, and
143
- # querying for objects via API or the dashboard.
141
+ # for storing additional information about the object in a structured format.
144
142
  #
145
143
  # Keys are strings with a maximum length of 64 characters. Values are strings with
146
144
  # a maximum length of 512 characters.
@@ -244,7 +242,7 @@ module OpenAI
244
242
  }
245
243
  attr_writer :input_messages
246
244
 
247
- # The name of the model to use for generating completions (e.g. "o3-mini").
245
+ # The model to use to sample outputs with the Responses API.
248
246
  sig { returns(T.nilable(String)) }
249
247
  attr_reader :model
250
248
 
@@ -296,7 +294,7 @@ module OpenAI
296
294
  # namespace.
297
295
  input_messages: nil,
298
296
 
299
- # The name of the model to use for generating completions (e.g. "o3-mini").
297
+ # The model to use to sample outputs with the Responses API.
300
298
  model: nil,
301
299
 
302
300
  sampling_params: nil,
@@ -38,8 +38,7 @@ module OpenAI
38
38
  attr_accessor :eval_id
39
39
 
40
40
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
41
- # for storing additional information about the object in a structured format, and
42
- # querying for objects via API or the dashboard.
41
+ # for storing additional information about the object in a structured format.
43
42
  #
44
43
  # Keys are strings with a maximum length of 64 characters. Values are strings with
45
44
  # a maximum length of 512 characters.
@@ -139,8 +138,7 @@ module OpenAI
139
138
  eval_id:,
140
139
 
141
140
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
142
- # for storing additional information about the object in a structured format, and
143
- # querying for objects via API or the dashboard.
141
+ # for storing additional information about the object in a structured format.
144
142
  #
145
143
  # Keys are strings with a maximum length of 64 characters. Values are strings with
146
144
  # a maximum length of 512 characters.
@@ -248,7 +246,7 @@ module OpenAI
248
246
  }
249
247
  attr_writer :input_messages
250
248
 
251
- # The name of the model to use for generating completions (e.g. "o3-mini").
249
+ # The model to use to sample outputs with the Responses API.
252
250
  sig { returns(T.nilable(String)) }
253
251
  attr_reader :model
254
252
 
@@ -302,7 +300,7 @@ module OpenAI
302
300
  # namespace.
303
301
  input_messages: nil,
304
302
 
305
- # The name of the model to use for generating completions (e.g. "o3-mini").
303
+ # The model to use to sample outputs with the Responses API.
306
304
  model: nil,
307
305
 
308
306
  sampling_params: nil,
@@ -103,8 +103,7 @@ module OpenAI
103
103
  attr_accessor :integrations
104
104
 
105
105
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
106
- # for storing additional information about the object in a structured format, and
107
- # querying for objects via API or the dashboard.
106
+ # for storing additional information about the object in a structured format.
108
107
  #
109
108
  # Keys are strings with a maximum length of 64 characters. Values are strings with
110
109
  # a maximum length of 512 characters.
@@ -226,8 +225,7 @@ module OpenAI
226
225
  integrations: nil,
227
226
 
228
227
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
229
- # for storing additional information about the object in a structured format, and
230
- # querying for objects via API or the dashboard.
228
+ # for storing additional information about the object in a structured format.
231
229
  #
232
230
  # Keys are strings with a maximum length of 64 characters. Values are strings with
233
231
  # a maximum length of 512 characters.
@@ -57,8 +57,7 @@ module OpenAI
57
57
  attr_accessor :integrations
58
58
 
59
59
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
60
- # for storing additional information about the object in a structured format, and
61
- # querying for objects via API or the dashboard.
60
+ # for storing additional information about the object in a structured format.
62
61
  #
63
62
  # Keys are strings with a maximum length of 64 characters. Values are strings with
64
63
  # a maximum length of 512 characters.
@@ -82,7 +81,7 @@ module OpenAI
82
81
  # name.
83
82
  #
84
83
  # For example, a `suffix` of "custom-model-name" would produce a model name like
85
- # `ft:gpt-4o-mini:openai:custom-model-name:7p4lURel`.
84
+ # `ft:gpt-4.1-mini-2025-04-14:openai:custom-model-name:7p4lURel`.
86
85
  sig { returns(T.nilable(String)) }
87
86
  attr_accessor :suffix
88
87
 
@@ -162,8 +161,7 @@ module OpenAI
162
161
  integrations: nil,
163
162
 
164
163
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
165
- # for storing additional information about the object in a structured format, and
166
- # querying for objects via API or the dashboard.
164
+ # for storing additional information about the object in a structured format.
167
165
  #
168
166
  # Keys are strings with a maximum length of 64 characters. Values are strings with
169
167
  # a maximum length of 512 characters.
@@ -181,7 +179,7 @@ module OpenAI
181
179
  # name.
182
180
  #
183
181
  # For example, a `suffix` of "custom-model-name" would produce a model name like
184
- # `ft:gpt-4o-mini:openai:custom-model-name:7p4lURel`.
182
+ # `ft:gpt-4.1-mini-2025-04-14:openai:custom-model-name:7p4lURel`.
185
183
  suffix: nil,
186
184
 
187
185
  # The ID of an uploaded file that contains validation data.
@@ -239,6 +237,10 @@ module OpenAI
239
237
 
240
238
  OrSymbol = T.type_alias { T.any(Symbol, String) }
241
239
 
240
+ GPT_4_1_MINI_2025_04_14 = T.let(
241
+ :"gpt-4.1-mini-2025-04-14",
242
+ OpenAI::FineTuning::JobCreateParams::Model::TaggedSymbol
243
+ )
242
244
  BABBAGE_002 = T.let(:"babbage-002", OpenAI::FineTuning::JobCreateParams::Model::TaggedSymbol)
243
245
  DAVINCI_002 = T.let(:"davinci-002", OpenAI::FineTuning::JobCreateParams::Model::TaggedSymbol)
244
246
  GPT_3_5_TURBO = T.let(:"gpt-3.5-turbo", OpenAI::FineTuning::JobCreateParams::Model::TaggedSymbol)
@@ -71,9 +71,9 @@ module OpenAI
71
71
  sig { params(client_event_id: String).void }
72
72
  attr_writer :client_event_id
73
73
 
74
- # Sent when speech resumes paused inference and it is ready for audio in a Live
75
- # WebRTC session. Delivered to the sideband and, when permitted by its event
76
- # settings, the data channel.
74
+ # Sent when speech wakes inference and it is ready for audio in a Live WebRTC
75
+ # session. This occurs on the first wake and after each later wake. Delivered to
76
+ # the sideband and, when permitted by its event settings, the data channel.
77
77
  sig do
78
78
  params(
79
79
 
@@ -51,9 +51,10 @@ module OpenAI
51
51
  }
52
52
  attr_accessor :delegation
53
53
 
54
- # Whole seconds of inactivity after which a Live WebRTC session with a speech wake
55
- # policy pauses inference. The connection and conversation history are retained.
56
- # Omit to keep inference active until the session ends.
54
+ # Whole seconds of inactivity after which a Live WebRTC or SIP session with a
55
+ # speech wake policy pauses inference. The connection and conversation history are
56
+ # retained. Omit to keep inference active after the first wake until the session
57
+ # ends.
57
58
  sig { returns(T.nilable(Integer)) }
58
59
  attr_reader :idle_timeout_s
59
60
 
@@ -125,8 +126,7 @@ module OpenAI
125
126
  sig { params(triggers: T::Array[OpenAI::Live::DecisionTrigger::OrHash]).void }
126
127
  attr_writer :triggers
127
128
 
128
- # Inference starts when the Live WebRTC session connects. After an idle pause,
129
- # microphone speech resumes inference.
129
+ # Starts inference when microphone speech is detected.
130
130
  sig { returns(T.nilable(OpenAI::Live::MediaSessionConfig::WakePolicy)) }
131
131
  attr_reader :wake_policy
132
132
 
@@ -195,9 +195,10 @@ module OpenAI
195
195
  # API.
196
196
  delegation: nil,
197
197
 
198
- # Whole seconds of inactivity after which a Live WebRTC session with a speech wake
199
- # policy pauses inference. The connection and conversation history are retained.
200
- # Omit to keep inference active until the session ends.
198
+ # Whole seconds of inactivity after which a Live WebRTC or SIP session with a
199
+ # speech wake policy pauses inference. The connection and conversation history are
200
+ # retained. Omit to keep inference active after the first wake until the session
201
+ # ends.
201
202
  idle_timeout_s: nil,
202
203
 
203
204
  # Ordered text-only history supplied before startup. Supports developer, user, and
@@ -228,8 +229,7 @@ module OpenAI
228
229
  # triggers.
229
230
  triggers: nil,
230
231
 
231
- # Inference starts when the Live WebRTC session connects. After an idle pause,
232
- # microphone speech resumes inference.
232
+ # Starts inference when microphone speech is detected.
233
233
 
234
234
  wake_policy: nil
235
235
  )
@@ -562,8 +562,8 @@ module OpenAI
562
562
  sig { returns(Symbol) }
563
563
  attr_accessor :type
564
564
 
565
- # The speech detection threshold for resuming paused inference, from 0 to 1
566
- # inclusive. Defaults to 0.5. Higher values require stronger evidence of speech.
565
+ # The speech detection threshold for the first wake and each later wake, from 0 to
566
+ # 1 inclusive. Defaults to 0.5. Higher values require stronger evidence of speech.
567
567
  # This setting is independent of active turn detection.
568
568
  sig { returns(T.nilable(Float)) }
569
569
  attr_reader :vad_threshold
@@ -571,8 +571,7 @@ module OpenAI
571
571
  sig { params(vad_threshold: Float).void }
572
572
  attr_writer :vad_threshold
573
573
 
574
- # Inference starts when the Live WebRTC session connects. After an idle pause,
575
- # microphone speech resumes inference.
574
+ # Starts inference when microphone speech is detected.
576
575
  sig do
577
576
  params(
578
577
 
@@ -584,8 +583,8 @@ module OpenAI
584
583
  end
585
584
  def self.new(
586
585
 
587
- # The speech detection threshold for resuming paused inference, from 0 to 1
588
- # inclusive. Defaults to 0.5. Higher values require stronger evidence of speech.
586
+ # The speech detection threshold for the first wake and each later wake, from 0 to
587
+ # 1 inclusive. Defaults to 0.5. Higher values require stronger evidence of speech.
589
588
  # This setting is independent of active turn detection.
590
589
  vad_threshold: nil,
591
590
 
@@ -1913,7 +1913,10 @@ module OpenAI
1913
1913
  }
1914
1914
  attr_accessor :network_policy
1915
1915
 
1916
- # An optional list of skills referenced by id or inline data.
1916
+ # An optional list of skills referenced by id or inline data. Across all inline
1917
+ # skills in this list, decoded ZIP data must total at most 50 MiB and Base64 text
1918
+ # must total at most 70,254,592 characters, including line breaks. Skill
1919
+ # references do not count toward these limits.
1917
1920
  sig {
1918
1921
  returns(
1919
1922
  T.nilable(
@@ -1968,7 +1971,10 @@ module OpenAI
1968
1971
  # Network access policy for the container.
1969
1972
  network_policy: nil,
1970
1973
 
1971
- # An optional list of skills referenced by id or inline data.
1974
+ # An optional list of skills referenced by id or inline data. Across all inline
1975
+ # skills in this list, decoded ZIP data must total at most 50 MiB and Base64 text
1976
+ # must total at most 70,254,592 characters, including line breaks. Skill
1977
+ # references do not count toward these limits.
1972
1978
  skills: nil,
1973
1979
 
1974
1980
  # Automatically creates a container for this request
@@ -1937,7 +1937,10 @@ module OpenAI
1937
1937
  }
1938
1938
  attr_accessor :network_policy
1939
1939
 
1940
- # An optional list of skills referenced by id or inline data.
1940
+ # An optional list of skills referenced by id or inline data. Across all inline
1941
+ # skills in this list, decoded ZIP data must total at most 50 MiB and Base64 text
1942
+ # must total at most 70,254,592 characters, including line breaks. Skill
1943
+ # references do not count toward these limits.
1941
1944
  sig {
1942
1945
  returns(
1943
1946
  T.nilable(
@@ -1992,7 +1995,10 @@ module OpenAI
1992
1995
  # Network access policy for the container.
1993
1996
  network_policy: nil,
1994
1997
 
1995
- # An optional list of skills referenced by id or inline data.
1998
+ # An optional list of skills referenced by id or inline data. Across all inline
1999
+ # skills in this list, decoded ZIP data must total at most 50 MiB and Base64 text
2000
+ # must total at most 70,254,592 characters, including line breaks. Skill
2001
+ # references do not count toward these limits.
1996
2002
  skills: nil,
1997
2003
 
1998
2004
  # Automatically creates a container for this request