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
@@ -44,8 +44,7 @@ module OpenAI
44
44
  attr_accessor testing_criteria: ::Array[OpenAI::Models::EvalCreateParams::testing_criterion]
45
45
 
46
46
  # 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.
47
+ # for storing additional information about the object in a structured format.
49
48
  #
50
49
  # Keys are strings with a maximum length of 64 characters. Values are strings with
51
50
  # a maximum length of 512 characters.
@@ -67,8 +66,7 @@ module OpenAI
67
66
  # namespace (ie, `{{sample.output_text}}`).
68
67
  # @param metadata
69
68
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
70
- # for storing additional information about the object in a structured format, and
71
- # querying for objects via API or the dashboard.
69
+ # for storing additional information about the object in a structured format.
72
70
  #
73
71
  # Keys are strings with a maximum length of 64 characters. Values are strings with
74
72
  # a maximum length of 512 characters.
@@ -22,8 +22,7 @@ module OpenAI
22
22
  attr_accessor data_source_config: OpenAI::Models::EvalCreateResponse::data_source_config
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.
@@ -46,8 +45,7 @@ module OpenAI
46
45
  # Configuration of data sources used in runs of the evaluation.
47
46
  # @param metadata
48
47
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
49
- # for storing additional information about the object in a structured format, and
50
- # querying for objects via API or the dashboard.
48
+ # for storing additional information about the object in a structured format.
51
49
  #
52
50
  # Keys are strings with a maximum length of 64 characters. Values are strings with
53
51
  # a maximum length of 512 characters.
@@ -101,8 +99,7 @@ module OpenAI
101
99
  attr_accessor type: :logs
102
100
 
103
101
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
104
- # for storing additional information about the object in a structured format, and
105
- # querying for objects via API or the dashboard.
102
+ # for storing additional information about the object in a structured format.
106
103
  #
107
104
  # Keys are strings with a maximum length of 64 characters. Values are strings with
108
105
  # a maximum length of 512 characters.
@@ -113,8 +110,7 @@ module OpenAI
113
110
  # [here](https://json-schema.org/).
114
111
  # @param metadata
115
112
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
116
- # for storing additional information about the object in a structured format, and
117
- # querying for objects via API or the dashboard.
113
+ # for storing additional information about the object in a structured format.
118
114
  #
119
115
  # Keys are strings with a maximum length of 64 characters. Values are strings with
120
116
  # a maximum length of 512 characters.
@@ -22,8 +22,7 @@ module OpenAI
22
22
  attr_accessor data_source_config: OpenAI::Models::EvalListResponse::data_source_config
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.
@@ -46,8 +45,7 @@ module OpenAI
46
45
  # Configuration of data sources used in runs of the evaluation.
47
46
  # @param metadata
48
47
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
49
- # for storing additional information about the object in a structured format, and
50
- # querying for objects via API or the dashboard.
48
+ # for storing additional information about the object in a structured format.
51
49
  #
52
50
  # Keys are strings with a maximum length of 64 characters. Values are strings with
53
51
  # a maximum length of 512 characters.
@@ -101,8 +99,7 @@ module OpenAI
101
99
  attr_accessor type: :logs
102
100
 
103
101
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
104
- # for storing additional information about the object in a structured format, and
105
- # querying for objects via API or the dashboard.
102
+ # for storing additional information about the object in a structured format.
106
103
  #
107
104
  # Keys are strings with a maximum length of 64 characters. Values are strings with
108
105
  # a maximum length of 512 characters.
@@ -113,8 +110,7 @@ module OpenAI
113
110
  # [here](https://json-schema.org/).
114
111
  # @param metadata
115
112
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
116
- # for storing additional information about the object in a structured format, and
117
- # querying for objects via API or the dashboard.
113
+ # for storing additional information about the object in a structured format.
118
114
  #
119
115
  # Keys are strings with a maximum length of 64 characters. Values are strings with
120
116
  # a maximum length of 512 characters.
