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
@@ -24,8 +24,7 @@ module OpenAI
24
24
 
25
25
  # @!attribute metadata
26
26
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
27
- # for storing additional information about the object in a structured format, and
28
- # querying for objects via API or the dashboard.
27
+ # for storing additional information about the object in a structured format.
29
28
  #
30
29
  # Keys are strings with a maximum length of 64 characters. Values are strings with
31
30
  # a maximum length of 512 characters.
@@ -60,7 +59,7 @@ module OpenAI
60
59
  #
61
60
  # - Improve the quality of my chatbot
62
61
  # - See how well my chatbot handles customer support
63
- # - Check if o4-mini is better at my usecase than gpt-6-astra
62
+ # - Compare how different models perform on the same task
64
63
  #
65
64
  # @param id [String]
66
65
  # Unique identifier for the evaluation.
@@ -73,8 +72,7 @@ module OpenAI
73
72
  #
74
73
  # @param metadata [Hash{Symbol=>String}, nil]
75
74
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
76
- # for storing additional information about the object in a structured format, and
77
- # querying for objects via API or the dashboard.
75
+ # for storing additional information about the object in a structured format.
78
76
  #
79
77
  # Keys are strings with a maximum length of 64 characters. Values are strings with
80
78
  # a maximum length of 512 characters.
@@ -127,8 +125,7 @@ module OpenAI
127
125
 
128
126
  # @!attribute metadata
129
127
  # 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.
128
+ # for storing additional information about the object in a structured format.
132
129
  #
133
130
  # Keys are strings with a maximum length of 64 characters. Values are strings with
134
131
  # a maximum length of 512 characters.
@@ -149,8 +146,7 @@ module OpenAI
149
146
  #
150
147
  # @param metadata [Hash{Symbol=>String}, nil]
151
148
  # 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.
149
+ # for storing additional information about the object in a structured format.
154
150
  #
155
151
  # Keys are strings with a maximum length of 64 characters. Values are strings with
156
152
  # a maximum length of 512 characters.
@@ -19,8 +19,7 @@ module OpenAI
19
19
 
20
20
  # @!attribute metadata
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.
@@ -37,8 +36,7 @@ module OpenAI
37
36
  #
38
37
  # @param metadata [Hash{Symbol=>String}, nil]
39
38
  # 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.
39
+ # for storing additional information about the object in a structured format.
42
40
  #
43
41
  # Keys are strings with a maximum length of 64 characters. Values are strings with
44
42
  # a maximum length of 512 characters.
@@ -14,8 +14,7 @@ module OpenAI
14
14
 
15
15
  # @!attribute metadata
16
16
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
17
- # for storing additional information about the object in a structured format, and
18
- # querying for objects via API or the dashboard.
17
+ # for storing additional information about the object in a structured format.
19
18
  #
20
19
  # Keys are strings with a maximum length of 64 characters. Values are strings with
21
20
  # a maximum length of 512 characters.
@@ -34,8 +33,7 @@ module OpenAI
34
33
  #
35
34
  # @param metadata [Hash{Symbol=>String}, nil]
36
35
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
37
- # for storing additional information about the object in a structured format, and
38
- # querying for objects via API or the dashboard.
36
+ # for storing additional information about the object in a structured format.
39
37
  #
40
38
  # Keys are strings with a maximum length of 64 characters. Values are strings with
41
39
  # a maximum length of 512 characters.
@@ -24,8 +24,7 @@ module OpenAI
24
24
 
25
25
  # @!attribute metadata
26
26
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
27
- # for storing additional information about the object in a structured format, and
28
- # querying for objects via API or the dashboard.
27
+ # for storing additional information about the object in a structured format.
29
28
  #
30
29
  # Keys are strings with a maximum length of 64 characters. Values are strings with
31
30
  # a maximum length of 512 characters.
@@ -60,7 +59,7 @@ module OpenAI
60
59
  #
61
60
  # - Improve the quality of my chatbot
62
61
  # - See how well my chatbot handles customer support
