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
|
@@ -10,7 +10,9 @@ module OpenAI
|
|
|
10
10
|
?object: :"response.compaction",
|
|
11
11
|
output: ::Array[OpenAI::Models::Beta::beta_response_item],
|
|
12
12
|
usage: OpenAI::Beta::BetaResponseUsage,
|
|
13
|
-
?image: OpenAI::Beta::BetaCompactedResponse::Image
|
|
13
|
+
?image: OpenAI::Beta::BetaCompactedResponse::Image,
|
|
14
|
+
?safety_identifier: String?,
|
|
15
|
+
?service_tier: String
|
|
14
16
|
}
|
|
15
17
|
|
|
16
18
|
class BetaCompactedResponse < OpenAI::Internal::Type::BaseModel
|
|
@@ -37,6 +39,15 @@ module OpenAI
|
|
|
37
39
|
OpenAI::Beta::BetaCompactedResponse::Image
|
|
38
40
|
) -> OpenAI::Beta::BetaCompactedResponse::Image
|
|
39
41
|
|
|
42
|
+
# A stable identifier that was used for safety monitoring and abuse detection.
|
|
43
|
+
attr_accessor safety_identifier: String?
|
|
44
|
+
|
|
45
|
+
# The service tier used for compaction, when reported.
|
|
46
|
+
attr_reader service_tier: String?
|
|
47
|
+
|
|
48
|
+
# The service tier used for compaction, when reported.
|
|
49
|
+
def service_tier=: (String) -> String
|
|
50
|
+
|
|
40
51
|
# @param id
|
|
41
52
|
# The unique identifier for the compacted response.
|
|
42
53
|
# @param created_at
|
|
@@ -47,6 +58,10 @@ module OpenAI
|
|
|
47
58
|
# @param usage
|
|
48
59
|
# Token accounting for the compaction pass, including cached, reasoning, and total
|
|
49
60
|
# tokens.
|
|
61
|
+
# @param safety_identifier
|
|
62
|
+
# A stable identifier that was used for safety monitoring and abuse detection.
|
|
63
|
+
# @param service_tier
|
|
64
|
+
# The service tier used for compaction, when reported.
|
|
50
65
|
# @param object
|
|
51
66
|
# The object type. Always `response.compaction`.
|
|
52
67
|
def initialize: (
|
|
@@ -55,6 +70,8 @@ module OpenAI
|
|
|
55
70
|
output: ::Array[OpenAI::Models::Beta::beta_response_item],
|
|
56
71
|
usage: OpenAI::Beta::BetaResponseUsage,
|
|
57
72
|
?image: OpenAI::Beta::BetaCompactedResponse::Image,
|
|
73
|
+
?safety_identifier: String?,
|
|
74
|
+
?service_tier: String,
|
|
58
75
|
?object: :"response.compaction"
|
|
59
76
|
) -> void
|
|
60
77
|
|
|
@@ -64,7 +81,9 @@ module OpenAI
|
|
|
64
81
|
?object: :"response.compaction",
|
|
65
82
|
output: ::Array[OpenAI::Models::Beta::beta_response_item],
|
|
66
83
|
usage: OpenAI::Beta::BetaResponseUsage,
|
|
67
|
-
?image: OpenAI::Beta::BetaCompactedResponse::Image
|
|
84
|
+
?image: OpenAI::Beta::BetaCompactedResponse::Image,
|
|
85
|
+
?safety_identifier: String?,
|
|
86
|
+
?service_tier: String
|
|
68
87
|
}
|
|
69
88
|
|
|
70
89
|
type image =
|
|
@@ -33,10 +33,16 @@ module OpenAI
|
|
|
33
33
|
OpenAI::Models::Beta::BetaContainerAuto::network_policy
|
|
34
34
|
) -> OpenAI::Models::Beta::BetaContainerAuto::network_policy
|
|
35
35
|
|
|
36
|
-
# An optional list of skills referenced by id or inline data.
|
|
36
|
+
# An optional list of skills referenced by id or inline data. Across all inline
|
|
37
|
+
# skills in this list, decoded ZIP data must total at most 50 MiB and Base64 text
|
|
38
|
+
# must total at most 70,254,592 characters, including line breaks. Skill
|
|
39
|
+
# references do not count toward these limits.
|
|
37
40
|
attr_reader skills: ::Array[OpenAI::Models::Beta::BetaContainerAuto::skill]?
|
|
38
41
|
|
|
39
|
-
# An optional list of skills referenced by id or inline data.
|
|
42
|
+
# An optional list of skills referenced by id or inline data. Across all inline
|
|
43
|
+
# skills in this list, decoded ZIP data must total at most 50 MiB and Base64 text
|
|
44
|
+
# must total at most 70,254,592 characters, including line breaks. Skill
|
|
45
|
+
# references do not count toward these limits.
|
|
40
46
|
def skills=: (
|
|
41
47
|
::Array[OpenAI::Models::Beta::BetaContainerAuto::skill]
|
|
42
48
|
) -> ::Array[OpenAI::Models::Beta::BetaContainerAuto::skill]
|
|
@@ -48,7 +54,10 @@ module OpenAI
|
|
|
48
54
|
# @param network_policy
|
|
49
55
|
# Network access policy for the container.
|
|
50
56
|
# @param skills
|
|
51
|
-
# An optional list of skills referenced by id or inline data.
|
|
57
|
+
# An optional list of skills referenced by id or inline data. Across all inline
|
|
58
|
+
# skills in this list, decoded ZIP data must total at most 50 MiB and Base64 text
|
|
59
|
+
# must total at most 70,254,592 characters, including line breaks. Skill
|
|
60
|
+
# references do not count toward these limits.
|
|
52
61
|
# @param type
|
|
53
62
|
# Automatically creates a container for this request
|
|
54
63
|
def initialize: (
|
|
@@ -69,16 +69,15 @@ module OpenAI
|
|
|
69
69
|
attr_accessor instructions: OpenAI::Models::Beta::BetaResponse::instructions?
|
|
70
70
|
|
|
71
71
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
72
|
-
# for storing additional information about the object in a structured format
|
|
73
|
-
# querying for objects via API or the dashboard.
|
|
72
|
+
# for storing additional information about the object in a structured format.
|
|
74
73
|
#
|
|
75
74
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
76
75
|
# a maximum length of 512 characters.
|
|
77
76
|
attr_accessor metadata: ::Hash[Symbol, String]?
|
|
78
77
|
|
|
79
|
-
# Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a
|
|
80
|
-
# range of models with different capabilities, performance characteristics,
|
|
81
|
-
# price points. Refer to the
|
|
78
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
79
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
80
|
+
# and price points. Refer to the
|
|
82
81
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
83
82
|
# compare available models.
|
|
84
83
|
attr_accessor model: OpenAI::Models::Beta::BetaResponse::model
|
|
@@ -383,15 +382,14 @@ module OpenAI
|
|
|
383
382
|
# swap out system (or developer) messages in new responses.
|
|
384
383
|
# @param metadata
|
|
385
384
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
386
|
-
# for storing additional information about the object in a structured format
|
|
387
|
-
# querying for objects via API or the dashboard.
|
|
385
|
+
# for storing additional information about the object in a structured format.
|
|
388
386
|
#
|
|
389
387
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
390
388
|
# a maximum length of 512 characters.
|
|
391
389
|
# @param model
|
|
392
|
-
# Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a
|
|
393
|
-
# range of models with different capabilities, performance characteristics,
|
|
394
|
-
# price points. Refer to the
|
|
390
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
391
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
392
|
+
# and price points. Refer to the
|
|
395
393
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
396
394
|
# compare available models.
|
|
397
395
|
# @param output
|
|
@@ -864,6 +862,10 @@ module OpenAI
|
|
|
864
862
|
| :"gpt-6-cyber"
|
|
865
863
|
| :"gpt-rosalind-research"
|
|
866
864
|
| :"gpt-6.2-astra-law"
|
|
865
|
+
| :"gpt-6-astra-healthcare"
|
|
866
|
+
| :"gpt-6.1-sol-healthcare"
|
|
867
|
+
| :"gpt-6.2-astra-healthcare"
|
|
868
|
+
| :"gpt-6.2-sol-healthcare"
|
|
867
869
|
| String
|
|
868
870
|
|
|
869
871
|
module Model
|
|
@@ -982,6 +984,10 @@ module OpenAI
|
|
|
982
984
|
GPT_6_CYBER: :"gpt-6-cyber"
|
|
983
985
|
GPT_ROSALIND_RESEARCH: :"gpt-rosalind-research"
|
|
984
986
|
GPT_6_2_ASTRA_LAW: :"gpt-6.2-astra-law"
|
|
987
|
+
GPT_6_ASTRA_HEALTHCARE: :"gpt-6-astra-healthcare"
|
|
988
|
+
GPT_6_1_SOL_HEALTHCARE: :"gpt-6.1-sol-healthcare"
|
|
989
|
+
GPT_6_2_ASTRA_HEALTHCARE: :"gpt-6.2-astra-healthcare"
|
|
990
|
+
GPT_6_2_SOL_HEALTHCARE: :"gpt-6.2-sol-healthcare"
|
|
985
991
|
end
|
|
986
992
|
|
|
987
993
|
type tool_choice =
|
|
@@ -171,23 +171,22 @@ module OpenAI
|
|
|
171
171
|
attr_accessor max_tool_calls: Integer?
|
|
172
172
|
|
|
173
173
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
174
|
-
# for storing additional information about the object in a structured format
|
|
175
|
-
# querying for objects via API or the dashboard.
|
|
174
|
+
# for storing additional information about the object in a structured format.
|
|
176
175
|
#
|
|
177
176
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
178
177
|
# a maximum length of 512 characters.
|
|
179
178
|
attr_accessor metadata: ::Hash[Symbol, String]?
|
|
180
179
|
|
|
181
|
-
# Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a
|
|
182
|
-
# range of models with different capabilities, performance characteristics,
|
|
183
|
-
# price points. Refer to the
|
|
180
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
181
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
182
|
+
# and price points. Refer to the
|
|
184
183
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
185
184
|
# compare available models.
|
|
186
185
|
attr_reader model: OpenAI::Models::Beta::BetaResponsesClientEvent::ResponseCreate::model?
|
|
187
186
|
|
|
188
|
-
# Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a
|
|
189
|
-
# range of models with different capabilities, performance characteristics,
|
|
190
|
-
# price points. Refer to the
|
|
187
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
188
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
189
|
+
# and price points. Refer to the
|
|
191
190
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
192
191
|
# compare available models.
|
|
193
192
|
def model=: (
|
|
@@ -517,15 +516,14 @@ module OpenAI
|
|
|
517
516
|
# ignored.
|
|
518
517
|
# @param metadata
|
|
519
518
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
520
|
-
# for storing additional information about the object in a structured format
|
|
521
|
-
# querying for objects via API or the dashboard.
|
|
519
|
+
# for storing additional information about the object in a structured format.
|
|
522
520
|
#
|
|
523
521
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
524
522
|
# a maximum length of 512 characters.
|
|
525
523
|
# @param model
|
|
526
|
-
# Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a
|
|
527
|
-
# range of models with different capabilities, performance characteristics,
|
|
528
|
-
# price points. Refer to the
|
|
524
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
525
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
526
|
+
# and price points. Refer to the
|
|
529
527
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
530
528
|
# compare available models.
|
|
531
529
|
# @param moderation
|
|
@@ -1087,6 +1085,10 @@ module OpenAI
|
|
|
1087
1085
|
| :"gpt-rosalind-research"
|
|
1088
1086
|
| :"gpt-6-rosalind"
|
|
1089
1087
|
| :"gpt-6.2-astra-law"
|
|
1088
|
+
| :"gpt-6-astra-healthcare"
|
|
1089
|
+
| :"gpt-6.1-sol-healthcare"
|
|
1090
|
+
| :"gpt-6.2-astra-healthcare"
|
|
1091
|
+
| :"gpt-6.2-sol-healthcare"
|
|
1090
1092
|
| String
|
|
1091
1093
|
|
|
1092
1094
|
module Model
|
|
@@ -1206,6 +1208,10 @@ module OpenAI
|
|
|
1206
1208
|
GPT_ROSALIND_RESEARCH: :"gpt-rosalind-research"
|
|
1207
1209
|
GPT_6_ROSALIND: :"gpt-6-rosalind"
|
|
1208
1210
|
GPT_6_2_ASTRA_LAW: :"gpt-6.2-astra-law"
|
|
1211
|
+
GPT_6_ASTRA_HEALTHCARE: :"gpt-6-astra-healthcare"
|
|
1212
|
+
GPT_6_1_SOL_HEALTHCARE: :"gpt-6.1-sol-healthcare"
|
|
1213
|
+
GPT_6_2_ASTRA_HEALTHCARE: :"gpt-6.2-astra-healthcare"
|
|
1214
|
+
GPT_6_2_SOL_HEALTHCARE: :"gpt-6.2-sol-healthcare"
|
|
1209
1215
|
end
|
|
1210
1216
|
|
|
1211
1217
|
type moderation =
|
|
@@ -11,6 +11,7 @@ module OpenAI
|
|
|
11
11
|
?prompt_cache_key: String?,
|
|
12
12
|
?prompt_cache_options: OpenAI::Beta::ResponseCompactParams::PromptCacheOptions?,
|
|
13
13
|
?prompt_cache_retention: OpenAI::Models::Beta::ResponseCompactParams::prompt_cache_retention?,
|
|
14
|
+
?safety_identifier: String?,
|
|
14
15
|
?service_tier: OpenAI::Models::Beta::ResponseCompactParams::service_tier?,
|
|
15
16
|
?betas: ::Array[OpenAI::Models::Beta::ResponseCompactParams::beta],
|
|
16
17
|
?request_options: OpenAI::request_opts
|
|
@@ -20,9 +21,9 @@ module OpenAI
|
|
|
20
21
|
extend OpenAI::Internal::Type::RequestParameters::Converter
|
|
21
22
|
include OpenAI::Internal::Type::RequestParameters
|
|
22
23
|
|
|
23
|
-
# Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a
|
|
24
|
-
# range of models with different capabilities, performance characteristics,
|
|
25
|
-
# price points. Refer to the
|
|
24
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
25
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
26
|
+
# and price points. Refer to the
|
|
26
27
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
27
28
|
# compare available models.
|
|
28
29
|
attr_accessor model: OpenAI::Models::Beta::ResponseCompactParams::model?
|
|
@@ -67,6 +68,9 @@ module OpenAI
|
|
|
67
68
|
# How long to retain a prompt cache entry created by this request.
|
|
68
69
|
attr_accessor prompt_cache_retention: OpenAI::Models::Beta::ResponseCompactParams::prompt_cache_retention?
|
|
69
70
|
|
|
71
|
+
# A stable identifier used for safety monitoring and abuse detection.
|
|
72
|
+
attr_accessor safety_identifier: String?
|
|
73
|
+
|
|
70
74
|
# Specifies the processing type used for serving the request. - If set to 'auto',
|
|
71
75
|
# then the request will be processed with the service tier configured in the
|
|
72
76
|
# Project settings. Unless otherwise configured, the Project will use 'default'. -
|
|
@@ -92,9 +96,9 @@ module OpenAI
|
|
|
92
96
|
) -> ::Array[OpenAI::Models::Beta::ResponseCompactParams::beta]
|
|
93
97
|
|
|
94
98
|
# @param model
|
|
95
|
-
# Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a
|
|
96
|
-
# range of models with different capabilities, performance characteristics,
|
|
97
|
-
# price points. Refer to the
|
|
99
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
100
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
101
|
+
# and price points. Refer to the
|
|
98
102
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
99
103
|
# compare available models.
|
|
100
104
|
# @param image
|
|
@@ -125,6 +129,8 @@ module OpenAI
|
|
|
125
129
|
# for current details.
|
|
126
130
|
# @param prompt_cache_retention
|
|
127
131
|
# How long to retain a prompt cache entry created by this request.
|
|
132
|
+
# @param safety_identifier
|
|
133
|
+
# A stable identifier used for safety monitoring and abuse detection.
|
|
128
134
|
# @param service_tier
|
|
129
135
|
# Specifies the processing type used for serving the request. - If set to 'auto',
|
|
130
136
|
# then the request will be processed with the service tier configured in the
|
|
@@ -151,6 +157,7 @@ module OpenAI
|
|
|
151
157
|
?prompt_cache_key: String?,
|
|
152
158
|
?prompt_cache_options: OpenAI::Beta::ResponseCompactParams::PromptCacheOptions?,
|
|
153
159
|
?prompt_cache_retention: OpenAI::Models::Beta::ResponseCompactParams::prompt_cache_retention?,
|
|
160
|
+
?safety_identifier: String?,
|
|
154
161
|
?service_tier: OpenAI::Models::Beta::ResponseCompactParams::service_tier?,
|
|
155
162
|
?betas: ::Array[OpenAI::Models::Beta::ResponseCompactParams::beta],
|
|
156
163
|
?request_options: OpenAI::request_opts
|
|
@@ -165,6 +172,7 @@ module OpenAI
|
|
|
165
172
|
?prompt_cache_key: String?,
|
|
166
173
|
?prompt_cache_options: OpenAI::Beta::ResponseCompactParams::PromptCacheOptions?,
|
|
167
174
|
?prompt_cache_retention: OpenAI::Models::Beta::ResponseCompactParams::prompt_cache_retention?,
|
|
175
|
+
?safety_identifier: String?,
|
|
168
176
|
?service_tier: OpenAI::Models::Beta::ResponseCompactParams::service_tier?,
|
|
169
177
|
?betas: ::Array[OpenAI::Models::Beta::ResponseCompactParams::beta],
|
|
170
178
|
?request_options: OpenAI::RequestOptions
|
|
@@ -283,6 +291,10 @@ module OpenAI
|
|
|
283
291
|
| :"gpt-rosalind-research"
|
|
284
292
|
| :"gpt-6-rosalind"
|
|
285
293
|
| :"gpt-6.2-astra-law"
|
|
294
|
+
| :"gpt-6-astra-healthcare"
|
|
295
|
+
| :"gpt-6.1-sol-healthcare"
|
|
296
|
+
| :"gpt-6.2-astra-healthcare"
|
|
297
|
+
| :"gpt-6.2-sol-healthcare"
|
|
286
298
|
| String
|
|
287
299
|
|
|
288
300
|
module Model
|
|
@@ -402,6 +414,10 @@ module OpenAI
|
|
|
402
414
|
GPT_ROSALIND_RESEARCH: :"gpt-rosalind-research"
|
|
403
415
|
GPT_6_ROSALIND: :"gpt-6-rosalind"
|
|
404
416
|
GPT_6_2_ASTRA_LAW: :"gpt-6.2-astra-law"
|
|
417
|
+
GPT_6_ASTRA_HEALTHCARE: :"gpt-6-astra-healthcare"
|
|
418
|
+
GPT_6_1_SOL_HEALTHCARE: :"gpt-6.1-sol-healthcare"
|
|
419
|
+
GPT_6_2_ASTRA_HEALTHCARE: :"gpt-6.2-astra-healthcare"
|
|
420
|
+
GPT_6_2_SOL_HEALTHCARE: :"gpt-6.2-sol-healthcare"
|
|
405
421
|
end
|
|
406
422
|
|
|
407
423
|
type image =
|
|
@@ -149,23 +149,22 @@ module OpenAI
|
|
|
149
149
|
attr_accessor max_tool_calls: Integer?
|
|
150
150
|
|
|
151
151
|
# 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
|
|
153
|
-
# querying for objects via API or the dashboard.
|
|
152
|
+
# for storing additional information about the object in a structured format.
|
|
154
153
|
#
|
|
155
154
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
156
155
|
# a maximum length of 512 characters.
|
|
157
156
|
attr_accessor metadata: ::Hash[Symbol, String]?
|
|
158
157
|
|
|
159
|
-
# Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a
|
|
160
|
-
# range of models with different capabilities, performance characteristics,
|
|
161
|
-
# price points. Refer to the
|
|
158
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
159
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
160
|
+
# and price points. Refer to the
|
|
162
161
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
163
162
|
# compare available models.
|
|
164
163
|
attr_reader model: OpenAI::Models::Beta::ResponseCreateParams::model?
|
|
165
164
|
|
|
166
|
-
# Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a
|
|
167
|
-
# range of models with different capabilities, performance characteristics,
|
|
168
|
-
# price points. Refer to the
|
|
165
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
166
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
167
|
+
# and price points. Refer to the
|
|
169
168
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
170
169
|
# compare available models.
|
|
171
170
|
def model=: (
|
|
@@ -477,15 +476,14 @@ module OpenAI
|
|
|
477
476
|
# ignored.
|
|
478
477
|
# @param metadata
|
|
479
478
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
480
|
-
# for storing additional information about the object in a structured format
|
|
481
|
-
# querying for objects via API or the dashboard.
|
|
479
|
+
# for storing additional information about the object in a structured format.
|
|
482
480
|
#
|
|
483
481
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
484
482
|
# a maximum length of 512 characters.
|
|
485
483
|
# @param model
|
|
486
|
-
# Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a
|
|
487
|
-
# range of models with different capabilities, performance characteristics,
|
|
488
|
-
# price points. Refer to the
|
|
484
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
485
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
486
|
+
# and price points. Refer to the
|
|
489
487
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
490
488
|
# compare available models.
|
|
491
489
|
# @param moderation
|
|
@@ -1027,6 +1025,10 @@ module OpenAI
|
|
|
1027
1025
|
| :"gpt-rosalind-research"
|
|
1028
1026
|
| :"gpt-6-rosalind"
|
|
1029
1027
|
| :"gpt-6.2-astra-law"
|
|
1028
|
+
| :"gpt-6-astra-healthcare"
|
|
1029
|
+
| :"gpt-6.1-sol-healthcare"
|
|
1030
|
+
| :"gpt-6.2-astra-healthcare"
|
|
1031
|
+
| :"gpt-6.2-sol-healthcare"
|
|
1030
1032
|
| String
|
|
1031
1033
|
|
|
1032
1034
|
module Model
|
|
@@ -1146,6 +1148,10 @@ module OpenAI
|
|
|
1146
1148
|
GPT_ROSALIND_RESEARCH: :"gpt-rosalind-research"
|
|
1147
1149
|
GPT_6_ROSALIND: :"gpt-6-rosalind"
|
|
1148
1150
|
GPT_6_2_ASTRA_LAW: :"gpt-6.2-astra-law"
|
|
1151
|
+
GPT_6_ASTRA_HEALTHCARE: :"gpt-6-astra-healthcare"
|
|
1152
|
+
GPT_6_1_SOL_HEALTHCARE: :"gpt-6.1-sol-healthcare"
|
|
1153
|
+
GPT_6_2_ASTRA_HEALTHCARE: :"gpt-6.2-astra-healthcare"
|
|
1154
|
+
GPT_6_2_SOL_HEALTHCARE: :"gpt-6.2-sol-healthcare"
|
|
1149
1155
|
end
|
|
1150
1156
|
|
|
1151
1157
|
type moderation =
|
|
@@ -35,8 +35,7 @@ module OpenAI
|
|
|
35
35
|
attr_accessor object: :"chat.completion"
|
|
36
36
|
|
|
37
37
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
38
|
-
# for storing additional information about the object in a structured format
|
|
39
|
-
# querying for objects via API or the dashboard.
|
|
38
|
+
# for storing additional information about the object in a structured format.
|
|
40
39
|
#
|
|
41
40
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
42
41
|
# a maximum length of 512 characters.
|
|
@@ -99,8 +98,7 @@ module OpenAI
|
|
|
99
98
|
# The model used for the chat completion.
|
|
100
99
|
# @param metadata
|
|
101
100
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
102
|
-
# for storing additional information about the object in a structured format
|
|
103
|
-
# querying for objects via API or the dashboard.
|
|
101
|
+
# for storing additional information about the object in a structured format.
|
|
104
102
|
#
|
|
105
103
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
106
104
|
# a maximum length of 512 characters.
|
|
@@ -54,9 +54,9 @@ module OpenAI
|
|
|
54
54
|
# [audio](https://developers.openai.com/api/docs/guides/audio).
|
|
55
55
|
attr_accessor messages: ::Array[OpenAI::Models::Chat::chat_completion_message_param]
|
|
56
56
|
|
|
57
|
-
# Model ID used to generate the response, like `gpt-6-astra
|
|
58
|
-
#
|
|
59
|
-
#
|
|
57
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
58
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
59
|
+
# and price points. Refer to the
|
|
60
60
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
61
61
|
# compare available models.
|
|
62
62
|
attr_accessor model: OpenAI::Models::Chat::CompletionCreateParams::model
|
|
@@ -147,8 +147,7 @@ module OpenAI
|
|
|
147
147
|
attr_accessor max_tokens: Integer?
|
|
148
148
|
|
|
149
149
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
150
|
-
# for storing additional information about the object in a structured format
|
|
151
|
-
# querying for objects via API or the dashboard.
|
|
150
|
+
# for storing additional information about the object in a structured format.
|
|
152
151
|
#
|
|
153
152
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
154
153
|
# a maximum length of 512 characters.
|
|
@@ -318,7 +317,7 @@ module OpenAI
|
|
|
318
317
|
# parameter.
|
|
319
318
|
attr_accessor service_tier: OpenAI::Models::Chat::CompletionCreateParams::service_tier?
|
|
320
319
|
|
|
321
|
-
# Not supported with
|
|
320
|
+
# Not supported with reasoning models `o3` and `o4-mini`.
|
|
322
321
|
#
|
|
323
322
|
# Up to 4 sequences where the API will stop generating further tokens. The
|
|
324
323
|
# returned text will not contain the stop sequence.
|
|
@@ -432,9 +431,9 @@ module OpenAI
|
|
|
432
431
|
# [images](https://developers.openai.com/api/docs/guides/images-vision), and
|
|
433
432
|
# [audio](https://developers.openai.com/api/docs/guides/audio).
|
|
434
433
|
# @param model
|
|
435
|
-
# Model ID used to generate the response, like `gpt-6-astra
|
|
436
|
-
#
|
|
437
|
-
#
|
|
434
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
435
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
436
|
+
# and price points. Refer to the
|
|
438
437
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
439
438
|
# compare available models.
|
|
440
439
|
# @param audio
|
|
@@ -491,8 +490,7 @@ module OpenAI
|
|
|
491
490
|
# [o-series models](https://developers.openai.com/api/docs/guides/reasoning).
|
|
492
491
|
# @param metadata
|
|
493
492
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
494
|
-
# for storing additional information about the object in a structured format
|
|
495
|
-
# querying for objects via API or the dashboard.
|
|
493
|
+
# for storing additional information about the object in a structured format.
|
|
496
494
|
#
|
|
497
495
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
498
496
|
# a maximum length of 512 characters.
|
|
@@ -615,7 +613,7 @@ module OpenAI
|
|
|
615
613
|
# request. This response value may be different from the value set in the
|
|
616
614
|
# parameter.
|
|
617
615
|
# @param stop
|
|
618
|
-
# Not supported with
|
|
616
|
+
# Not supported with reasoning models `o3` and `o4-mini`.
|
|
619
617
|
#
|
|
620
618
|
# Up to 4 sequences where the API will stop generating further tokens. The
|
|
621
619
|
# returned text will not contain the stop sequence.
|
|
@@ -15,8 +15,7 @@ module OpenAI
|
|
|
15
15
|
attr_accessor completion_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
|
|
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.
|
|
@@ -24,8 +23,7 @@ module OpenAI
|
|
|
24
23
|
|
|
25
24
|
# @param metadata
|
|
26
25
|
# 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
|
|
28
|
-
# querying for objects via API or the dashboard.
|
|
26
|
+
# for storing additional information about the object in a structured format.
|
|
29
27
|
#
|
|
30
28
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
31
29
|
# a maximum length of 512 characters.
|
|
@@ -117,7 +117,7 @@ module OpenAI
|
|
|
117
117
|
# response parameter to monitor changes in the backend.
|
|
118
118
|
attr_accessor seed: Integer?
|
|
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.
|
|
@@ -236,7 +236,7 @@ module OpenAI
|
|
|
236
236
|
# Determinism is not guaranteed, and you should refer to the `system_fingerprint`
|
|
237
237
|
# response parameter to monitor changes in the backend.
|
|
238
238
|
# @param stop
|
|
239
|
-
# Not supported with
|
|
239
|
+
# Not supported with reasoning models `o3` and `o4-mini`.
|
|
240
240
|
#
|
|
241
241
|
# Up to 4 sequences where the API will stop generating further tokens. The
|
|
242
242
|
# returned text will not contain the stop sequence.
|
|
@@ -5,6 +5,7 @@ module OpenAI
|
|
|
5
5
|
{
|
|
6
6
|
?items: ::Array[OpenAI::Models::Responses::response_input_item]?,
|
|
7
7
|
?metadata: OpenAI::Models::metadata?,
|
|
8
|
+
?safety_identifier: String?,
|
|
8
9
|
?request_options: OpenAI::request_opts
|
|
9
10
|
}
|
|
10
11
|
|
|
@@ -17,32 +18,37 @@ module OpenAI
|
|
|
17
18
|
attr_accessor items: ::Array[OpenAI::Models::Responses::response_input_item]?
|
|
18
19
|
|
|
19
20
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
20
|
-
# for storing additional information about the object in a structured format
|
|
21
|
-
# querying for objects via API or the dashboard.
|
|
21
|
+
# for storing additional information about the object in a structured format.
|
|
22
22
|
#
|
|
23
23
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
24
24
|
# a maximum length of 512 characters.
|
|
25
25
|
attr_accessor metadata: OpenAI::Models::metadata?
|
|
26
26
|
|
|
27
|
+
# A stable identifier used for safety monitoring and abuse detection.
|
|
28
|
+
attr_accessor safety_identifier: String?
|
|
29
|
+
|
|
27
30
|
# @param items
|
|
28
31
|
# Initial items to include in the conversation context. You may add up to 20 items
|
|
29
32
|
# at a time.
|
|
30
33
|
# @param metadata
|
|
31
34
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
32
|
-
# for storing additional information about the object in a structured format
|
|
33
|
-
# querying for objects via API or the dashboard.
|
|
35
|
+
# for storing additional information about the object in a structured format.
|
|
34
36
|
#
|
|
35
37
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
36
38
|
# a maximum length of 512 characters.
|
|
39
|
+
# @param safety_identifier
|
|
40
|
+
# A stable identifier used for safety monitoring and abuse detection.
|
|
37
41
|
def initialize: (
|
|
38
42
|
?items: ::Array[OpenAI::Models::Responses::response_input_item]?,
|
|
39
43
|
?metadata: OpenAI::Models::metadata?,
|
|
44
|
+
?safety_identifier: String?,
|
|
40
45
|
?request_options: OpenAI::request_opts
|
|
41
46
|
) -> void
|
|
42
47
|
|
|
43
48
|
def to_hash: -> {
|
|
44
49
|
?items: ::Array[OpenAI::Models::Responses::response_input_item]?,
|
|
45
50
|
?metadata: OpenAI::Models::metadata?,
|
|
51
|
+
?safety_identifier: String?,
|
|
46
52
|
?request_options: OpenAI::RequestOptions
|
|
47
53
|
}
|
|
48
54
|
end
|
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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.
|