openai 0.99.0 → 0.101.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 +26 -0
- data/README.md +1 -1
- data/bedrock.md +17 -1
- data/lib/openai/client.rb +13 -0
- data/lib/openai/helpers/agents/session_stream.rb +11 -36
- data/lib/openai/helpers/agents/tools.rb +34 -4
- data/lib/openai/helpers/beta/agents/creation_stream.rb +26 -0
- data/lib/openai/helpers/beta/agents/function_tool.rb +11 -4
- data/lib/openai/helpers/beta/agents/tool_dispatcher.rb +74 -0
- data/lib/openai/helpers/beta/agents/tool_error.rb +28 -0
- data/lib/openai/models/admin/organization/usage_audio_speeches_response.rb +125 -3
- data/lib/openai/models/admin/organization/usage_audio_transcriptions_response.rb +125 -3
- data/lib/openai/models/admin/organization/usage_code_interpreter_sessions_response.rb +125 -3
- data/lib/openai/models/admin/organization/usage_completions_params.rb +9 -4
- data/lib/openai/models/admin/organization/usage_completions_response.rb +125 -3
- data/lib/openai/models/admin/organization/usage_costs_params.rb +16 -4
- data/lib/openai/models/admin/organization/usage_costs_response.rb +125 -3
- data/lib/openai/models/admin/organization/usage_embeddings_response.rb +125 -3
- data/lib/openai/models/admin/organization/usage_file_search_calls_response.rb +125 -3
- data/lib/openai/models/admin/organization/usage_images_response.rb +125 -3
- data/lib/openai/models/admin/organization/usage_moderations_response.rb +125 -3
- data/lib/openai/models/admin/organization/usage_vector_stores_response.rb +125 -3
- data/lib/openai/models/admin/organization/usage_web_search_calls_params.rb +9 -4
- data/lib/openai/models/admin/organization/usage_web_search_calls_response.rb +125 -3
- data/lib/openai/models/beta/agents/environments/template_create_params.rb +6 -6
- data/lib/openai/models/beta/agents/environments/template_update_params.rb +3 -6
- data/lib/openai/models/beta/agents/sessions/turns/item_list_params.rb +79 -0
- data/lib/openai/models/beta/beta_response_computer_tool_call_output_item.rb +2 -2
- data/lib/openai/models/beta/beta_response_error.rb +12 -1
- data/lib/openai/models/beta/beta_response_tool_search_output_item_param.rb +1166 -3
- data/lib/openai/models/beta/beta_responses_server_event.rb +12 -1
- data/lib/openai/models/beta/beta_tool.rb +12 -9
- data/lib/openai/models/beta/beta_tool_search_output_namespace_tool.rb +176 -0
- data/lib/openai/models/beta/environment_param.rb +6 -6
- data/lib/openai/models/beta/session_turn_error.rb +9 -0
- data/lib/openai/models/chat/chat_completion_chunk.rb +85 -18
- data/lib/openai/models/decision.rb +313 -0
- data/lib/openai/models/decision_create_params.rb +233 -0
- data/lib/openai/models/decision_input_image.rb +53 -0
- data/lib/openai/models/decision_input_message.rb +60 -0
- data/lib/openai/models/decision_input_part.rb +20 -0
- data/lib/openai/models/decision_input_text.rb +21 -0
- data/lib/openai/models/error_object.rb +12 -1
- data/lib/openai/models/eval_create_params.rb +1 -1
- data/lib/openai/models/eval_create_response.rb +1 -1
- data/lib/openai/models/eval_list_response.rb +1 -1
- data/lib/openai/models/eval_retrieve_response.rb +1 -1
- data/lib/openai/models/eval_update_response.rb +1 -1
- data/lib/openai/models/fine_tuning/job_list_params.rb +14 -4
- data/lib/openai/models/graders/score_model_grader.rb +2 -2
- data/lib/openai/models/image_edit_params.rb +12 -9
- data/lib/openai/models/realtime/realtime_client_event.rb +9 -0
- data/lib/openai/models/realtime/session_update_event.rb +16 -0
- data/lib/openai/models/responses/response_computer_tool_call_output_item.rb +2 -2
- data/lib/openai/models/responses/response_error.rb +12 -1
- data/lib/openai/models/responses/response_tool_search_output_item_param.rb +1166 -3
- data/lib/openai/models/responses/responses_server_event.rb +12 -1
- data/lib/openai/models/responses/tool.rb +12 -9
- data/lib/openai/models/responses/tool_search_output_namespace_tool.rb +174 -0
- data/lib/openai/models/video_create_error.rb +12 -1
- data/lib/openai/models.rb +12 -0
- data/lib/openai/providers/bedrock.rb +20 -1
- data/lib/openai/resources/admin/organization/usage.rb +15 -6
- data/lib/openai/resources/beta/agents/environments/templates.rb +3 -4
- data/lib/openai/resources/beta/agents/sessions/turns/items.rb +68 -0
- data/lib/openai/resources/beta/agents/sessions/turns.rb +4 -0
- data/lib/openai/resources/beta/agents/sessions.rb +22 -2
- data/lib/openai/resources/decisions.rb +59 -0
- data/lib/openai/resources/fine_tuning/jobs.rb +7 -2
- data/lib/openai/resources/images.rb +8 -6
- data/lib/openai/version.rb +1 -1
- data/lib/openai.rb +11 -0
- data/rbi/openai/client.rbi +3 -0
- data/rbi/openai/helpers/agents.rbi +2 -0
- data/rbi/openai/helpers/beta/agents/function_tool.rbi +8 -3
- data/rbi/openai/helpers/beta/agents/tool_error.rbi +19 -0
- data/rbi/openai/helpers/beta/agents.rbi +12 -0
- data/rbi/openai/models/admin/organization/usage_audio_speeches_response.rbi +194 -1
- data/rbi/openai/models/admin/organization/usage_audio_transcriptions_response.rbi +194 -1
- data/rbi/openai/models/admin/organization/usage_code_interpreter_sessions_response.rbi +194 -1
- data/rbi/openai/models/admin/organization/usage_completions_params.rbi +9 -4
- data/rbi/openai/models/admin/organization/usage_completions_response.rbi +194 -1
- data/rbi/openai/models/admin/organization/usage_costs_params.rbi +16 -4
- data/rbi/openai/models/admin/organization/usage_costs_response.rbi +194 -1
- data/rbi/openai/models/admin/organization/usage_embeddings_response.rbi +194 -1
- data/rbi/openai/models/admin/organization/usage_file_search_calls_response.rbi +194 -1
- data/rbi/openai/models/admin/organization/usage_images_response.rbi +194 -1
- data/rbi/openai/models/admin/organization/usage_moderations_response.rbi +194 -1
- data/rbi/openai/models/admin/organization/usage_vector_stores_response.rbi +194 -1
- data/rbi/openai/models/admin/organization/usage_web_search_calls_params.rbi +12 -4
- data/rbi/openai/models/admin/organization/usage_web_search_calls_response.rbi +194 -1
- data/rbi/openai/models/beta/agents/environments/template_create_params.rbi +6 -6
- data/rbi/openai/models/beta/agents/environments/template_update_params.rbi +3 -6
- data/rbi/openai/models/beta/agents/sessions/turns/item_list_params.rbi +139 -0
- data/rbi/openai/models/beta/beta_response_computer_tool_call_output_item.rbi +2 -2
- data/rbi/openai/models/beta/beta_response_error.rbi +12 -0
- data/rbi/openai/models/beta/beta_response_tool_search_output_item_param.rbi +1893 -18
- data/rbi/openai/models/beta/beta_responses_server_event.rbi +12 -0
- data/rbi/openai/models/beta/beta_tool.rbi +12 -9
- data/rbi/openai/models/beta/beta_tool_search_output_namespace_tool.rbi +272 -0
- data/rbi/openai/models/beta/environment_param.rbi +6 -6
- data/rbi/openai/models/beta/session_turn_error.rbi +18 -0
- data/rbi/openai/models/chat/chat_completion_chunk.rbi +123 -17
- data/rbi/openai/models/decision.rbi +586 -0
- data/rbi/openai/models/decision_create_params.rbi +435 -0
- data/rbi/openai/models/decision_input_image.rbi +81 -0
- data/rbi/openai/models/decision_input_message.rbi +96 -0
- data/rbi/openai/models/decision_input_part.rbi +24 -0
- data/rbi/openai/models/decision_input_text.rbi +49 -0
- data/rbi/openai/models/error_object.rbi +12 -0
- data/rbi/openai/models/eval_create_params.rbi +1 -1
- data/rbi/openai/models/eval_create_response.rbi +1 -1
- data/rbi/openai/models/eval_list_response.rbi +1 -1
- data/rbi/openai/models/eval_retrieve_response.rbi +1 -1
- data/rbi/openai/models/eval_update_response.rbi +1 -1
- data/rbi/openai/models/fine_tuning/job_list_params.rbi +14 -4
- data/rbi/openai/models/graders/score_model_grader.rbi +2 -2
- data/rbi/openai/models/image_edit_params.rbi +12 -9
- data/rbi/openai/models/realtime/session_update_event.rbi +16 -0
- data/rbi/openai/models/responses/response_computer_tool_call_output_item.rbi +2 -2
- data/rbi/openai/models/responses/response_error.rbi +12 -0
- data/rbi/openai/models/responses/response_tool_search_output_item_param.rbi +1901 -18
- data/rbi/openai/models/responses/responses_server_event.rbi +12 -0
- data/rbi/openai/models/responses/tool.rbi +12 -9
- data/rbi/openai/models/responses/tool_search_output_namespace_tool.rbi +272 -0
- data/rbi/openai/models/video_create_error.rbi +12 -0
- data/rbi/openai/models.rbi +12 -0
- data/rbi/openai/resources/admin/organization/usage.rbi +15 -6
- data/rbi/openai/resources/beta/agents/environments/templates.rbi +3 -4
- data/rbi/openai/resources/beta/agents/sessions/turns/items.rbi +62 -0
- data/rbi/openai/resources/beta/agents/sessions/turns.rbi +3 -0
- data/rbi/openai/resources/beta/agents/sessions.rbi +2 -0
- data/rbi/openai/resources/decisions.rbi +57 -0
- data/rbi/openai/resources/fine_tuning/jobs.rbi +7 -2
- data/rbi/openai/resources/images.rbi +8 -6
- data/sig/openai/client.rbs +2 -0
- data/sig/openai/helpers/agents.rbs +3 -0
- data/sig/openai/helpers/beta/agents/function_tool.rbs +5 -2
- data/sig/openai/helpers/beta/agents/tool_error.rbs +17 -0
- data/sig/openai/helpers/beta/agents.rbs +5 -0
- data/sig/openai/models/admin/organization/usage_audio_speeches_response.rbs +87 -2
- data/sig/openai/models/admin/organization/usage_audio_transcriptions_response.rbs +87 -2
- data/sig/openai/models/admin/organization/usage_code_interpreter_sessions_response.rbs +87 -2
- data/sig/openai/models/admin/organization/usage_completions_params.rbs +14 -6
- data/sig/openai/models/admin/organization/usage_completions_response.rbs +87 -2
- data/sig/openai/models/admin/organization/usage_costs_params.rbs +25 -7
- data/sig/openai/models/admin/organization/usage_costs_response.rbs +87 -2
- data/sig/openai/models/admin/organization/usage_embeddings_response.rbs +87 -2
- data/sig/openai/models/admin/organization/usage_file_search_calls_response.rbs +87 -2
- data/sig/openai/models/admin/organization/usage_images_response.rbs +87 -2
- data/sig/openai/models/admin/organization/usage_moderations_response.rbs +87 -2
- data/sig/openai/models/admin/organization/usage_vector_stores_response.rbs +87 -2
- data/sig/openai/models/admin/organization/usage_web_search_calls_params.rbs +19 -7
- data/sig/openai/models/admin/organization/usage_web_search_calls_response.rbs +87 -2
- data/sig/openai/models/beta/agents/environments/template_create_params.rbs +4 -4
- data/sig/openai/models/beta/agents/environments/template_update_params.rbs +2 -4
- data/sig/openai/models/beta/agents/sessions/turns/item_list_params.rbs +91 -0
- data/sig/openai/models/beta/beta_response_computer_tool_call_output_item.rbs +2 -2
- data/sig/openai/models/beta/beta_response_error.rbs +10 -0
- data/sig/openai/models/beta/beta_response_tool_search_output_item_param.rbs +993 -4
- data/sig/openai/models/beta/beta_responses_server_event.rbs +10 -0
- data/sig/openai/models/beta/beta_tool.rbs +8 -6
- data/sig/openai/models/beta/beta_tool_search_output_namespace_tool.rbs +162 -0
- data/sig/openai/models/beta/environment_param.rbs +4 -4
- data/sig/openai/models/beta/session_turn_error.rbs +12 -0
- data/sig/openai/models/chat/chat_completion_chunk.rbs +96 -12
- data/sig/openai/models/decision.rbs +296 -0
- data/sig/openai/models/decision_create_params.rbs +227 -0
- data/sig/openai/models/decision_input_image.rbs +51 -0
- data/sig/openai/models/decision_input_message.rbs +57 -0
- data/sig/openai/models/decision_input_part.rbs +12 -0
- data/sig/openai/models/decision_input_text.rbs +15 -0
- data/sig/openai/models/error_object.rbs +10 -0
- data/sig/openai/models/eval_create_params.rbs +1 -1
- data/sig/openai/models/eval_create_response.rbs +1 -1
- data/sig/openai/models/eval_list_response.rbs +1 -1
- data/sig/openai/models/eval_retrieve_response.rbs +1 -1
- data/sig/openai/models/eval_update_response.rbs +1 -1
- data/sig/openai/models/fine_tuning/job_list_params.rbs +14 -4
- data/sig/openai/models/graders/score_model_grader.rbs +3 -3
- data/sig/openai/models/image_edit_params.rbs +8 -6
- data/sig/openai/models/responses/response_computer_tool_call_output_item.rbs +2 -2
- data/sig/openai/models/responses/response_error.rbs +10 -0
- data/sig/openai/models/responses/response_tool_search_output_item_param.rbs +993 -4
- data/sig/openai/models/responses/responses_server_event.rbs +10 -0
- data/sig/openai/models/responses/tool.rbs +8 -6
- data/sig/openai/models/responses/tool_search_output_namespace_tool.rbs +160 -0
- data/sig/openai/models/video_create_error.rbs +10 -0
- data/sig/openai/models.rbs +12 -0
- data/sig/openai/resources/beta/agents/sessions/turns/items.rbs +24 -0
- data/sig/openai/resources/beta/agents/sessions/turns.rbs +2 -0
- data/sig/openai/resources/beta/agents/sessions.rbs +1 -0
- data/sig/openai/resources/decisions.rbs +15 -0
- metadata +38 -1
|
@@ -95,6 +95,11 @@ module OpenAI
|
|
|
95
95
|
sig { params(error_type: T.any(String, OpenAI::ErrorObject::Misalignment::ErrorType::OrSymbol)).void }
|
|
96
96
|
attr_writer :error_type
|
|
97
97
|
|
|
98
|
+
# An opaque target for explicitly continuing this review, or null when
|
|
99
|
+
# unavailable.
|
|
100
|
+
sig { returns(T.nilable(String)) }
|
|
101
|
+
attr_accessor :review_target
|
|
102
|
+
|
|
98
103
|
# An optional public continuation instruction.
|
|
99
104
|
sig { returns(T.nilable(OpenAI::ErrorObject::Misalignment::Steer)) }
|
|
100
105
|
attr_reader :steer
|
|
@@ -109,6 +114,8 @@ module OpenAI
|
|
|
109
114
|
|
|
110
115
|
error_type: T.any(String, OpenAI::ErrorObject::Misalignment::ErrorType::OrSymbol),
|
|
111
116
|
|
|
117
|
+
review_target: T.nilable(String),
|
|
118
|
+
|
|
112
119
|
steer: OpenAI::ErrorObject::Misalignment::Steer::OrHash
|
|
113
120
|
)
|
|
114
121
|
.returns(T.attached_class)
|
|
@@ -121,6 +128,10 @@ module OpenAI
|
|
|
121
128
|
# An optional classification; clients must accept additional values.
|
|
122
129
|
error_type: nil,
|
|
123
130
|
|
|
131
|
+
# An opaque target for explicitly continuing this review, or null when
|
|
132
|
+
# unavailable.
|
|
133
|
+
review_target: nil,
|
|
134
|
+
|
|
124
135
|
# An optional public continuation instruction.
|
|
125
136
|
|
|
126
137
|
steer: nil
|
|
@@ -132,6 +143,7 @@ module OpenAI
|
|
|
132
143
|
{
|
|
133
144
|
detailed_explanation: String,
|
|
134
145
|
error_type: T.any(String, OpenAI::ErrorObject::Misalignment::ErrorType::OrSymbol),
|
|
146
|
+
review_target: T.nilable(String),
|
|
135
147
|
steer: OpenAI::ErrorObject::Misalignment::Steer
|
|
136
148
|
}
|
|
137
149
|
)
|
|
@@ -1021,7 +1021,7 @@ module OpenAI
|
|
|
1021
1021
|
# The name of the grader.
|
|
1022
1022
|
name:,
|
|
1023
1023
|
|
|
1024
|
-
# The
|
|
1024
|
+
# The service requires two numbers for the score range. Defaults to `[0, 1]`.
|
|
1025
1025
|
range: nil,
|
|
1026
1026
|
|
|
1027
1027
|
# The sampling parameters for the model.
|
|
@@ -413,7 +413,7 @@ module OpenAI
|
|
|
413
413
|
# The name of the grader.
|
|
414
414
|
name:,
|
|
415
415
|
|
|
416
|
-
# The
|
|
416
|
+
# The service requires two numbers for the score range. Defaults to `[0, 1]`.
|
|
417
417
|
range: nil,
|
|
418
418
|
|
|
419
419
|
# The sampling parameters for the model.
|
|
@@ -413,7 +413,7 @@ module OpenAI
|
|
|
413
413
|
# The name of the grader.
|
|
414
414
|
name:,
|
|
415
415
|
|
|
416
|
-
# The
|
|
416
|
+
# The service requires two numbers for the score range. Defaults to `[0, 1]`.
|
|
417
417
|
range: nil,
|
|
418
418
|
|
|
419
419
|
# The sampling parameters for the model.
|
|
@@ -413,7 +413,7 @@ module OpenAI
|
|
|
413
413
|
# The name of the grader.
|
|
414
414
|
name:,
|
|
415
415
|
|
|
416
|
-
# The
|
|
416
|
+
# The service requires two numbers for the score range. Defaults to `[0, 1]`.
|
|
417
417
|
range: nil,
|
|
418
418
|
|
|
419
419
|
# The sampling parameters for the model.
|
|
@@ -413,7 +413,7 @@ module OpenAI
|
|
|
413
413
|
# The name of the grader.
|
|
414
414
|
name:,
|
|
415
415
|
|
|
416
|
-
# The
|
|
416
|
+
# The service requires two numbers for the score range. Defaults to `[0, 1]`.
|
|
417
417
|
range: nil,
|
|
418
418
|
|
|
419
419
|
# The sampling parameters for the model.
|
|
@@ -31,8 +31,13 @@ module OpenAI
|
|
|
31
31
|
sig { params(limit: Integer).void }
|
|
32
32
|
attr_writer :limit
|
|
33
33
|
|
|
34
|
-
# Optional metadata filter. To filter, use the syntax `metadata[k]=v`.
|
|
35
|
-
#
|
|
34
|
+
# Optional metadata filter. To filter, use the syntax `metadata[k]=v`. Omitting
|
|
35
|
+
# the parameter or passing an empty object applies no metadata filter. An empty
|
|
36
|
+
# value, such as `metadata[k]=`, filters for that key with an empty string value.
|
|
37
|
+
# To select jobs with null metadata, send the literal query string
|
|
38
|
+
# `metadata=null`. Nullable caller types do not specify how a client serializes
|
|
39
|
+
# null for a deep-object parameter. Use a raw query parameter if the client omits
|
|
40
|
+
# null. Do not combine the two query forms.
|
|
36
41
|
sig { returns(T.nilable(T::Hash[Symbol, String])) }
|
|
37
42
|
attr_accessor :metadata
|
|
38
43
|
|
|
@@ -57,8 +62,13 @@ module OpenAI
|
|
|
57
62
|
# Number of fine-tuning jobs to retrieve.
|
|
58
63
|
limit: nil,
|
|
59
64
|
|
|
60
|
-
# Optional metadata filter. To filter, use the syntax `metadata[k]=v`.
|
|
61
|
-
#
|
|
65
|
+
# Optional metadata filter. To filter, use the syntax `metadata[k]=v`. Omitting
|
|
66
|
+
# the parameter or passing an empty object applies no metadata filter. An empty
|
|
67
|
+
# value, such as `metadata[k]=`, filters for that key with an empty string value.
|
|
68
|
+
# To select jobs with null metadata, send the literal query string
|
|
69
|
+
# `metadata=null`. Nullable caller types do not specify how a client serializes
|
|
70
|
+
# null for a deep-object parameter. Use a raw query parameter if the client omits
|
|
71
|
+
# null. Do not combine the two query forms.
|
|
62
72
|
metadata: nil,
|
|
63
73
|
|
|
64
74
|
request_options: {}
|
|
@@ -33,7 +33,7 @@ module OpenAI
|
|
|
33
33
|
sig { returns(Symbol) }
|
|
34
34
|
attr_accessor :type
|
|
35
35
|
|
|
36
|
-
# The
|
|
36
|
+
# The service requires two numbers for the score range. Defaults to `[0, 1]`.
|
|
37
37
|
sig { returns(T.nilable(T::Array[Float])) }
|
|
38
38
|
attr_reader :range
|
|
39
39
|
|
|
@@ -77,7 +77,7 @@ module OpenAI
|
|
|
77
77
|
# The name of the grader.
|
|
78
78
|
name:,
|
|
79
79
|
|
|
80
|
-
# The
|
|
80
|
+
# The service requires two numbers for the score range. Defaults to `[0, 1]`.
|
|
81
81
|
range: nil,
|
|
82
82
|
|
|
83
83
|
# The sampling parameters for the model.
|
|
@@ -47,9 +47,10 @@ module OpenAI
|
|
|
47
47
|
sig { returns(T.nilable(OpenAI::ImageEditParams::Background::OrSymbol)) }
|
|
48
48
|
attr_accessor :background
|
|
49
49
|
|
|
50
|
-
#
|
|
51
|
-
#
|
|
52
|
-
# `gpt-image-
|
|
50
|
+
# Control how much effort the model will exert to match the style and features,
|
|
51
|
+
# especially facial features, of input images. Supports `high` and `low` on
|
|
52
|
+
# `gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For
|
|
53
|
+
# `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.
|
|
53
54
|
sig { returns(T.nilable(OpenAI::ImageEditParams::InputFidelity::OrSymbol)) }
|
|
54
55
|
attr_accessor :input_fidelity
|
|
55
56
|
|
|
@@ -201,9 +202,10 @@ module OpenAI
|
|
|
201
202
|
# set the output format to `png` or `webp`.
|
|
202
203
|
background: nil,
|
|
203
204
|
|
|
204
|
-
#
|
|
205
|
-
#
|
|
206
|
-
# `gpt-image-
|
|
205
|
+
# Control how much effort the model will exert to match the style and features,
|
|
206
|
+
# especially facial features, of input images. Supports `high` and `low` on
|
|
207
|
+
# `gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For
|
|
208
|
+
# `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.
|
|
207
209
|
input_fidelity: nil,
|
|
208
210
|
|
|
209
211
|
# An additional image whose fully transparent areas (e.g. where alpha is zero)
|
|
@@ -348,9 +350,10 @@ module OpenAI
|
|
|
348
350
|
end
|
|
349
351
|
end
|
|
350
352
|
|
|
351
|
-
#
|
|
352
|
-
#
|
|
353
|
-
# `gpt-image-
|
|
353
|
+
# Control how much effort the model will exert to match the style and features,
|
|
354
|
+
# especially facial features, of input images. Supports `high` and `low` on
|
|
355
|
+
# `gpt-image-1` and `gpt-image-1.5`; `gpt-image-1-mini` supports only `low`. For
|
|
356
|
+
# `gpt-image-2`, omit this parameter. Defaults to `low` on supported models.
|
|
354
357
|
module InputFidelity
|
|
355
358
|
extend OpenAI::Internal::Type::Enum
|
|
356
359
|
|
|
@@ -49,6 +49,22 @@ module OpenAI
|
|
|
49
49
|
# fields that are present in the `session.update` are updated. To clear a field
|
|
50
50
|
# like `instructions`, pass an empty string. To clear a field like `tools`, pass
|
|
51
51
|
# an empty array. To clear a field like `turn_detection`, pass `null`.
|
|
52
|
+
#
|
|
53
|
+
# To turn off input audio noise reduction, send this Realtime event:
|
|
54
|
+
#
|
|
55
|
+
# ```json
|
|
56
|
+
# {
|
|
57
|
+
# "type": "session.update",
|
|
58
|
+
# "session": {
|
|
59
|
+
# "type": "realtime",
|
|
60
|
+
# "audio": { "input": { "noise_reduction": null } }
|
|
61
|
+
# }
|
|
62
|
+
# }
|
|
63
|
+
# ```
|
|
64
|
+
#
|
|
65
|
+
# For a transcription session, use `"type":"transcription"` inside `session`.
|
|
66
|
+
# Omitting `audio.input.noise_reduction` from an update leaves its current setting
|
|
67
|
+
# unchanged.
|
|
52
68
|
sig do
|
|
53
69
|
params(
|
|
54
70
|
|
|
@@ -14,7 +14,7 @@ module OpenAI
|
|
|
14
14
|
)
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
-
# The
|
|
17
|
+
# The ID of the computer tool call output.
|
|
18
18
|
sig { returns(String) }
|
|
19
19
|
attr_accessor :id
|
|
20
20
|
|
|
@@ -85,7 +85,7 @@ module OpenAI
|
|
|
85
85
|
end
|
|
86
86
|
def self.new(
|
|
87
87
|
|
|
88
|
-
# The
|
|
88
|
+
# The ID of the computer tool call output.
|
|
89
89
|
id:,
|
|
90
90
|
|
|
91
91
|
# The ID of the computer tool call that produced the output.
|
|
@@ -137,6 +137,11 @@ module OpenAI
|
|
|
137
137
|
}
|
|
138
138
|
attr_writer :error_type
|
|
139
139
|
|
|
140
|
+
# An opaque target for explicitly continuing this review, or null when
|
|
141
|
+
# unavailable.
|
|
142
|
+
sig { returns(T.nilable(String)) }
|
|
143
|
+
attr_accessor :review_target
|
|
144
|
+
|
|
140
145
|
# An optional public continuation instruction.
|
|
141
146
|
sig { returns(T.nilable(OpenAI::Responses::ResponseError::Misalignment::Steer)) }
|
|
142
147
|
attr_reader :steer
|
|
@@ -151,6 +156,8 @@ module OpenAI
|
|
|
151
156
|
|
|
152
157
|
error_type: T.any(String, OpenAI::Responses::ResponseError::Misalignment::ErrorType::OrSymbol),
|
|
153
158
|
|
|
159
|
+
review_target: T.nilable(String),
|
|
160
|
+
|
|
154
161
|
steer: OpenAI::Responses::ResponseError::Misalignment::Steer::OrHash
|
|
155
162
|
)
|
|
156
163
|
.returns(T.attached_class)
|
|
@@ -163,6 +170,10 @@ module OpenAI
|
|
|
163
170
|
# An optional classification; clients must accept additional values.
|
|
164
171
|
error_type: nil,
|
|
165
172
|
|
|
173
|
+
# An opaque target for explicitly continuing this review, or null when
|
|
174
|
+
# unavailable.
|
|
175
|
+
review_target: nil,
|
|
176
|
+
|
|
166
177
|
# An optional public continuation instruction.
|
|
167
178
|
|
|
168
179
|
steer: nil
|
|
@@ -174,6 +185,7 @@ module OpenAI
|
|
|
174
185
|
{
|
|
175
186
|
detailed_explanation: String,
|
|
176
187
|
error_type: OpenAI::Responses::ResponseError::Misalignment::ErrorType::Variants,
|
|
188
|
+
review_target: T.nilable(String),
|
|
177
189
|
steer: OpenAI::Responses::ResponseError::Misalignment::Steer
|
|
178
190
|
}
|
|
179
191
|
)
|