@@ -22,8 +22,7 @@ module OpenAI
22
22
  attr_accessor data_source_config: OpenAI::Models::EvalRetrieveResponse::data_source_config
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.
@@ -46,8 +45,7 @@ module OpenAI
46
45
  # Configuration of data sources used in runs of the evaluation.
47
46
  # @param metadata
48
47
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
49
- # for storing additional information about the object in a structured format, and
50
- # querying for objects via API or the dashboard.
48
+ # for storing additional information about the object in a structured format.
51
49
  #
52
50
  # Keys are strings with a maximum length of 64 characters. Values are strings with
53
51
  # a maximum length of 512 characters.
@@ -101,8 +99,7 @@ module OpenAI
101
99
  attr_accessor type: :logs
102
100
 
103
101
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
104
- # for storing additional information about the object in a structured format, and
105
- # querying for objects via API or the dashboard.
102
+ # for storing additional information about the object in a structured format.
106
103
  #
107
104
  # Keys are strings with a maximum length of 64 characters. Values are strings with
108
105
  # a maximum length of 512 characters.
@@ -113,8 +110,7 @@ module OpenAI
113
110
  # [here](https://json-schema.org/).
114
111
  # @param metadata
115
112
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
116
- # for storing additional information about the object in a structured format, and
117
- # querying for objects via API or the dashboard.
113
+ # for storing additional information about the object in a structured format.
118
114
  #
119
115
  # Keys are strings with a maximum length of 64 characters. Values are strings with
120
116
  # a maximum length of 512 characters.
@@ -16,8 +16,7 @@ module OpenAI
16
16
  attr_accessor type: :stored_completions
17
17
 
18
18
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
19
- # for storing additional information about the object in a structured format, and
20
- # querying for objects via API or the dashboard.
19
+ # for storing additional information about the object in a structured format.
21
20
  #
22
21
  # Keys are strings with a maximum length of 64 characters. Values are strings with
23
22
  # a maximum length of 512 characters.
@@ -28,8 +27,7 @@ module OpenAI
28
27
  # [here](https://json-schema.org/).
29
28
  # @param metadata
30
29
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
31
- # for storing additional information about the object in a structured format, and
32
- # querying for objects via API or the dashboard.
30
+ # for storing additional information about the object in a structured format.
33
31
  #
34
32
  # Keys are strings with a maximum length of 64 characters. Values are strings with
35
33
  # a maximum length of 512 characters.
@@ -15,8 +15,7 @@ module OpenAI
15
15
  attr_accessor eval_id: String
16
16
 
17
17
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
18
- # for storing additional information about the object in a structured format, and
19
- # querying for objects via API or the dashboard.
18
+ # for storing additional information about the object in a structured format.
20
19
  #
21
20
  # Keys are strings with a maximum length of 64 characters. Values are strings with
22
21
  # a maximum length of 512 characters.
@@ -30,8 +29,7 @@ module OpenAI
30
29
 
31
30
  # @param metadata
32
31
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
33
- # for storing additional information about the object in a structured format, and
34
- # querying for objects via API or the dashboard.
32
+ # for storing additional information about the object in a structured format.
35
33
  #
36
34
  # Keys are strings with a maximum length of 64 characters. Values are strings with
37
35
  # a maximum length of 512 characters.
@@ -22,8 +22,7 @@ module OpenAI
22
22
  attr_accessor data_source_config: OpenAI::Models::EvalUpdateResponse::data_source_config
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.
@@ -46,8 +45,7 @@ module OpenAI
46
45
  # Configuration of data sources used in runs of the evaluation.
47
46
  # @param metadata
48
47
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
49
- # for storing additional information about the object in a structured format, and
50
- # querying for objects via API or the dashboard.
48
+ # for storing additional information about the object in a structured format.
51
49
  #
52
50
  # Keys are strings with a maximum length of 64 characters. Values are strings with
53
51
  # a maximum length of 512 characters.
