openai 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +18 -0
- data/README.md +1 -1
- 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/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 +11 -13
- data/lib/openai/models/beta/beta_responses_client_event.rb +11 -13
- data/lib/openai/models/beta/response_compact_params.rb +19 -10
- data/lib/openai/models/beta/response_create_params.rb +11 -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 +19 -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/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/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 +11 -13
- data/rbi/openai/models/beta/beta_responses_client_event.rbi +11 -13
- data/rbi/openai/models/beta/response_compact_params.rbi +19 -9
- data/rbi/openai/models/beta/response_create_params.rbi +11 -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 +19 -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/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/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 +8 -10
- data/sig/openai/models/beta/beta_responses_client_event.rbs +11 -13
- data/sig/openai/models/beta/response_compact_params.rbs +14 -6
- data/sig/openai/models/beta/response_create_params.rbs +11 -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 +14 -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/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
|
@@ -66,6 +66,11 @@ module OpenAI
|
|
|
66
66
|
}
|
|
67
67
|
attr_writer :spend_control
|
|
68
68
|
|
|
69
|
+
# Replaces the session's referenced vaults. Omit to retain them; null or [] clears
|
|
70
|
+
# them.
|
|
71
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
72
|
+
attr_accessor :vault_ids
|
|
73
|
+
|
|
69
74
|
sig do
|
|
70
75
|
params(
|
|
71
76
|
|
|
@@ -81,6 +86,8 @@ module OpenAI
|
|
|
81
86
|
|
|
82
87
|
spend_control: T.nilable(OpenAI::Beta::Agents::SessionUpdateParams::SpendControl::OrHash),
|
|
83
88
|
|
|
89
|
+
vault_ids: T.nilable(T::Array[String]),
|
|
90
|
+
|
|
84
91
|
request_options: OpenAI::RequestOptions::OrHash
|
|
85
92
|
)
|
|
86
93
|
.returns(T.attached_class)
|
|
@@ -109,6 +116,10 @@ module OpenAI
|
|
|
109
116
|
# spend.
|
|
110
117
|
spend_control: nil,
|
|
111
118
|
|
|
119
|
+
# Replaces the session's referenced vaults. Omit to retain them; null or [] clears
|
|
120
|
+
# them.
|
|
121
|
+
vault_ids: nil,
|
|
122
|
+
|
|
112
123
|
request_options: {}
|
|
113
124
|
)
|
|
114
125
|
end
|
|
@@ -122,6 +133,7 @@ module OpenAI
|
|
|
122
133
|
prompt_cache_options: T.nilable(OpenAI::Beta::Agents::SessionUpdateParams::PromptCacheOptions),
|
|
123
134
|
review: OpenAI::Beta::Agents::SessionUpdateParams::Review::OrSymbol,
|
|
124
135
|
spend_control: T.nilable(OpenAI::Beta::Agents::SessionUpdateParams::SpendControl),
|
|
136
|
+
vault_ids: T.nilable(T::Array[String]),
|
|
125
137
|
request_options: OpenAI::RequestOptions
|
|
126
138
|
}
|
|
127
139
|
)
|
|
@@ -47,6 +47,17 @@ module OpenAI
|
|
|
47
47
|
sig { params(image: OpenAI::Beta::BetaCompactedResponse::Image::OrHash).void }
|
|
48
48
|
attr_writer :image
|
|
49
49
|
|
|
50
|
+
# A stable identifier that was used for safety monitoring and abuse detection.
|
|
51
|
+
sig { returns(T.nilable(String)) }
|
|
52
|
+
attr_accessor :safety_identifier
|
|
53
|
+
|
|
54
|
+
# The service tier used for compaction, when reported.
|
|
55
|
+
sig { returns(T.nilable(String)) }
|
|
56
|
+
attr_reader :service_tier
|
|
57
|
+
|
|
58
|
+
sig { params(service_tier: String).void }
|
|
59
|
+
attr_writer :service_tier
|
|
60
|
+
|
|
50
61
|
sig do
|
|
51
62
|
params(
|
|
52
63
|
|
|
@@ -96,6 +107,10 @@ module OpenAI
|
|
|
96
107
|
|
|
97
108
|
image: OpenAI::Beta::BetaCompactedResponse::Image::OrHash,
|
|
98
109
|
|
|
110
|
+
safety_identifier: T.nilable(String),
|
|
111
|
+
|
|
112
|
+
service_tier: String,
|
|
113
|
+
|
|
99
114
|
object: Symbol
|
|
100
115
|
)
|
|
101
116
|
.returns(T.attached_class)
|
|
@@ -118,6 +133,12 @@ module OpenAI
|
|
|
118
133
|
|
|
119
134
|
image: nil,
|
|
120
135
|
|
|
136
|
+
# A stable identifier that was used for safety monitoring and abuse detection.
|
|
137
|
+
safety_identifier: nil,
|
|
138
|
+
|
|
139
|
+
# The service tier used for compaction, when reported.
|
|
140
|
+
service_tier: nil,
|
|
141
|
+
|
|
121
142
|
# The object type. Always `response.compaction`.
|
|
122
143
|
|
|
123
144
|
object: :"response.compaction"
|
|
@@ -132,7 +153,9 @@ module OpenAI
|
|
|
132
153
|
object: Symbol,
|
|
133
154
|
output: T::Array[OpenAI::Beta::BetaResponseItem::Variants],
|
|
134
155
|
usage: OpenAI::Beta::BetaResponseUsage,
|
|
135
|
-
image: OpenAI::Beta::BetaCompactedResponse::Image
|
|
156
|
+
image: OpenAI::Beta::BetaCompactedResponse::Image,
|
|
157
|
+
safety_identifier: T.nilable(String),
|
|
158
|
+
service_tier: String
|
|
136
159
|
}
|
|
137
160
|
)
|
|
138
161
|
end
|
|
@@ -52,7 +52,10 @@ module OpenAI
|
|
|
52
52
|
}
|
|
53
53
|
attr_writer :network_policy
|
|
54
54
|
|
|
55
|
-
# An optional list of skills referenced by id or inline data.
|
|
55
|
+
# An optional list of skills referenced by id or inline data. Across all inline
|
|
56
|
+
# skills in this list, decoded ZIP data must total at most 50 MiB and Base64 text
|
|
57
|
+
# must total at most 70,254,592 characters, including line breaks. Skill
|
|
58
|
+
# references do not count toward these limits.
|
|
56
59
|
sig { returns(T.nilable(T::Array[T.any(OpenAI::Beta::BetaSkillReference, OpenAI::Beta::BetaInlineSkill)])) }
|
|
57
60
|
attr_reader :skills
|
|
58
61
|
|
|
@@ -93,7 +96,10 @@ module OpenAI
|
|
|
93
96
|
# Network access policy for the container.
|
|
94
97
|
network_policy: nil,
|
|
95
98
|
|
|
96
|
-
# An optional list of skills referenced by id or inline data.
|
|
99
|
+
# An optional list of skills referenced by id or inline data. Across all inline
|
|
100
|
+
# skills in this list, decoded ZIP data must total at most 50 MiB and Base64 text
|
|
101
|
+
# must total at most 70,254,592 characters, including line breaks. Skill
|
|
102
|
+
# references do not count toward these limits.
|
|
97
103
|
skills: nil,
|
|
98
104
|
|
|
99
105
|
# Automatically creates a container for this request
|
|
@@ -53,17 +53,16 @@ module OpenAI
|
|
|
53
53
|
attr_accessor :instructions
|
|
54
54
|
|
|
55
55
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
56
|
-
# for storing additional information about the object in a structured format
|
|
57
|
-
# querying for objects via API or the dashboard.
|
|
56
|
+
# for storing additional information about the object in a structured format.
|
|
58
57
|
#
|
|
59
58
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
60
59
|
# a maximum length of 512 characters.
|
|
61
60
|
sig { returns(T.nilable(T::Hash[Symbol, String])) }
|
|
62
61
|
attr_accessor :metadata
|
|
63
62
|
|
|
64
|
-
# Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a
|
|
65
|
-
# range of models with different capabilities, performance characteristics,
|
|
66
|
-
# price points. Refer to the
|
|
63
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
64
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
65
|
+
# and price points. Refer to the
|
|
67
66
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
68
67
|
# compare available models.
|
|
69
68
|
sig { returns(OpenAI::Beta::BetaResponse::Model::Variants) }
|
|
@@ -544,16 +543,15 @@ module OpenAI
|
|
|
544
543
|
instructions:,
|
|
545
544
|
|
|
546
545
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
547
|
-
# for storing additional information about the object in a structured format
|
|
548
|
-
# querying for objects via API or the dashboard.
|
|
546
|
+
# for storing additional information about the object in a structured format.
|
|
549
547
|
#
|
|
550
548
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
551
549
|
# a maximum length of 512 characters.
|
|
552
550
|
metadata:,
|
|
553
551
|
|
|
554
|
-
# Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a
|
|
555
|
-
# range of models with different capabilities, performance characteristics,
|
|
556
|
-
# price points. Refer to the
|
|
552
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
553
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
554
|
+
# and price points. Refer to the
|
|
557
555
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
558
556
|
# compare available models.
|
|
559
557
|
model:,
|
|
@@ -968,9 +966,9 @@ module OpenAI
|
|
|
968
966
|
|
|
969
967
|
end
|
|
970
968
|
|
|
971
|
-
# Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a
|
|
972
|
-
# range of models with different capabilities, performance characteristics,
|
|
973
|
-
# price points. Refer to the
|
|
969
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
970
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
971
|
+
# and price points. Refer to the
|
|
974
972
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
975
973
|
# compare available models.
|
|
976
974
|
module Model
|
|
@@ -146,17 +146,16 @@ module OpenAI
|
|
|
146
146
|
attr_accessor :max_tool_calls
|
|
147
147
|
|
|
148
148
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
149
|
-
# for storing additional information about the object in a structured format
|
|
150
|
-
# querying for objects via API or the dashboard.
|
|
149
|
+
# for storing additional information about the object in a structured format.
|
|
151
150
|
#
|
|
152
151
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
153
152
|
# a maximum length of 512 characters.
|
|
154
153
|
sig { returns(T.nilable(T::Hash[Symbol, String])) }
|
|
155
154
|
attr_accessor :metadata
|
|
156
155
|
|
|
157
|
-
# Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a
|
|
158
|
-
# range of models with different capabilities, performance characteristics,
|
|
159
|
-
# price points. Refer to the
|
|
156
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
157
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
158
|
+
# and price points. Refer to the
|
|
160
159
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
161
160
|
# compare available models.
|
|
162
161
|
sig {
|
|
@@ -717,16 +716,15 @@ module OpenAI
|
|
|
717
716
|
max_tool_calls: nil,
|
|
718
717
|
|
|
719
718
|
# Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
720
|
-
# for storing additional information about the object in a structured format
|
|
721
|
-
# querying for objects via API or the dashboard.
|
|
719
|
+
# for storing additional information about the object in a structured format.
|
|
722
720
|
#
|
|
723
721
|
# Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
724
722
|
# a maximum length of 512 characters.
|
|
725
723
|
metadata: nil,
|
|
726
724
|
|
|
727
|
-
# Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a
|
|
728
|
-
# range of models with different capabilities, performance characteristics,
|
|
729
|
-
# price points. Refer to the
|
|
725
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
726
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
727
|
+
# and price points. Refer to the
|
|
730
728
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
731
729
|
# compare available models.
|
|
732
730
|
model: nil,
|
|
@@ -1406,9 +1404,9 @@ module OpenAI
|
|
|
1406
1404
|
|
|
1407
1405
|
end
|
|
1408
1406
|
|
|
1409
|
-
# Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a
|
|
1410
|
-
# range of models with different capabilities, performance characteristics,
|
|
1411
|
-
# price points. Refer to the
|
|
1407
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
1408
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
1409
|
+
# and price points. Refer to the
|
|
1412
1410
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
1413
1411
|
# compare available models.
|
|
1414
1412
|
module Model
|
|
@@ -17,9 +17,9 @@ module OpenAI
|
|
|
17
17
|
)
|
|
18
18
|
end
|
|
19
19
|
|
|
20
|
-
# Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a
|
|
21
|
-
# range of models with different capabilities, performance characteristics,
|
|
22
|
-
# price points. Refer to the
|
|
20
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
21
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
22
|
+
# and price points. Refer to the
|
|
23
23
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
24
24
|
# compare available models.
|
|
25
25
|
sig { returns(T.nilable(T.any(OpenAI::Beta::ResponseCompactParams::Model::OrSymbol, String))) }
|
|
@@ -75,6 +75,10 @@ module OpenAI
|
|
|
75
75
|
sig { returns(T.nilable(OpenAI::Beta::ResponseCompactParams::PromptCacheRetention::OrSymbol)) }
|
|
76
76
|
attr_accessor :prompt_cache_retention
|
|
77
77
|
|
|
78
|
+
# A stable identifier used for safety monitoring and abuse detection.
|
|
79
|
+
sig { returns(T.nilable(String)) }
|
|
80
|
+
attr_accessor :safety_identifier
|
|
81
|
+
|
|
78
82
|
# Specifies the processing type used for serving the request. - If set to 'auto',
|
|
79
83
|
# then the request will be processed with the service tier configured in the
|
|
80
84
|
# Project settings. Unless otherwise configured, the Project will use 'default'. -
|
|
@@ -119,6 +123,8 @@ module OpenAI
|
|
|
119
123
|
|
|
120
124
|
prompt_cache_retention: T.nilable(OpenAI::Beta::ResponseCompactParams::PromptCacheRetention::OrSymbol),
|
|
121
125
|
|
|
126
|
+
safety_identifier: T.nilable(String),
|
|
127
|
+
|
|
122
128
|
service_tier: T.nilable(OpenAI::Beta::ResponseCompactParams::ServiceTier::OrSymbol),
|
|
123
129
|
|
|
124
130
|
betas: T::Array[OpenAI::Beta::ResponseCompactParams::Beta::OrSymbol],
|
|
@@ -129,9 +135,9 @@ module OpenAI
|
|
|
129
135
|
end
|
|
130
136
|
def self.new(
|
|
131
137
|
|
|
132
|
-
# Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a
|
|
133
|
-
# range of models with different capabilities, performance characteristics,
|
|
134
|
-
# price points. Refer to the
|
|
138
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
139
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
140
|
+
# and price points. Refer to the
|
|
135
141
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
136
142
|
# compare available models.
|
|
137
143
|
model:,
|
|
@@ -171,6 +177,9 @@ module OpenAI
|
|
|
171
177
|
# How long to retain a prompt cache entry created by this request.
|
|
172
178
|
prompt_cache_retention: nil,
|
|
173
179
|
|
|
180
|
+
# A stable identifier used for safety monitoring and abuse detection.
|
|
181
|
+
safety_identifier: nil,
|
|
182
|
+
|
|
174
183
|
# Specifies the processing type used for serving the request. - If set to 'auto',
|
|
175
184
|
# then the request will be processed with the service tier configured in the
|
|
176
185
|
# Project settings. Unless otherwise configured, the Project will use 'default'. -
|
|
@@ -206,6 +215,7 @@ module OpenAI
|
|
|
206
215
|
prompt_cache_key: T.nilable(String),
|
|
207
216
|
prompt_cache_options: T.nilable(OpenAI::Beta::ResponseCompactParams::PromptCacheOptions),
|
|
208
217
|
prompt_cache_retention: T.nilable(OpenAI::Beta::ResponseCompactParams::PromptCacheRetention::OrSymbol),
|
|
218
|
+
safety_identifier: T.nilable(String),
|
|
209
219
|
service_tier: T.nilable(OpenAI::Beta::ResponseCompactParams::ServiceTier::OrSymbol),
|
|
210
220
|
betas: T::Array[OpenAI::Beta::ResponseCompactParams::Beta::OrSymbol],
|
|
211
221
|
request_options: OpenAI::RequestOptions
|
|
@@ -215,9 +225,9 @@ module OpenAI
|
|
|
215
225
|
def to_hash
|
|
216
226
|
end
|
|
217
227
|
|
|
218
|
-
# Model ID used to generate the response, like `gpt-6-astra`. OpenAI offers a
|
|
219
|
-
# range of models with different capabilities, performance characteristics,
|
|
220
|
-
# price points. Refer to the
|
|
228
|
+
# Model ID used to generate the response, like `gpt-6.2-astra`. OpenAI offers a
|
|
229
|
+
# wide range of models with different capabilities, performance characteristics,
|
|
230
|
+
# and price points. Refer to the
|
|
221
231
|
# [model guide](https://developers.openai.com/api/docs/models) to browse and
|
|
222
232
|
# compare available models.
|
|
223
233
|
module Model
|
|
@@ -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
|
|
@@ -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.
|