63
- # - Check if o4-mini is better at my usecase than gpt-6-astra
62
+ # - Compare how different models perform on the same task
64
63
  #
65
64
  # @param id [String]
66
65
  # Unique identifier for the evaluation.
@@ -73,8 +72,7 @@ module OpenAI
73
72
  #
74
73
  # @param metadata [Hash{Symbol=>String}, nil]
75
74
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
76
- # for storing additional information about the object in a structured format, and
77
- # querying for objects via API or the dashboard.
75
+ # for storing additional information about the object in a structured format.
78
76
  #
79
77
  # Keys are strings with a maximum length of 64 characters. Values are strings with
80
78
  # a maximum length of 512 characters.
@@ -127,8 +125,7 @@ module OpenAI
127
125
 
128
126
  # @!attribute metadata
129
127
  # 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.
128
+ # for storing additional information about the object in a structured format.
132
129
  #
133
130
  # Keys are strings with a maximum length of 64 characters. Values are strings with
134
131
  # a maximum length of 512 characters.
@@ -149,8 +146,7 @@ module OpenAI
149
146
  #
150
147
  # @param metadata [Hash{Symbol=>String}, nil]
151
148
  # 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.
149
+ # for storing additional information about the object in a structured format.
154
150
  #
155
151
  # Keys are strings with a maximum length of 64 characters. Values are strings with
156
152
  # a maximum length of 512 characters.
@@ -26,7 +26,7 @@ module OpenAI
26
26
  optional :input_messages, union: -> { OpenAI::Evals::CreateEvalCompletionsRunDataSource::InputMessages }
27
27
 
28
28
  # @!attribute model
29
- # The name of the model to use for generating completions (e.g. "o3-mini").
29
+ # The model to use to sample outputs with the Chat Completions API.
30
30
  #
31
31
  # @return [String, nil]
32
32
  optional :model, String
@@ -52,7 +52,7 @@ module OpenAI
52
52
  # namespace.
53
53
  #
54
54
  # @param model [String]
55
- # The name of the model to use for generating completions (e.g. "o3-mini").
55
+ # The model to use to sample outputs with the Chat Completions API.
56
56
  #
57
57
  # @param sampling_params [OpenAI::Models::Evals::CreateEvalCompletionsRunDataSource::SamplingParams]
58
58
 
@@ -165,8 +165,7 @@ module OpenAI
165
165
 
166
166
  # @!attribute metadata
167
167
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
168
- # for storing additional information about the object in a structured format, and
169
- # querying for objects via API or the dashboard.
168
+ # for storing additional information about the object in a structured format.
170
169
  #
171
170
  # Keys are strings with a maximum length of 64 characters. Values are strings with
172
171
  # a maximum length of 512 characters.
@@ -175,7 +174,7 @@ module OpenAI
175
174
  optional :metadata, OpenAI::Internal::Type::HashOf[String], nil?: true
176
175
 
177
176
  # @!attribute model
178
- # An optional model to filter by (e.g., 'gpt-6-astra').
177
+ # An optional model to filter by (e.g., 'gpt-4.1-mini-2025-04-14').
179
178
  #
180
179
  # @return [String, nil]
181
180
  optional :model, String, nil?: true
@@ -194,14 +193,13 @@ module OpenAI
194
193
  #
195
194
  # @param metadata [Hash{Symbol=>String}, nil]
196
195
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
197
- # for storing additional information about the object in a structured format, and
198
- # querying for objects via API or the dashboard.
196
+ # for storing additional information about the object in a structured format.
199
197
  #
200
198
  # Keys are strings with a maximum length of 64 characters. Values are strings with
201
199
  # a maximum length of 512 characters.
202
200
  #
203
201
  # @param model [String, nil]
204
- # An optional model to filter by (e.g., 'gpt-6-astra').
202
+ # An optional model to filter by (e.g., 'gpt-4.1-mini-2025-04-14').
205
203
  #
206
204
  # @param type [Symbol, :stored_completions]
207
205
  # The type of source. Always `stored_completions`.
@@ -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.