@@ -101,8 +99,7 @@ module OpenAI
101
99
  attr_accessor type: :logs
102
100
 
103
101
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
104
- # for storing additional information about the object in a structured format, and
105
- # querying for objects via API or the dashboard.
102
+ # for storing additional information about the object in a structured format.
106
103
  #
107
104
  # Keys are strings with a maximum length of 64 characters. Values are strings with
108
105
  # a maximum length of 512 characters.
@@ -113,8 +110,7 @@ module OpenAI
113
110
  # [here](https://json-schema.org/).
114
111
  # @param metadata
115
112
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
116
- # for storing additional information about the object in a structured format, and
117
- # querying for objects via API or the dashboard.
113
+ # for storing additional information about the object in a structured format.
118
114
  #
119
115
  # Keys are strings with a maximum length of 64 characters. Values are strings with
120
116
  # a maximum length of 512 characters.
@@ -31,10 +31,10 @@ module OpenAI
31
31
  OpenAI::Models::Evals::CreateEvalCompletionsRunDataSource::input_messages
32
32
  ) -> OpenAI::Models::Evals::CreateEvalCompletionsRunDataSource::input_messages
33
33
 
34
- # The name of the model to use for generating completions (e.g. "o3-mini").
34
+ # The model to use to sample outputs with the Chat Completions API.
35
35
  attr_reader model: String?
36
36
 
37
- # The name of the model to use for generating completions (e.g. "o3-mini").
37
+ # The model to use to sample outputs with the Chat Completions API.
38
38
  def model=: (String) -> String
39
39
 
40
40
  attr_reader sampling_params: OpenAI::Evals::CreateEvalCompletionsRunDataSource::SamplingParams?
@@ -53,7 +53,7 @@ module OpenAI
53
53
  # `item.input_trajectory`), or a template with variable references to the `item`
54
54
  # namespace.
55
55
  # @param model
