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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +35 -0
- data/README.md +4 -4
- data/lib/openai/models/admin/organization/organization_spend_limit.rb +38 -1
- data/lib/openai/models/admin/organization/projects/project_spend_limit.rb +38 -1
- data/lib/openai/models/admin/organization/projects/spend_limit_update_params.rb +51 -1
- data/lib/openai/models/admin/organization/spend_limit_update_params.rb +49 -1
- data/lib/openai/models/admin/organization/usage_costs_params.rb +2 -2
- data/lib/openai/models/all_models.rb +4 -0
- data/lib/openai/models/batch.rb +4 -6
- data/lib/openai/models/batch_create_params.rb +2 -4
- data/lib/openai/models/beta/agents/automation_target_param.rb +2 -2
- data/lib/openai/models/beta/agents/session_create_params.rb +2 -2
- data/lib/openai/models/beta/agents/session_update_params.rb +12 -1
- data/lib/openai/models/beta/beta_compacted_response.rb +19 -1
- data/lib/openai/models/beta/beta_container_auto.rb +8 -2
- data/lib/openai/models/beta/beta_response.rb +23 -13
- data/lib/openai/models/beta/beta_responses_client_event.rb +39 -13
- data/lib/openai/models/beta/response_compact_params.rb +31 -10
- data/lib/openai/models/beta/response_create_params.rb +23 -13
- data/lib/openai/models/chat/chat_completion.rb +2 -4
- data/lib/openai/models/chat/completion_create_params.rb +15 -17
- data/lib/openai/models/chat/completion_update_params.rb +2 -4
- data/lib/openai/models/completion_create_params.rb +3 -3
- data/lib/openai/models/conversations/conversation_create_params.rb +12 -5
- data/lib/openai/models/eval_create_params.rb +2 -4
- data/lib/openai/models/eval_create_response.rb +5 -9
- data/lib/openai/models/eval_list_response.rb +5 -9
- data/lib/openai/models/eval_retrieve_response.rb +5 -9
- data/lib/openai/models/eval_stored_completions_data_source_config.rb +2 -4
- data/lib/openai/models/eval_update_params.rb +2 -4
- data/lib/openai/models/eval_update_response.rb +5 -9
- data/lib/openai/models/evals/create_eval_completions_run_data_source.rb +6 -8
- data/lib/openai/models/evals/run_cancel_response.rb +4 -6
- data/lib/openai/models/evals/run_create_params.rb +4 -6
- data/lib/openai/models/evals/run_create_response.rb +4 -6
- data/lib/openai/models/evals/run_list_response.rb +4 -6
- data/lib/openai/models/evals/run_retrieve_response.rb +4 -6
- data/lib/openai/models/fine_tuning/fine_tuning_job.rb +2 -4
- data/lib/openai/models/fine_tuning/job_create_params.rb +7 -6
- data/lib/openai/models/live/fork_server_event.rb +4 -4
- data/lib/openai/models/live/media_session_config.rb +15 -16
- data/lib/openai/models/live/responses_delegation_config.rb +8 -2
- data/lib/openai/models/live/responses_delegation_update_config.rb +8 -2
- data/lib/openai/models/live/server_event.rb +4 -4
- data/lib/openai/models/live/sideband_server_event.rb +4 -4
- data/lib/openai/models/realtime/realtime_audio_config_input.rb +12 -9
- data/lib/openai/models/realtime/realtime_response.rb +2 -4
- data/lib/openai/models/realtime/realtime_response_create_params.rb +2 -4
- data/lib/openai/models/responses/compacted_response.rb +19 -1
- data/lib/openai/models/responses/container_auto.rb +8 -2
- data/lib/openai/models/responses/response.rb +8 -10
- data/lib/openai/models/responses/response_compact_params.rb +31 -10
- data/lib/openai/models/responses/response_create_params.rb +8 -10
- data/lib/openai/models/responses/responses_client_event.rb +8 -10
- data/lib/openai/models/responses_model.rb +4 -0
- data/lib/openai/models/vector_store.rb +2 -4
- data/lib/openai/models/vector_store_create_params.rb +2 -4
- data/lib/openai/models/vector_store_update_params.rb +2 -4
- data/lib/openai/resources/admin/organization/projects/spend_limit.rb +5 -1
- data/lib/openai/resources/admin/organization/spend_limit.rb +5 -1
- data/lib/openai/resources/admin/organization/usage.rb +1 -1
- data/lib/openai/resources/batches.rb +1 -2
- data/lib/openai/resources/beta/agents/sessions/events.rb +7 -2
- data/lib/openai/resources/beta/agents/sessions/traces.rb +4 -2
- data/lib/openai/resources/beta/agents/sessions.rb +8 -4
- data/lib/openai/resources/beta/responses.rb +9 -6
- data/lib/openai/resources/chat/completions.rb +11 -14
- data/lib/openai/resources/completions.rb +2 -2
- data/lib/openai/resources/conversations.rb +5 -3
- data/lib/openai/resources/evals/runs.rb +1 -2
- data/lib/openai/resources/evals.rb +2 -4
- data/lib/openai/resources/fine_tuning/jobs.rb +2 -3
- data/lib/openai/resources/responses.rb +15 -14
- data/lib/openai/resources/vector_stores.rb +2 -4
- data/lib/openai/version.rb +1 -1
- data/rbi/openai/models/admin/organization/organization_spend_limit.rbi +68 -1
- data/rbi/openai/models/admin/organization/projects/project_spend_limit.rbi +68 -1
- data/rbi/openai/models/admin/organization/projects/spend_limit_update_params.rbi +87 -0
- data/rbi/openai/models/admin/organization/spend_limit_update_params.rbi +85 -0
- data/rbi/openai/models/admin/organization/usage_costs_params.rbi +2 -2
- data/rbi/openai/models/all_models.rbi +7 -0
- data/rbi/openai/models/batch.rbi +4 -6
- data/rbi/openai/models/batch_create_params.rbi +2 -4
- data/rbi/openai/models/beta/agents/automation_target_param.rbi +2 -2
- data/rbi/openai/models/beta/agents/session_create_params.rbi +2 -2
- data/rbi/openai/models/beta/agents/session_update_params.rbi +12 -0
- data/rbi/openai/models/beta/beta_compacted_response.rbi +24 -1
- data/rbi/openai/models/beta/beta_container_auto.rbi +8 -2
- data/rbi/openai/models/beta/beta_response.rbi +15 -13
- data/rbi/openai/models/beta/beta_responses_client_event.rbi +27 -13
- data/rbi/openai/models/beta/response_compact_params.rbi +35 -9
- data/rbi/openai/models/beta/response_create_params.rbi +27 -13
- data/rbi/openai/models/chat/chat_completion.rbi +2 -4
- data/rbi/openai/models/chat/completion_create_params.rbi +14 -16
- data/rbi/openai/models/chat/completion_update_params.rbi +2 -4
- data/rbi/openai/models/completion_create_params.rbi +3 -3
- data/rbi/openai/models/conversations/conversation_create_params.rbi +12 -4
- data/rbi/openai/models/eval_create_params.rbi +2 -4
- data/rbi/openai/models/eval_create_response.rbi +5 -9
- data/rbi/openai/models/eval_list_response.rbi +5 -9
- data/rbi/openai/models/eval_retrieve_response.rbi +5 -9
- data/rbi/openai/models/eval_stored_completions_data_source_config.rbi +2 -4
- data/rbi/openai/models/eval_update_params.rbi +2 -4
- data/rbi/openai/models/eval_update_response.rbi +5 -9
- data/rbi/openai/models/evals/create_eval_completions_run_data_source.rbi +6 -8
- data/rbi/openai/models/evals/run_cancel_response.rbi +4 -6
- data/rbi/openai/models/evals/run_create_params.rbi +4 -6
- data/rbi/openai/models/evals/run_create_response.rbi +4 -6
- data/rbi/openai/models/evals/run_list_response.rbi +4 -6
- data/rbi/openai/models/evals/run_retrieve_response.rbi +4 -6
- data/rbi/openai/models/fine_tuning/fine_tuning_job.rbi +2 -4
- data/rbi/openai/models/fine_tuning/job_create_params.rbi +8 -6
- data/rbi/openai/models/live/fork_server_event.rbi +3 -3
- data/rbi/openai/models/live/media_session_config.rbi +15 -16
- data/rbi/openai/models/live/responses_delegation_config.rbi +8 -2
- data/rbi/openai/models/live/responses_delegation_update_config.rbi +8 -2
- data/rbi/openai/models/live/server_event.rbi +3 -3
- data/rbi/openai/models/live/sideband_server_event.rbi +3 -3
- data/rbi/openai/models/realtime/realtime_audio_config_input.rbi +12 -9
- data/rbi/openai/models/realtime/realtime_response.rbi +2 -4
- data/rbi/openai/models/realtime/realtime_response_create_params.rbi +2 -4
- data/rbi/openai/models/responses/compacted_response.rbi +24 -1
- data/rbi/openai/models/responses/container_auto.rbi +8 -2
- data/rbi/openai/models/responses/response.rbi +8 -10
- data/rbi/openai/models/responses/response_compact_params.rbi +35 -9
- data/rbi/openai/models/responses/response_create_params.rbi +8 -10
- data/rbi/openai/models/responses/responses_client_event.rbi +8 -10
- data/rbi/openai/models/responses_model.rbi +16 -0
- data/rbi/openai/models/vector_store.rbi +2 -4
- data/rbi/openai/models/vector_store_create_params.rbi +2 -4
- data/rbi/openai/models/vector_store_update_params.rbi +2 -4
- data/rbi/openai/resources/admin/organization/projects/spend_limit.rbi +6 -0
- data/rbi/openai/resources/admin/organization/spend_limit.rbi +6 -0
- data/rbi/openai/resources/admin/organization/usage.rbi +1 -1
- data/rbi/openai/resources/batches.rbi +1 -2
- data/rbi/openai/resources/beta/agents/sessions/events.rbi +7 -2
- data/rbi/openai/resources/beta/agents/sessions/traces.rbi +4 -2
- data/rbi/openai/resources/beta/agents/sessions.rbi +7 -3
- data/rbi/openai/resources/beta/responses.rbi +8 -5
- data/rbi/openai/resources/chat/completions.rbi +11 -14
- data/rbi/openai/resources/completions.rbi +2 -2
- data/rbi/openai/resources/conversations.rbi +4 -2
- data/rbi/openai/resources/evals/runs.rbi +1 -2
- data/rbi/openai/resources/evals.rbi +2 -4
- data/rbi/openai/resources/fine_tuning/jobs.rbi +2 -3
- data/rbi/openai/resources/responses.rbi +14 -13
- data/rbi/openai/resources/vector_stores.rbi +2 -4
- data/sig/openai/models/admin/organization/organization_spend_limit.rbs +42 -2
- data/sig/openai/models/admin/organization/projects/project_spend_limit.rbs +42 -2
- data/sig/openai/models/admin/organization/projects/spend_limit_update_params.rbs +48 -0
- data/sig/openai/models/admin/organization/spend_limit_update_params.rbs +48 -0
- data/sig/openai/models/admin/organization/usage_costs_params.rbs +3 -3
- data/sig/openai/models/all_models.rbs +8 -0
- data/sig/openai/models/batch.rbs +5 -7
- data/sig/openai/models/batch_create_params.rbs +2 -4
- data/sig/openai/models/beta/agents/automation_target_param.rbs +2 -2
- data/sig/openai/models/beta/agents/session_create_params.rbs +2 -2
- data/sig/openai/models/beta/agents/session_update_params.rbs +10 -0
- data/sig/openai/models/beta/beta_compacted_response.rbs +21 -2
- data/sig/openai/models/beta/beta_container_auto.rbs +12 -3
- data/sig/openai/models/beta/beta_response.rbs +16 -10
- data/sig/openai/models/beta/beta_responses_client_event.rbs +19 -13
- data/sig/openai/models/beta/response_compact_params.rbs +22 -6
- data/sig/openai/models/beta/response_create_params.rbs +19 -13
- data/sig/openai/models/chat/chat_completion.rbs +2 -4
- data/sig/openai/models/chat/completion_create_params.rbs +10 -12
- data/sig/openai/models/chat/completion_update_params.rbs +2 -4
- data/sig/openai/models/completion_create_params.rbs +2 -2
- data/sig/openai/models/conversations/conversation_create_params.rbs +10 -4
- data/sig/openai/models/eval_create_params.rbs +2 -4
- data/sig/openai/models/eval_create_response.rbs +4 -8
- data/sig/openai/models/eval_list_response.rbs +4 -8
- data/sig/openai/models/eval_retrieve_response.rbs +4 -8
- data/sig/openai/models/eval_stored_completions_data_source_config.rbs +2 -4
- data/sig/openai/models/eval_update_params.rbs +2 -4
- data/sig/openai/models/eval_update_response.rbs +4 -8
- data/sig/openai/models/evals/create_eval_completions_run_data_source.rbs +7 -9
- data/sig/openai/models/evals/run_cancel_response.rbs +5 -7
- data/sig/openai/models/evals/run_create_params.rbs +5 -7
- data/sig/openai/models/evals/run_create_response.rbs +5 -7
- data/sig/openai/models/evals/run_list_response.rbs +5 -7
- data/sig/openai/models/evals/run_retrieve_response.rbs +5 -7
- data/sig/openai/models/fine_tuning/fine_tuning_job.rbs +2 -4
- data/sig/openai/models/fine_tuning/job_create_params.rbs +6 -6
- data/sig/openai/models/live/media_session_config.rbs +21 -21
- data/sig/openai/models/live/responses_delegation_config.rbs +8 -2
- data/sig/openai/models/live/responses_delegation_update_config.rbs +8 -2
- data/sig/openai/models/realtime/realtime_audio_config_input.rbs +12 -9
- data/sig/openai/models/realtime/realtime_response.rbs +2 -4
- data/sig/openai/models/realtime/realtime_response_create_params.rbs +2 -4
- data/sig/openai/models/responses/compacted_response.rbs +21 -2
- data/sig/openai/models/responses/container_auto.rbs +12 -3
- data/sig/openai/models/responses/response.rbs +8 -10
- data/sig/openai/models/responses/response_compact_params.rbs +22 -6
- data/sig/openai/models/responses/response_create_params.rbs +11 -13
- data/sig/openai/models/responses/responses_client_event.rbs +11 -13
- data/sig/openai/models/responses_model.rbs +8 -0
- data/sig/openai/models/vector_store.rbs +2 -4
- data/sig/openai/models/vector_store_create_params.rbs +2 -4
- data/sig/openai/models/vector_store_update_params.rbs +2 -4
- data/sig/openai/resources/admin/organization/projects/spend_limit.rbs +1 -0
- data/sig/openai/resources/admin/organization/spend_limit.rbs +1 -0
- data/sig/openai/resources/beta/agents/sessions.rbs +1 -0
- data/sig/openai/resources/beta/responses.rbs +1 -0
- data/sig/openai/resources/conversations.rbs +1 -0
- data/sig/openai/resources/responses.rbs +1 -0
- metadata +1 -1
|
@@ -114,17 +114,16 @@ module OpenAI
|
|
|
114
114
|
attr_accessor :max_tool_calls
|
|
115
115
|
|
|
116
116
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
117
|
-
# for storing additional information about the object in a structured format
|
|
118
|
-
# querying for objects via API or the dashboard.
|
|
117
|
+
# for storing additional information about the object in a structured format.
|
|
119
118
|
#
|
|
120
119
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
121
120
|
# a maximum length of 512 characters.
|
|
122
121
|
sig { returns(T.nilable(T::Hash[Symbol, String])) }
|
|
123
122
|
attr_accessor :metadata
|
|
124
123
|
|
|
125
|
-
# Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a
|
|
126
|
-
# range of models with different capabilities, performance characteristics,
|
|
127
|
-
# price points. Refer to the
|
|
124
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
125
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
126
|
+
# and price points. Refer to the
|
|
128
127
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
129
128
|
# compare available models.
|
|
130
129
|
sig { returns(T.nilable(T.any(OpenAI::Beta::ResponseCreateParams::Model::OrSymbol, String))) }
|
|
@@ -625,16 +624,15 @@ module OpenAI
|
|
|
625
624
|
max_tool_calls: nil,
|
|
626
625
|
|
|
627
626
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
628
|
-
# for storing additional information about the object in a structured format
|
|
629
|
-
# querying for objects via API or the dashboard.
|
|
627
|
+
# for storing additional information about the object in a structured format.
|
|
630
628
|
#
|
|
631
629
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
632
630
|
# a maximum length of 512 characters.
|
|
633
631
|
metadata: nil,
|
|
634
632
|
|
|
635
|
-
# Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a
|
|
636
|
-
# range of models with different capabilities, performance characteristics,
|
|
637
|
-
# price points. Refer to the
|
|
633
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
634
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
635
|
+
# and price points. Refer to the
|
|
638
636
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
639
637
|
# compare available models.
|
|
640
638
|
model: nil,
|
|
@@ -1223,9 +1221,9 @@ module OpenAI
|
|
|
1223
1221
|
|
|
1224
1222
|
end
|
|
1225
1223
|
|
|
1226
|
-
# Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a
|
|
1227
|
-
# range of models with different capabilities, performance characteristics,
|
|
1228
|
-
# price points. Refer to the
|
|
1224
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
1225
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
1226
|
+
# and price points. Refer to the
|
|
1229
1227
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
1230
1228
|
# compare available models.
|
|
1231
1229
|
module Model
|
|
@@ -1439,6 +1437,22 @@ module OpenAI
|
|
|
1439
1437
|
)
|
|
1440
1438
|
GPT_6_ROSALIND = T.let(:"gpt-6-rosalind", OpenAI::Beta::ResponseCreateParams::Model::TaggedSymbol)
|
|
1441
1439
|
GPT_6_2_ASTRA_LAW = T.let(:"gpt-6.2-astra-law", OpenAI::Beta::ResponseCreateParams::Model::TaggedSymbol)
|
|
1440
|
+
GPT_6_ASTRA_HEALTHCARE = T.let(
|
|
1441
|
+
:"gpt-6-astra-healthcare",
|
|
1442
|
+
OpenAI::Beta::ResponseCreateParams::Model::TaggedSymbol
|
|
1443
|
+
)
|
|
1444
|
+
GPT_6_1_SOL_HEALTHCARE = T.let(
|
|
1445
|
+
:"gpt-6.1-sol-healthcare",
|
|
1446
|
+
OpenAI::Beta::ResponseCreateParams::Model::TaggedSymbol
|
|
1447
|
+
)
|
|
1448
|
+
GPT_6_2_ASTRA_HEALTHCARE = T.let(
|
|
1449
|
+
:"gpt-6.2-astra-healthcare",
|
|
1450
|
+
OpenAI::Beta::ResponseCreateParams::Model::TaggedSymbol
|
|
1451
|
+
)
|
|
1452
|
+
GPT_6_2_SOL_HEALTHCARE = T.let(
|
|
1453
|
+
:"gpt-6.2-sol-healthcare",
|
|
1454
|
+
OpenAI::Beta::ResponseCreateParams::Model::TaggedSymbol
|
|
1455
|
+
)
|
|
1442
1456
|
|
|
1443
1457
|
end
|
|
1444
1458
|
|
|
@@ -38,8 +38,7 @@ module OpenAI
|
|
|
38
38
|
attr_accessor :object
|
|
39
39
|
|
|
40
40
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
41
|
-
# for storing additional information about the object in a structured format
|
|
42
|
-
# querying for objects via API or the dashboard.
|
|
41
|
+
# for storing additional information about the object in a structured format.
|
|
43
42
|
#
|
|
44
43
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
45
44
|
# a maximum length of 512 characters.
|
|
@@ -139,8 +138,7 @@ module OpenAI
|
|
|
139
138
|
model:,
|
|
140
139
|
|
|
141
140
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
142
|
-
# for storing additional information about the object in a structured format
|
|
143
|
-
# querying for objects via API or the dashboard.
|
|
141
|
+
# for storing additional information about the object in a structured format.
|
|
144
142
|
#
|
|
145
143
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
146
144
|
# a maximum length of 512 characters.
|
|
@@ -39,9 +39,9 @@ module OpenAI
|
|
|
39
39
|
}
|
|
40
40
|
attr_accessor :messages
|
|
41
41
|
|
|
42
|
-
# Model ID used to generate the response, like `gpt-6-astra
|
|
43
|
-
#
|
|
44
|
-
#
|
|
42
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
43
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
44
|
+
# and price points. Refer to the
|
|
45
45
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
46
46
|
# compare available models.
|
|
47
47
|
sig { returns(T.any(String, OpenAI::ChatModel::OrSymbol)) }
|
|
@@ -142,8 +142,7 @@ module OpenAI
|
|
|
142
142
|
attr_accessor :max_tokens
|
|
143
143
|
|
|
144
144
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
145
|
-
# for storing additional information about the object in a structured format
|
|
146
|
-
# querying for objects via API or the dashboard.
|
|
145
|
+
# for storing additional information about the object in a structured format.
|
|
147
146
|
#
|
|
148
147
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
149
148
|
# a maximum length of 512 characters.
|
|
@@ -332,7 +331,7 @@ module OpenAI
|
|
|
332
331
|
sig { returns(T.nilable(OpenAI::Chat::CompletionCreateParams::ServiceTier::OrSymbol)) }
|
|
333
332
|
attr_accessor :service_tier
|
|
334
333
|
|
|
335
|
-
# Not supported with
|
|
334
|
+
# Not supported with reasoning models `o3` and `o4-mini`.
|
|
336
335
|
#
|
|
337
336
|
# Up to 4 sequences where the API will stop generating further tokens. The
|
|
338
337
|
# returned text will not contain the stop sequence.
|
|
@@ -582,9 +581,9 @@ module OpenAI
|
|
|
582
581
|
# [audio](https://developers.openai.com/api/docs/guides/audio).
|
|
583
582
|
messages:,
|
|
584
583
|
|
|
585
|
-
# Model ID used to generate the response, like `gpt-6-astra
|
|
586
|
-
#
|
|
587
|
-
#
|
|
584
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
585
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
586
|
+
# and price points. Refer to the
|
|
588
587
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
589
588
|
# compare available models.
|
|
590
589
|
model:,
|
|
@@ -650,8 +649,7 @@ module OpenAI
|
|
|
650
649
|
max_tokens: nil,
|
|
651
650
|
|
|
652
651
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
653
|
-
# for storing additional information about the object in a structured format
|
|
654
|
-
# querying for objects via API or the dashboard.
|
|
652
|
+
# for storing additional information about the object in a structured format.
|
|
655
653
|
#
|
|
656
654
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
657
655
|
# a maximum length of 512 characters.
|
|
@@ -789,7 +787,7 @@ module OpenAI
|
|
|
789
787
|
# parameter.
|
|
790
788
|
service_tier: nil,
|
|
791
789
|
|
|
792
|
-
# Not supported with
|
|
790
|
+
# Not supported with reasoning models `o3` and `o4-mini`.
|
|
793
791
|
#
|
|
794
792
|
# Up to 4 sequences where the API will stop generating further tokens. The
|
|
795
793
|
# returned text will not contain the stop sequence.
|
|
@@ -936,9 +934,9 @@ module OpenAI
|
|
|
936
934
|
def to_hash
|
|
937
935
|
end
|
|
938
936
|
|
|
939
|
-
# Model ID used to generate the response, like `gpt-6-astra
|
|
940
|
-
#
|
|
941
|
-
#
|
|
937
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
938
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
939
|
+
# and price points. Refer to the
|
|
942
940
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
943
941
|
# compare available models.
|
|
944
942
|
module Model
|
|
@@ -1547,7 +1545,7 @@ module OpenAI
|
|
|
1547
1545
|
end
|
|
1548
1546
|
end
|
|
1549
1547
|
|
|
1550
|
-
# Not supported with
|
|
1548
|
+
# Not supported with reasoning models `o3` and `o4-mini`.
|
|
1551
1549
|
#
|
|
1552
1550
|
# Up to 4 sequences where the API will stop generating further tokens. The
|
|
1553
1551
|
# returned text will not contain the stop sequence.
|
|
@@ -21,8 +21,7 @@ module OpenAI
|
|
|
21
21
|
attr_accessor :completion_id
|
|
22
22
|
|
|
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
|
|
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.
|
|
@@ -45,8 +44,7 @@ module OpenAI
|
|
|
45
44
|
completion_id:,
|
|
46
45
|
|
|
47
46
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
48
|
-
# for storing additional information about the object in a structured format
|
|
49
|
-
# querying for objects via API or the dashboard.
|
|
47
|
+
# for storing additional information about the object in a structured format.
|
|
50
48
|
#
|
|
51
49
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
52
50
|
# a maximum length of 512 characters.
|
|
@@ -117,7 +117,7 @@ module OpenAI
|
|
|
117
117
|
sig { returns(T.nilable(Integer)) }
|
|
118
118
|
attr_accessor :seed
|
|
119
119
|
|
|
120
|
-
# Not supported with
|
|
120
|
+
# Not supported with reasoning models `o3` and `o4-mini`.
|
|
121
121
|
#
|
|
122
122
|
# Up to 4 sequences where the API will stop generating further tokens. The
|
|
123
123
|
# returned text will not contain the stop sequence.
|
|
@@ -296,7 +296,7 @@ module OpenAI
|
|
|
296
296
|
# response parameter to monitor changes in the backend.
|
|
297
297
|
seed: nil,
|
|
298
298
|
|
|
299
|
-
# Not supported with
|
|
299
|
+
# Not supported with reasoning models `o3` and `o4-mini`.
|
|
300
300
|
#
|
|
301
301
|
# Up to 4 sequences where the API will stop generating further tokens. The
|
|
302
302
|
# returned text will not contain the stop sequence.
|
|
@@ -418,7 +418,7 @@ module OpenAI
|
|
|
418
418
|
|
|
419
419
|
end
|
|
420
420
|
|
|
421
|
-
# Not supported with
|
|
421
|
+
# Not supported with reasoning models `o3` and `o4-mini`.
|
|
422
422
|
#
|
|
423
423
|
# Up to 4 sequences where the API will stop generating further tokens. The
|
|
424
424
|
# returned text will not contain the stop sequence.
|
|
@@ -65,14 +65,17 @@ module OpenAI
|
|
|
65
65
|
attr_accessor :items
|
|
66
66
|
|
|
67
67
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
68
|
-
# for storing additional information about the object in a structured format
|
|
69
|
-
# querying for objects via API or the dashboard.
|
|
68
|
+
# for storing additional information about the object in a structured format.
|
|
70
69
|
#
|
|
71
70
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
72
71
|
# a maximum length of 512 characters.
|
|
73
72
|
sig { returns(T.nilable(T::Hash[Symbol, String])) }
|
|
74
73
|
attr_accessor :metadata
|
|
75
74
|
|
|
75
|
+
# A stable identifier used for safety monitoring and abuse detection.
|
|
76
|
+
sig { returns(T.nilable(String)) }
|
|
77
|
+
attr_accessor :safety_identifier
|
|
78
|
+
|
|
76
79
|
sig do
|
|
77
80
|
params(
|
|
78
81
|
|
|
@@ -118,6 +121,8 @@ module OpenAI
|
|
|
118
121
|
|
|
119
122
|
metadata: T.nilable(T::Hash[Symbol, String]),
|
|
120
123
|
|
|
124
|
+
safety_identifier: T.nilable(String),
|
|
125
|
+
|
|
121
126
|
request_options: OpenAI::RequestOptions::OrHash
|
|
122
127
|
)
|
|
123
128
|
.returns(T.attached_class)
|
|
@@ -129,13 +134,15 @@ module OpenAI
|
|
|
129
134
|
items: nil,
|
|
130
135
|
|
|
131
136
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
132
|
-
# for storing additional information about the object in a structured format
|
|
133
|
-
# querying for objects via API or the dashboard.
|
|
137
|
+
# for storing additional information about the object in a structured format.
|
|
134
138
|
#
|
|
135
139
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
136
140
|
# a maximum length of 512 characters.
|
|
137
141
|
metadata: nil,
|
|
138
142
|
|
|
143
|
+
# A stable identifier used for safety monitoring and abuse detection.
|
|
144
|
+
safety_identifier: nil,
|
|
145
|
+
|
|
139
146
|
request_options: {}
|
|
140
147
|
)
|
|
141
148
|
end
|
|
@@ -183,6 +190,7 @@ module OpenAI
|
|
|
183
190
|
]
|
|
184
191
|
),
|
|
185
192
|
metadata: T.nilable(T::Hash[Symbol, String]),
|
|
193
|
+
safety_identifier: T.nilable(String),
|
|
186
194
|
request_options: OpenAI::RequestOptions
|
|
187
195
|
}
|
|
188
196
|
)
|
|
@@ -48,8 +48,7 @@ module OpenAI
|
|
|
48
48
|
attr_accessor :testing_criteria
|
|
49
49
|
|
|
50
50
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
51
|
-
# for storing additional information about the object in a structured format
|
|
52
|
-
# querying for objects via API or the dashboard.
|
|
51
|
+
# for storing additional information about the object in a structured format.
|
|
53
52
|
#
|
|
54
53
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
55
54
|
# a maximum length of 512 characters.
|
|
@@ -103,8 +102,7 @@ module OpenAI
|
|
|
103
102
|
testing_criteria:,
|
|
104
103
|
|
|
105
104
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
106
|
-
# for storing additional information about the object in a structured format
|
|
107
|
-
# querying for objects via API or the dashboard.
|
|
105
|
+
# for storing additional information about the object in a structured format.
|
|
108
106
|
#
|
|
109
107
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
110
108
|
# a maximum length of 512 characters.
|
|
@@ -25,8 +25,7 @@ module OpenAI
|
|
|
25
25
|
attr_accessor :data_source_config
|
|
26
26
|
|
|
27
27
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
28
|
-
# for storing additional information about the object in a structured format
|
|
29
|
-
# querying for objects via API or the dashboard.
|
|
28
|
+
# for storing additional information about the object in a structured format.
|
|
30
29
|
#
|
|
31
30
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
32
31
|
# a maximum length of 512 characters.
|
|
@@ -50,7 +49,7 @@ module OpenAI
|
|
|
50
49
|
#
|
|
51
50
|
# - Improve the quality of my chatbot
|
|
52
51
|
# - See how well my chatbot handles customer support
|
|
53
|
-
# -
|
|
52
|
+
# - Compare how different models perform on the same task
|
|
54
53
|
sig do
|
|
55
54
|
params(
|
|
56
55
|
|
|
@@ -94,8 +93,7 @@ module OpenAI
|
|
|
94
93
|
data_source_config:,
|
|
95
94
|
|
|
96
95
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
97
|
-
# for storing additional information about the object in a structured format
|
|
98
|
-
# querying for objects via API or the dashboard.
|
|
96
|
+
# for storing additional information about the object in a structured format.
|
|
99
97
|
#
|
|
100
98
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
101
99
|
# a maximum length of 512 characters.
|
|
@@ -159,8 +157,7 @@ module OpenAI
|
|
|
159
157
|
attr_accessor :type
|
|
160
158
|
|
|
161
159
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
162
|
-
# for storing additional information about the object in a structured format
|
|
163
|
-
# querying for objects via API or the dashboard.
|
|
160
|
+
# for storing additional information about the object in a structured format.
|
|
164
161
|
#
|
|
165
162
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
166
163
|
# a maximum length of 512 characters.
|
|
@@ -190,8 +187,7 @@ module OpenAI
|
|
|
190
187
|
schema:,
|
|
191
188
|
|
|
192
189
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
193
|
-
# for storing additional information about the object in a structured format
|
|
194
|
-
# querying for objects via API or the dashboard.
|
|
190
|
+
# for storing additional information about the object in a structured format.
|
|
195
191
|
#
|
|
196
192
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
197
193
|
# a maximum length of 512 characters.
|
|
@@ -25,8 +25,7 @@ module OpenAI
|
|
|
25
25
|
attr_accessor :data_source_config
|
|
26
26
|
|
|
27
27
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
28
|
-
# for storing additional information about the object in a structured format
|
|
29
|
-
# querying for objects via API or the dashboard.
|
|
28
|
+
# for storing additional information about the object in a structured format.
|
|
30
29
|
#
|
|
31
30
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
32
31
|
# a maximum length of 512 characters.
|
|
@@ -50,7 +49,7 @@ module OpenAI
|
|
|
50
49
|
#
|
|
51
50
|
# - Improve the quality of my chatbot
|
|
52
51
|
# - See how well my chatbot handles customer support
|
|
53
|
-
# -
|
|
52
|
+
# - Compare how different models perform on the same task
|
|
54
53
|
sig do
|
|
55
54
|
params(
|
|
56
55
|
|
|
@@ -94,8 +93,7 @@ module OpenAI
|
|
|
94
93
|
data_source_config:,
|
|
95
94
|
|
|
96
95
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
97
|
-
# for storing additional information about the object in a structured format
|
|
98
|
-
# querying for objects via API or the dashboard.
|
|
96
|
+
# for storing additional information about the object in a structured format.
|
|
99
97
|
#
|
|
100
98
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
101
99
|
# a maximum length of 512 characters.
|
|
@@ -159,8 +157,7 @@ module OpenAI
|
|
|
159
157
|
attr_accessor :type
|
|
160
158
|
|
|
161
159
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
162
|
-
# for storing additional information about the object in a structured format
|
|
163
|
-
# querying for objects via API or the dashboard.
|
|
160
|
+
# for storing additional information about the object in a structured format.
|
|
164
161
|
#
|
|
165
162
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
166
163
|
# a maximum length of 512 characters.
|
|
@@ -190,8 +187,7 @@ module OpenAI
|
|
|
190
187
|
schema:,
|
|
191
188
|
|
|
192
189
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
193
|
-
# for storing additional information about the object in a structured format
|
|
194
|
-
# querying for objects via API or the dashboard.
|
|
190
|
+
# for storing additional information about the object in a structured format.
|
|
195
191
|
#
|
|
196
192
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
197
193
|
# a maximum length of 512 characters.
|
|
@@ -25,8 +25,7 @@ module OpenAI
|
|
|
25
25
|
attr_accessor :data_source_config
|
|
26
26
|
|
|
27
27
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
28
|
-
# for storing additional information about the object in a structured format
|
|
29
|
-
# querying for objects via API or the dashboard.
|
|
28
|
+
# for storing additional information about the object in a structured format.
|
|
30
29
|
#
|
|
31
30
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
32
31
|
# a maximum length of 512 characters.
|
|
@@ -50,7 +49,7 @@ module OpenAI
|
|
|
50
49
|
#
|
|
51
50
|
# - Improve the quality of my chatbot
|
|
52
51
|
# - See how well my chatbot handles customer support
|
|
53
|
-
# -
|
|
52
|
+
# - Compare how different models perform on the same task
|
|
54
53
|
sig do
|
|
55
54
|
params(
|
|
56
55
|
|
|
@@ -94,8 +93,7 @@ module OpenAI
|
|
|
94
93
|
data_source_config:,
|
|
95
94
|
|
|
96
95
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
97
|
-
# for storing additional information about the object in a structured format
|
|
98
|
-
# querying for objects via API or the dashboard.
|
|
96
|
+
# for storing additional information about the object in a structured format.
|
|
99
97
|
#
|
|
100
98
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
101
99
|
# a maximum length of 512 characters.
|
|
@@ -159,8 +157,7 @@ module OpenAI
|
|
|
159
157
|
attr_accessor :type
|
|
160
158
|
|
|
161
159
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
162
|
-
# for storing additional information about the object in a structured format
|
|
163
|
-
# querying for objects via API or the dashboard.
|
|
160
|
+
# for storing additional information about the object in a structured format.
|
|
164
161
|
#
|
|
165
162
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
166
163
|
# a maximum length of 512 characters.
|
|
@@ -190,8 +187,7 @@ module OpenAI
|
|
|
190
187
|
schema:,
|
|
191
188
|
|
|
192
189
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
193
|
-
# for storing additional information about the object in a structured format
|
|
194
|
-
# querying for objects via API or the dashboard.
|
|
190
|
+
# for storing additional information about the object in a structured format.
|
|
195
191
|
#
|
|
196
192
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
197
193
|
# a maximum length of 512 characters.
|
|
@@ -22,8 +22,7 @@ module OpenAI
|
|
|
22
22
|
attr_accessor :type
|
|
23
23
|
|
|
24
24
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
25
|
-
# for storing additional information about the object in a structured format
|
|
26
|
-
# querying for objects via API or the dashboard.
|
|
25
|
+
# for storing additional information about the object in a structured format.
|
|
27
26
|
#
|
|
28
27
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
29
28
|
# a maximum length of 512 characters.
|
|
@@ -49,8 +48,7 @@ module OpenAI
|
|
|
49
48
|
schema:,
|
|
50
49
|
|
|
51
50
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
52
|
-
# for storing additional information about the object in a structured format
|
|
53
|
-
# querying for objects via API or the dashboard.
|
|
51
|
+
# for storing additional information about the object in a structured format.
|
|
54
52
|
#
|
|
55
53
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
56
54
|
# a maximum length of 512 characters.
|
|
@@ -19,8 +19,7 @@ module OpenAI
|
|
|
19
19
|
attr_accessor :eval_id
|
|
20
20
|
|
|
21
21
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
22
|
-
# for storing additional information about the object in a structured format
|
|
23
|
-
# querying for objects via API or the dashboard.
|
|
22
|
+
# for storing additional information about the object in a structured format.
|
|
24
23
|
#
|
|
25
24
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
26
25
|
# a maximum length of 512 characters.
|
|
@@ -52,8 +51,7 @@ module OpenAI
|
|
|
52
51
|
eval_id:,
|
|
53
52
|
|
|
54
53
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
55
|
-
# for storing additional information about the object in a structured format
|
|
56
|
-
# querying for objects via API or the dashboard.
|
|
54
|
+
# for storing additional information about the object in a structured format.
|
|
57
55
|
#
|
|
58
56
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
59
57
|
# a maximum length of 512 characters.
|
|
@@ -25,8 +25,7 @@ module OpenAI
|
|
|
25
25
|
attr_accessor :data_source_config
|
|
26
26
|
|
|
27
27
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
28
|
-
# for storing additional information about the object in a structured format
|
|
29
|
-
# querying for objects via API or the dashboard.
|
|
28
|
+
# for storing additional information about the object in a structured format.
|
|
30
29
|
#
|
|
31
30
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
32
31
|
# a maximum length of 512 characters.
|
|
@@ -50,7 +49,7 @@ module OpenAI
|
|
|
50
49
|
#
|
|
51
50
|
# - Improve the quality of my chatbot
|
|
52
51
|
# - See how well my chatbot handles customer support
|
|
53
|
-
# -
|
|
52
|
+
# - Compare how different models perform on the same task
|
|
54
53
|
sig do
|
|
55
54
|
params(
|
|
56
55
|
|
|
@@ -94,8 +93,7 @@ module OpenAI
|
|
|
94
93
|
data_source_config:,
|
|
95
94
|
|
|
96
95
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
97
|
-
# for storing additional information about the object in a structured format
|
|
98
|
-
# querying for objects via API or the dashboard.
|
|
96
|
+
# for storing additional information about the object in a structured format.
|
|
99
97
|
#
|
|
100
98
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
101
99
|
# a maximum length of 512 characters.
|
|
@@ -159,8 +157,7 @@ module OpenAI
|
|
|
159
157
|
attr_accessor :type
|
|
160
158
|
|
|
161
159
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
162
|
-
# for storing additional information about the object in a structured format
|
|
163
|
-
# querying for objects via API or the dashboard.
|
|
160
|
+
# for storing additional information about the object in a structured format.
|
|
164
161
|
#
|
|
165
162
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
166
163
|
# a maximum length of 512 characters.
|
|
@@ -190,8 +187,7 @@ module OpenAI
|
|
|
190
187
|
schema:,
|
|
191
188
|
|
|
192
189
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
193
|
-
# for storing additional information about the object in a structured format
|
|
194
|
-
# querying for objects via API or the dashboard.
|
|
190
|
+
# for storing additional information about the object in a structured format.
|
|
195
191
|
#
|
|
196
192
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
197
193
|
# a maximum length of 512 characters.
|
|
@@ -57,7 +57,7 @@ module OpenAI
|
|
|
57
57
|
}
|
|
58
58
|
attr_writer :input_messages
|
|
59
59
|
|
|
60
|
-
# The
|
|
60
|
+
# The model to use to sample outputs with the Chat Completions API.
|
|
61
61
|
sig { returns(T.nilable(String)) }
|
|
62
62
|
attr_reader :model
|
|
63
63
|
|
|
@@ -107,7 +107,7 @@ module OpenAI
|
|
|
107
107
|
# namespace.
|
|
108
108
|
input_messages: nil,
|
|
109
109
|
|
|
110
|
-
# The
|
|
110
|
+
# The model to use to sample outputs with the Chat Completions API.
|
|
111
111
|
model: nil,
|
|
112
112
|
|
|
113
113
|
sampling_params: nil
|
|
@@ -312,15 +312,14 @@ module OpenAI
|
|
|
312
312
|
attr_accessor :limit
|
|
313
313
|
|
|
314
314
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
315
|
-
# for storing additional information about the object in a structured format
|
|
316
|
-
# querying for objects via API or the dashboard.
|
|
315
|
+
# for storing additional information about the object in a structured format.
|
|
317
316
|
#
|
|
318
317
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
319
318
|
# a maximum length of 512 characters.
|
|
320
319
|
sig { returns(T.nilable(T::Hash[Symbol, String])) }
|
|
321
320
|
attr_accessor :metadata
|
|
322
321
|
|
|
323
|
-
# An optional model to filter by (e.g., 'gpt-
|
|
322
|
+
# An optional model to filter by (e.g., 'gpt-4.1-mini-2025-04-14').
|
|
324
323
|
sig { returns(T.nilable(String)) }
|
|
325
324
|
attr_accessor :model
|
|
326
325
|
|
|
@@ -354,14 +353,13 @@ module OpenAI
|
|
|
354
353
|
limit: nil,
|
|
355
354
|
|
|
356
355
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
357
|
-
# for storing additional information about the object in a structured format
|
|
358
|
-
# querying for objects via API or the dashboard.
|
|
356
|
+
# for storing additional information about the object in a structured format.
|
|
359
357
|
#
|
|
360
358
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
361
359
|
# a maximum length of 512 characters.
|
|
362
360
|
metadata: nil,
|
|
363
361
|
|
|
364
|
-
# An optional model to filter by (e.g., 'gpt-
|
|
362
|
+
# An optional model to filter by (e.g., 'gpt-4.1-mini-2025-04-14').
|
|
365
363
|
model: nil,
|
|
366
364
|
|
|
367
365
|
# The type of source. Always `stored_completions`.
|
|
@@ -38,8 +38,7 @@ module OpenAI
|
|
|
38
38
|
attr_accessor :eval_id
|
|
39
39
|
|
|
40
40
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
41
|
-
# for storing additional information about the object in a structured format
|
|
42
|
-
# querying for objects via API or the dashboard.
|
|
41
|
+
# for storing additional information about the object in a structured format.
|
|
43
42
|
#
|
|
44
43
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
45
44
|
# a maximum length of 512 characters.
|
|
@@ -139,8 +138,7 @@ module OpenAI
|
|
|
139
138
|
eval_id:,
|
|
140
139
|
|
|
141
140
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
142
|
-
# for storing additional information about the object in a structured format
|
|
143
|
-
# querying for objects via API or the dashboard.
|
|
141
|
+
# for storing additional information about the object in a structured format.
|
|
144
142
|
#
|
|
145
143
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
146
144
|
# a maximum length of 512 characters.
|
|
@@ -246,7 +244,7 @@ module OpenAI
|
|
|
246
244
|
}
|
|
247
245
|
attr_writer :input_messages
|
|
248
246
|
|
|
249
|
-
# The
|
|
247
|
+
# The model to use to sample outputs with the Responses API.
|
|
250
248
|
sig { returns(T.nilable(String)) }
|
|
251
249
|
attr_reader :model
|
|
252
250
|
|
|
@@ -298,7 +296,7 @@ module OpenAI
|
|
|
298
296
|
# namespace.
|
|
299
297
|
input_messages: nil,
|
|
300
298
|
|
|
301
|
-
# The
|
|
299
|
+
# The model to use to sample outputs with the Responses API.
|
|
302
300
|
model: nil,
|
|
303
301
|
|
|
304
302
|
sampling_params: nil,
|