56
- # The name of the model to use for generating completions (e.g. "o3-mini").
56
+ # The model to use to sample outputs with the Chat Completions API.
57
57
  def initialize: (
58
58
  source: OpenAI::Models::Evals::CreateEvalCompletionsRunDataSource::source,
59
59
  type: OpenAI::Models::Evals::CreateEvalCompletionsRunDataSource::type_,
@@ -169,14 +169,13 @@ module OpenAI
169
169
  attr_accessor limit: Integer?
170
170
 
171
171
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
172
- # for storing additional information about the object in a structured format, and
173
- # querying for objects via API or the dashboard.
172
+ # for storing additional information about the object in a structured format.
174
173
  #
175
174
  # Keys are strings with a maximum length of 64 characters. Values are strings with
176
175
  # a maximum length of 512 characters.
177
176
  attr_accessor metadata: OpenAI::Models::metadata?
178
177
 
179
- # An optional model to filter by (e.g., 'gpt-6-astra').
178
+ # An optional model to filter by (e.g., 'gpt-4.1-mini-2025-04-14').
180
179
  attr_accessor model: String?
181
180
 
182
181
  # @param created_after
@@ -187,13 +186,12 @@ module OpenAI
187
186
  # An optional maximum number of items to return.
188
187
  # @param metadata
189
188
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
190
- # for storing additional information about the object in a structured format, and
191
- # querying for objects via API or the dashboard.
189
+ # for storing additional information about the object in a structured format.
192
190
  #
193
191
  # Keys are strings with a maximum length of 64 characters. Values are strings with
194
192
  # a maximum length of 512 characters.
195
193
  # @param model
196
- # An optional model to filter by (e.g., 'gpt-6-astra').
194
+ # An optional model to filter by (e.g., 'gpt-4.1-mini-2025-04-14').
197
195
  # @param type
198
196
  # The type of source. Always `stored_completions`.
199
197
  def initialize: (
@@ -36,8 +36,7 @@ module OpenAI
36
36
  attr_accessor eval_id: String
37
37
 
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.
@@ -79,8 +78,7 @@ module OpenAI
79
78
  # The identifier of the associated evaluation.
80
79
  # @param metadata
81
80
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
82
- # for storing additional information about the object in a structured format, and
83
- # querying for objects via API or the dashboard.
81
+ # for storing additional information about the object in a structured format.
84
82
  #
85
83
  # Keys are strings with a maximum length of 64 characters. Values are strings with
86
84
  # a maximum length of 512 characters.
@@ -172,10 +170,10 @@ module OpenAI
172
170
  OpenAI::Models::Evals::RunCancelResponse::DataSource::Responses::input_messages
173
171
  ) -> OpenAI::Models::Evals::RunCancelResponse::DataSource::Responses::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
  attr_reader model: String?
177
175
 
178
- # The name of the model to use for generating completions (e.g. "o3-mini").
176
+ # The model to use to sample outputs with the Responses API.
179
177
  def model=: (String) -> String
180
178
 
181
179
  attr_reader sampling_params: OpenAI::Models::Evals::RunCancelResponse::DataSource::Responses::SamplingParams?
@@ -192,7 +190,7 @@ module OpenAI
192
190
  # `item.input_trajectory`), or a template with variable references to the `item`
193
191
  # namespace.
194
192
  # @param model
195
- # The name of the model to use for generating completions (e.g. "o3-mini").
193
+ # The model to use to sample outputs with the Responses API.
196
194
  # @param type
197
195
  # The type of run data source. Always `responses`.
198
196
  def initialize: (
@@ -20,8 +20,7 @@ module OpenAI
20
20
  attr_accessor data_source: OpenAI::Models::Evals::RunCreateParams::data_source
21
21
 
22
22
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
23
- # for storing additional information about the object in a structured format, and
24
- # querying for objects via API or the dashboard.
23
+ # for storing additional information about the object in a structured format.
25
24
  #
26
25
  # Keys are strings with a maximum length of 64 characters. Values are strings with
27
26
  # a maximum length of 512 characters.
@@ -37,8 +36,7 @@ module OpenAI
37
36
  # Details about the run's data source.
38
37
  # @param metadata
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.
@@ -141,10 +139,10 @@ module OpenAI
141
139
  ) -> (OpenAI::Models::Evals::RunCreateParams::DataSource::CreateEvalResponsesRunDataSource::input_messages
142
140
  | { item_reference: String, type: :item_reference })
143
141
 
144
- # The name of the model to use for generating completions (e.g. "o3-mini").
142
+ # The model to use to sample outputs with the Responses API.
145
143
  attr_reader model: String?
146
144
 
147
- # The name of the model to use for generating completions (e.g. "o3-mini").
145
+ # The model to use to sample outputs with the Responses API.
148
146
  def model=: (String) -> String
149
147
 
150
148
  attr_reader sampling_params: OpenAI::Evals::RunCreateParams::DataSource::CreateEvalResponsesRunDataSource::SamplingParams?
@@ -163,7 +161,7 @@ module OpenAI
163
161
  # `item.input_trajectory`), or a template with variable references to the `item`
164
162
  # namespace.
165
163
  # @param model
166
- # The name of the model to use for generating completions (e.g. "o3-mini").
164
+ # The model to use to sample outputs with the Responses API.
167
165
  def initialize: (
168
166
  source: OpenAI::Models::Evals::RunCreateParams::DataSource::CreateEvalResponsesRunDataSource::source
169
167
  | {
@@ -36,8 +36,7 @@ module OpenAI
36
36
  attr_accessor eval_id: String
37
37
 
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.
@@ -79,8 +78,7 @@ module OpenAI
79
78
  # The identifier of the associated evaluation.
80
79
  # @param metadata
81
80
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
82
- # for storing additional information about the object in a structured format, and
83
- # querying for objects via API or the dashboard.
81
+ # for storing additional information about the object in a structured format.
84
82
  #
85
83
  # Keys are strings with a maximum length of 64 characters. Values are strings with
86
84
  # a maximum length of 512 characters.
@@ -172,10 +170,10 @@ module OpenAI
172
170
  OpenAI::Models::Evals::RunCreateResponse::DataSource::Responses::input_messages
173
171
  ) -> OpenAI::Models::Evals::RunCreateResponse::DataSource::Responses::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
  attr_reader model: String?
177
175
 
178
- # The name of the model to use for generating completions (e.g. "o3-mini").
176
+ # The model to use to sample outputs with the Responses API.
179
177
  def model=: (String) -> String
180
178
 
181
179
  attr_reader sampling_params: OpenAI::Models::Evals::RunCreateResponse::DataSource::Responses::SamplingParams?
@@ -192,7 +190,7 @@ module OpenAI
192
190
  # `item.input_trajectory`), or a template with variable references to the `item`
193
191
  # namespace.
194
192
  # @param model
195
- # The name of the model to use for generating completions (e.g. "o3-mini").
193
+ # The model to use to sample outputs with the Responses API.
196
194
  # @param type
197
195
  # The type of run data source. Always `responses`.
198
196
  def initialize: (
@@ -36,8 +36,7 @@ module OpenAI
36
36
  attr_accessor eval_id: String
37
37
 
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.
@@ -79,8 +78,7 @@ module OpenAI
79
78
  # The identifier of the associated evaluation.
80
79
  # @param metadata
81
80
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
82
- # for storing additional information about the object in a structured format, and
83
- # querying for objects via API or the dashboard.
81
+ # for storing additional information about the object in a structured format.
84
82
  #
85
83
  # Keys are strings with a maximum length of 64 characters. Values are strings with
86
84
  # a maximum length of 512 characters.
@@ -172,10 +170,10 @@ module OpenAI
172
170
  OpenAI::Models::Evals::RunListResponse::DataSource::Responses::input_messages
173
171
  ) -> OpenAI::Models::Evals::RunListResponse::DataSource::Responses::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
  attr_reader model: String?
177
175
 
178
- # The name of the model to use for generating completions (e.g. "o3-mini").
176
+ # The model to use to sample outputs with the Responses API.
179
177
  def model=: (String) -> String
180
178
 
181
179
  attr_reader sampling_params: OpenAI::Models::Evals::RunListResponse::DataSource::Responses::SamplingParams?
@@ -192,7 +190,7 @@ module OpenAI
192
190
  # `item.input_trajectory`), or a template with variable references to the `item`
193
191
  # namespace.
194
192
  # @param model
195
- # The name of the model to use for generating completions (e.g. "o3-mini").
193
+ # The model to use to sample outputs with the Responses API.
196
194
  # @param type
197
195
  # The type of run data source. Always `responses`.
198
196
  def initialize: (
@@ -36,8 +36,7 @@ module OpenAI
36
36
  attr_accessor eval_id: String
37
37
 
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.
@@ -79,8 +78,7 @@ module OpenAI
79
78
  # The identifier of the associated evaluation.
80
79
  # @param metadata
81
80
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
82
- # for storing additional information about the object in a structured format, and
83
- # querying for objects via API or the dashboard.
81
+ # for storing additional information about the object in a structured format.
84
82
  #
85
83
  # Keys are strings with a maximum length of 64 characters. Values are strings with
86
84
  # a maximum length of 512 characters.
@@ -172,10 +170,10 @@ module OpenAI
172
170
  OpenAI::Models::Evals::RunRetrieveResponse::DataSource::Responses::input_messages
173
171
  ) -> OpenAI::Models::Evals::RunRetrieveResponse::DataSource::Responses::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
  attr_reader model: String?
177
175
 
178
- # The name of the model to use for generating completions (e.g. "o3-mini").
176
+ # The model to use to sample outputs with the Responses API.
179
177
  def model=: (String) -> String
180
178
 
181
179
  attr_reader sampling_params: OpenAI::Models::Evals::RunRetrieveResponse::DataSource::Responses::SamplingParams?
@@ -192,7 +190,7 @@ module OpenAI
192
190
  # `item.input_trajectory`), or a template with variable references to the `item`
193
191
  # namespace.
194
192
  # @param model
195
- # The name of the model to use for generating completions (e.g. "o3-mini").
193
+ # The model to use to sample outputs with the Responses API.
196
194
  # @param type
197
195
  # The type of run data source. Always `responses`.
198
196
  def initialize: (
@@ -91,8 +91,7 @@ module OpenAI
91
91
  attr_accessor integrations: ::Array[OpenAI::FineTuning::FineTuningJobWandbIntegrationObject]?
92
92
 
93
93
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
94
- # for storing additional information about the object in a structured format, and
95
- # querying for objects via API or the dashboard.
94
+ # for storing additional information about the object in a structured format.
96
95
  #
97
96
  # Keys are strings with a maximum length of 64 characters. Values are strings with
98
97
  # a maximum length of 512 characters.
@@ -152,8 +151,7 @@ module OpenAI
152
151
  # A list of integrations to enable for this fine-tuning job.
153
152
  # @param metadata
154
153
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
155
- # for storing additional information about the object in a structured format, and
156
- # querying for objects via API or the dashboard.
154
+ # for storing additional information about the object in a structured format.
157
155
  #
158
156
  # Keys are strings with a maximum length of 64 characters. Values are strings with
159
157
  # a maximum length of 512 characters.
@@ -58,8 +58,7 @@ module OpenAI
58
58
  attr_accessor integrations: ::Array[OpenAI::FineTuning::JobCreateParams::Integration]?
59
59
 
60
60
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
61
- # for storing additional information about the object in a structured format, and
62
- # querying for objects via API or the dashboard.
61
+ # for storing additional information about the object in a structured format.
63
62
  #
64
63
  # Keys are strings with a maximum length of 64 characters. Values are strings with
65
64
  # 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
  attr_accessor suffix: String?
87
86
 
88
87
  # The ID of an uploaded file that contains validation data.
@@ -130,8 +129,7 @@ module OpenAI
130
129
  # A list of integrations to enable for your fine-tuning job.
131
130
  # @param metadata
132
131
  # Set of 16 key-value pairs that can be attached to an object. This can be useful
133
- # for storing additional information about the object in a structured format, and
134
- # querying for objects via API or the dashboard.
132
+ # for storing additional information about the object in a structured format.
135
133
  #
136
134
  # Keys are strings with a maximum length of 64 characters. Values are strings with
137
135
  # a maximum length of 512 characters.
@@ -146,7 +144,7 @@ module OpenAI
146
144
  # name.
147
145
  #
148
146
  # For example, a `suffix` of "custom-model-name" would produce a model name like
149
- # `ft:gpt-4o-mini:openai:custom-model-name:7p4lURel`.
147
+ # `ft:gpt-4.1-mini-2025-04-14:openai:custom-model-name:7p4lURel`.
150
148
  # @param validation_file
151
149
  # The ID of an uploaded file that contains validation data.
152
150
  #
@@ -189,6 +187,7 @@ module OpenAI
189
187
 
190
188
  type model =
191
189
  String
190
+ | :"gpt-4.1-mini-2025-04-14"
192
191
  | :"babbage-002"
193
192
  | :"davinci-002"
194
193
  | :"gpt-3.5-turbo"
@@ -199,6 +198,7 @@ module OpenAI
199
198
 
200
199
  def self?.variants: -> ::Array[OpenAI::Models::FineTuning::JobCreateParams::model]
201
200
 
201
+ GPT_4_1_MINI_2025_04_14: :"gpt-4.1-mini-2025-04-14"
202
202
  BABBAGE_002: :"babbage-002"
203
203
  DAVINCI_002: :"davinci-002"
204
204
  GPT_3_5_TURBO: :"gpt-3.5-turbo"