openai 0.97.0 → 0.99.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 +31 -0
- data/README.md +76 -1
- data/lib/openai/helpers/agents/session_stream.rb +60 -3
- data/lib/openai/helpers/beta/agents/artifacts.rb +72 -0
- data/lib/openai/helpers/beta/agents/creation_stream.rb +69 -0
- data/lib/openai/helpers/beta/agents/files.rb +236 -0
- data/lib/openai/helpers/beta/agents/function_tool.rb +65 -0
- data/lib/openai/helpers/beta/agents/model_adapter.rb +27 -0
- data/lib/openai/helpers/beta/agents/result.rb +170 -0
- data/lib/openai/helpers/beta/agents/typed_output.rb +191 -0
- data/lib/openai/helpers/live/websocket.rb +7 -1
- data/lib/openai/helpers/realtime/conversation_item_variant_resolver.rb +1 -1
- data/lib/openai/helpers/responses_websocket/connection.rb +7 -1
- data/lib/openai/helpers/responses_websocket/session.rb +5 -1
- data/lib/openai/helpers/responses_websocket/transports/async_websocket.rb +12 -2
- data/lib/openai/internal/transport/base_client.rb +18 -0
- data/lib/openai/internal/type/array_of.rb +1 -1
- data/lib/openai/internal/type/base_model.rb +6 -3
- data/lib/openai/internal/type/converter.rb +50 -3
- data/lib/openai/internal/type/hash_of.rb +1 -1
- data/lib/openai/internal/type/union.rb +6 -6
- data/lib/openai/models/admin/organization/usage_audio_speeches_response.rb +16 -3
- data/lib/openai/models/admin/organization/usage_audio_transcriptions_response.rb +16 -3
- data/lib/openai/models/admin/organization/usage_code_interpreter_sessions_response.rb +16 -3
- data/lib/openai/models/admin/organization/usage_completions_response.rb +16 -3
- data/lib/openai/models/admin/organization/usage_costs_response.rb +16 -3
- data/lib/openai/models/admin/organization/usage_embeddings_response.rb +16 -3
- data/lib/openai/models/admin/organization/usage_file_search_calls_response.rb +16 -3
- data/lib/openai/models/admin/organization/usage_images_response.rb +16 -3
- data/lib/openai/models/admin/organization/usage_moderations_response.rb +16 -3
- data/lib/openai/models/admin/organization/usage_vector_stores_response.rb +16 -3
- data/lib/openai/models/admin/organization/usage_web_search_calls_response.rb +16 -3
- data/lib/openai/models/all_models.rb +42 -0
- data/lib/openai/models/audio/speech_create_params.rb +6 -0
- data/lib/openai/models/audio/voice.rb +75 -0
- data/lib/openai/models/audio/voice_create_params.rb +217 -0
- data/lib/openai/models/beta/agent_create_params.rb +0 -3
- data/lib/openai/models/beta/agent_update_params.rb +0 -3
- data/lib/openai/models/beta/agents/session_create_params.rb +0 -3
- data/lib/openai/models/beta/agents/session_update_params.rb +0 -3
- data/lib/openai/models/beta/agents/sessions/session_trace.rb +64 -0
- data/lib/openai/models/beta/agents/sessions/trace_list_params.rb +68 -0
- data/lib/openai/models/beta/agents/vaults/credential.rb +8 -4
- data/lib/openai/models/beta/beta_response.rb +220 -0
- data/lib/openai/models/beta/beta_response_output_text.rb +2 -2
- data/lib/openai/models/beta/beta_response_output_text_annotation_added_event.rb +2 -2
- data/lib/openai/models/beta/beta_responses_client_event.rb +220 -0
- data/lib/openai/models/beta/beta_tool.rb +3 -9
- data/lib/openai/models/beta/environment.rb +33 -1
- data/lib/openai/models/beta/environment_param.rb +24 -1
- data/lib/openai/models/beta/response_compact_params.rb +220 -0
- data/lib/openai/models/beta/response_create_params.rb +220 -0
- data/lib/openai/models/beta/session_turn_error.rb +3 -0
- data/lib/openai/models/chat/chat_completion_audio_param.rb +6 -3
- data/lib/openai/models/chat/chat_completion_content_part_image.rb +1 -0
- data/lib/openai/models/chat_model.rb +178 -0
- data/lib/openai/models/image.rb +14 -14
- data/lib/openai/models/image_create_variation_params.rb +7 -7
- data/lib/openai/models/image_edit_params.rb +76 -87
- data/lib/openai/models/image_generate_params.rb +51 -62
- data/lib/openai/models/image_model.rb +5 -3
- data/lib/openai/models/live/fork_server_event.rb +14 -3
- data/lib/openai/models/live/server_event.rb +14 -3
- data/lib/openai/models/realtime/realtime_audio_config_output.rb +9 -6
- data/lib/openai/models/realtime/realtime_response_create_audio_output.rb +9 -6
- data/lib/openai/models/realtime/translations/client_secret_create_params.rb +28 -0
- data/lib/openai/models/responses/response_compact_params.rb +220 -0
- data/lib/openai/models/responses/response_output_text.rb +2 -2
- data/lib/openai/models/responses/response_output_text_annotation_added_event.rb +2 -2
- data/lib/openai/models/responses/tool.rb +3 -9
- data/lib/openai/models/responses_model.rb +42 -0
- data/lib/openai/models/webhooks/agent_session_action_required_webhook_event.rb +109 -0
- data/lib/openai/models/webhooks/agent_session_created_webhook_event.rb +106 -0
- data/lib/openai/models/webhooks/agent_session_failed_webhook_event.rb +86 -0
- data/lib/openai/models/webhooks/agent_session_idle_webhook_event.rb +86 -0
- data/lib/openai/models/webhooks/agent_session_in_progress_webhook_event.rb +86 -0
- data/lib/openai/models/webhooks/unwrap_webhook_event.rb +18 -2
- data/lib/openai/models/webhooks/webhook_create_params.rb +5 -0
- data/lib/openai/models/webhooks/webhook_test_params.rb +5 -0
- data/lib/openai/models/webhooks/webhook_update_params.rb +5 -0
- data/lib/openai/resources/audio/speech.rb +2 -0
- data/lib/openai/resources/audio/voices.rb +53 -0
- data/lib/openai/resources/audio.rb +5 -0
- data/lib/openai/resources/beta/agents/environments/files.rb +31 -0
- data/lib/openai/resources/beta/agents/sessions/artifacts.rb +8 -0
- data/lib/openai/resources/beta/agents/sessions/events.rb +6 -5
- data/lib/openai/resources/beta/agents/sessions/traces.rb +58 -0
- data/lib/openai/resources/beta/agents/sessions.rb +18 -5
- data/lib/openai/resources/evals/runs.rb +1 -1
- data/lib/openai/resources/images.rb +71 -103
- data/lib/openai/resources/realtime/translations/client_secrets.rb +58 -0
- data/lib/openai/resources/realtime/translations.rb +20 -0
- data/lib/openai/resources/realtime.rb +4 -0
- data/lib/openai/resources/webhooks.rb +1 -1
- data/lib/openai/version.rb +1 -1
- data/lib/openai.rb +17 -1
- data/rbi/openai/helpers/agents.rbi +20 -1
- data/rbi/openai/helpers/beta/agents/artifacts.rbi +29 -0
- data/rbi/openai/helpers/beta/agents/files.rbi +65 -0
- data/rbi/openai/helpers/beta/agents/function_tool.rbi +40 -0
- data/rbi/openai/helpers/beta/agents/model_adapter.rbi +22 -0
- data/rbi/openai/helpers/beta/agents.rbi +146 -0
- data/rbi/openai/internal/transport/base_client.rbi +12 -0
- data/rbi/openai/internal/type/base_model.rbi +2 -2
- data/rbi/openai/internal/type/converter.rbi +21 -3
- data/rbi/openai/internal/type/union.rbi +6 -2
- data/rbi/openai/models/admin/organization/usage_audio_speeches_response.rbi +19 -2
- data/rbi/openai/models/admin/organization/usage_audio_transcriptions_response.rbi +19 -2
- data/rbi/openai/models/admin/organization/usage_code_interpreter_sessions_response.rbi +19 -2
- data/rbi/openai/models/admin/organization/usage_completions_response.rbi +19 -2
- data/rbi/openai/models/admin/organization/usage_costs_response.rbi +19 -2
- data/rbi/openai/models/admin/organization/usage_embeddings_response.rbi +19 -2
- data/rbi/openai/models/admin/organization/usage_file_search_calls_response.rbi +19 -2
- data/rbi/openai/models/admin/organization/usage_images_response.rbi +19 -2
- data/rbi/openai/models/admin/organization/usage_moderations_response.rbi +19 -2
- data/rbi/openai/models/admin/organization/usage_vector_stores_response.rbi +19 -2
- data/rbi/openai/models/admin/organization/usage_web_search_calls_response.rbi +19 -2
- data/rbi/openai/models/audio/speech_create_params.rbi +6 -0
- data/rbi/openai/models/audio/voice.rbi +111 -0
- data/rbi/openai/models/audio/voice_create_params.rbi +321 -0
- data/rbi/openai/models/beta/agent_create_params.rbi +0 -3
- data/rbi/openai/models/beta/agent_update_params.rbi +0 -3
- data/rbi/openai/models/beta/agents/session_create_params.rbi +0 -3
- data/rbi/openai/models/beta/agents/session_update_params.rbi +0 -3
- data/rbi/openai/models/beta/agents/sessions/session_trace.rbi +97 -0
- data/rbi/openai/models/beta/agents/sessions/trace_list_params.rbi +121 -0
- data/rbi/openai/models/beta/agents/vaults/credential.rbi +5 -5
- data/rbi/openai/models/beta/beta_response_output_text.rbi +2 -2
- data/rbi/openai/models/beta/beta_response_output_text_annotation_added_event.rbi +2 -2
- data/rbi/openai/models/beta/beta_tool.rbi +3 -9
- data/rbi/openai/models/beta/environment.rbi +29 -0
- data/rbi/openai/models/beta/environment_param.rbi +31 -0
- data/rbi/openai/models/beta/session_turn_error.rbi +3 -0
- data/rbi/openai/models/chat/chat_completion_audio_param.rbi +6 -3
- data/rbi/openai/models/chat/chat_completion_content_part_image.rbi +1 -0
- data/rbi/openai/models/image.rbi +14 -14
- data/rbi/openai/models/image_create_variation_params.rbi +6 -6
- data/rbi/openai/models/image_edit_params.rbi +61 -82
- data/rbi/openai/models/image_generate_params.rbi +30 -61
- data/rbi/openai/models/image_model.rbi +3 -3
- data/rbi/openai/models/live/fork_server_event.rbi +14 -2
- data/rbi/openai/models/live/server_event.rbi +14 -2
- data/rbi/openai/models/realtime/realtime_audio_config_output.rbi +9 -6
- data/rbi/openai/models/realtime/realtime_response_create_audio_output.rbi +9 -6
- data/rbi/openai/models/realtime/translations/client_secret_create_params.rbi +68 -0
- data/rbi/openai/models/responses/response_output_text.rbi +2 -2
- data/rbi/openai/models/responses/response_output_text_annotation_added_event.rbi +2 -2
- data/rbi/openai/models/responses/tool.rbi +3 -9
- data/rbi/openai/models/webhooks/agent_session_action_required_webhook_event.rbi +222 -0
- data/rbi/openai/models/webhooks/agent_session_created_webhook_event.rbi +202 -0
- data/rbi/openai/models/webhooks/agent_session_failed_webhook_event.rbi +151 -0
- data/rbi/openai/models/webhooks/agent_session_idle_webhook_event.rbi +151 -0
- data/rbi/openai/models/webhooks/agent_session_in_progress_webhook_event.rbi +151 -0
- data/rbi/openai/models/webhooks/unwrap_webhook_event.rbi +7 -1
- data/rbi/openai/models/webhooks/webhook_create_params.rbi +20 -0
- data/rbi/openai/models/webhooks/webhook_test_params.rbi +20 -0
- data/rbi/openai/models/webhooks/webhook_update_params.rbi +20 -0
- data/rbi/openai/resources/audio/speech.rbi +2 -0
- data/rbi/openai/resources/audio/voices.rbi +49 -0
- data/rbi/openai/resources/audio.rbi +4 -0
- data/rbi/openai/resources/beta/agents/environments/files.rbi +31 -0
- data/rbi/openai/resources/beta/agents/sessions/artifacts.rbi +8 -0
- data/rbi/openai/resources/beta/agents/sessions/events.rbi +6 -5
- data/rbi/openai/resources/beta/agents/sessions/traces.rbi +54 -0
- data/rbi/openai/resources/beta/agents/sessions.rbi +6 -1
- data/rbi/openai/resources/images.rbi +69 -103
- data/rbi/openai/resources/realtime/translations/client_secrets.rbi +54 -0
- data/rbi/openai/resources/realtime/translations.rbi +22 -0
- data/rbi/openai/resources/realtime.rbi +3 -0
- data/rbi/openai/resources/webhooks.rbi +5 -0
- data/sig/openai/helpers/agents.rbs +7 -0
- data/sig/openai/helpers/beta/agents/artifacts.rbs +20 -0
- data/sig/openai/helpers/beta/agents/files.rbs +41 -0
- data/sig/openai/helpers/beta/agents/function_tool.rbs +24 -0
- data/sig/openai/helpers/beta/agents/model_adapter.rbs +16 -0
- data/sig/openai/helpers/beta/agents.rbs +71 -0
- data/sig/openai/helpers/structured_output.rbs +12 -0
- data/sig/openai/internal/transport/base_client.rbs +8 -0
- data/sig/openai/internal/type/base_model.rbs +3 -1
- data/sig/openai/internal/type/converter.rbs +16 -2
- data/sig/openai/internal/type/union.rbs +2 -1
- data/sig/openai/models/admin/organization/usage_audio_speeches_response.rbs +20 -3
- data/sig/openai/models/admin/organization/usage_audio_transcriptions_response.rbs +20 -3
- data/sig/openai/models/admin/organization/usage_code_interpreter_sessions_response.rbs +20 -3
- data/sig/openai/models/admin/organization/usage_completions_response.rbs +20 -3
- data/sig/openai/models/admin/organization/usage_costs_response.rbs +20 -3
- data/sig/openai/models/admin/organization/usage_embeddings_response.rbs +20 -3
- data/sig/openai/models/admin/organization/usage_file_search_calls_response.rbs +20 -3
- data/sig/openai/models/admin/organization/usage_images_response.rbs +20 -3
- data/sig/openai/models/admin/organization/usage_moderations_response.rbs +20 -3
- data/sig/openai/models/admin/organization/usage_vector_stores_response.rbs +20 -3
- data/sig/openai/models/admin/organization/usage_web_search_calls_response.rbs +20 -3
- data/sig/openai/models/audio/speech_create_params.rbs +4 -0
- data/sig/openai/models/audio/voice.rbs +70 -0
- data/sig/openai/models/audio/voice_create_params.rbs +203 -0
- data/sig/openai/models/beta/agent_create_params.rbs +1 -5
- data/sig/openai/models/beta/agent_update_params.rbs +1 -5
- data/sig/openai/models/beta/agents/session_create_params.rbs +1 -5
- data/sig/openai/models/beta/agents/session_update_params.rbs +1 -5
- data/sig/openai/models/beta/agents/sessions/session_trace.rbs +65 -0
- data/sig/openai/models/beta/agents/sessions/trace_list_params.rbs +81 -0
- data/sig/openai/models/beta/agents/vaults/credential.rbs +5 -5
- data/sig/openai/models/beta/beta_response_output_text.rbs +2 -2
- data/sig/openai/models/beta/beta_response_output_text_annotation_added_event.rbs +2 -2
- data/sig/openai/models/beta/beta_tool.rbs +3 -9
- data/sig/openai/models/beta/environment.rbs +22 -0
- data/sig/openai/models/beta/environment_param.rbs +25 -0
- data/sig/openai/models/beta/session_turn_error.rbs +4 -0
- data/sig/openai/models/chat/chat_completion_audio_param.rbs +4 -2
- data/sig/openai/models/chat/chat_completion_content_part_image.rbs +2 -1
- data/sig/openai/models/image.rbs +21 -21
- data/sig/openai/models/image_create_variation_params.rbs +4 -4
- data/sig/openai/models/image_edit_params.rbs +46 -60
- data/sig/openai/models/image_generate_params.rbs +23 -45
- data/sig/openai/models/image_model.rbs +6 -6
- data/sig/openai/models/live/fork_server_event.rbs +17 -2
- data/sig/openai/models/live/server_event.rbs +17 -2
- data/sig/openai/models/realtime/realtime_audio_config_output.rbs +9 -6
- data/sig/openai/models/realtime/realtime_response_create_audio_output.rbs +9 -6
- data/sig/openai/models/realtime/translations/client_secret_create_params.rbs +39 -0
- data/sig/openai/models/responses/response_output_text.rbs +2 -2
- data/sig/openai/models/responses/response_output_text_annotation_added_event.rbs +2 -2
- data/sig/openai/models/responses/tool.rbs +3 -9
- data/sig/openai/models/webhooks/agent_session_action_required_webhook_event.rbs +114 -0
- data/sig/openai/models/webhooks/agent_session_created_webhook_event.rbs +115 -0
- data/sig/openai/models/webhooks/agent_session_failed_webhook_event.rbs +89 -0
- data/sig/openai/models/webhooks/agent_session_idle_webhook_event.rbs +89 -0
- data/sig/openai/models/webhooks/agent_session_in_progress_webhook_event.rbs +89 -0
- data/sig/openai/models/webhooks/unwrap_webhook_event.rbs +6 -1
- data/sig/openai/models/webhooks/webhook_create_params.rbs +10 -0
- data/sig/openai/models/webhooks/webhook_test_params.rbs +10 -0
- data/sig/openai/models/webhooks/webhook_update_params.rbs +10 -0
- data/sig/openai/resources/audio/voices.rbs +14 -0
- data/sig/openai/resources/audio.rbs +2 -0
- data/sig/openai/resources/beta/agents/environments/files.rbs +17 -0
- data/sig/openai/resources/beta/agents/sessions/artifacts.rbs +4 -0
- data/sig/openai/resources/beta/agents/sessions/traces.rbs +21 -0
- data/sig/openai/resources/beta/agents/sessions.rbs +4 -1
- data/sig/openai/resources/realtime/translations/client_secrets.rbs +17 -0
- data/sig/openai/resources/realtime/translations.rbs +11 -0
- data/sig/openai/resources/realtime.rbs +2 -0
- data/sig/openai/resources/webhooks.rbs +6 -1
- metadata +61 -1
|
@@ -162,6 +162,14 @@ module OpenAI
|
|
|
162
162
|
OpenAI::Internal::Transport::BaseClient::request_components req
|
|
163
163
|
) -> top
|
|
164
164
|
|
|
165
|
+
# @api private
|
|
166
|
+
def request_streaming_body: (
|
|
167
|
+
request_components req,
|
|
168
|
+
?(^-> untyped)? on_response
|
|
169
|
+
) {
|
|
170
|
+
(String chunk) -> untyped
|
|
171
|
+
} -> void
|
|
172
|
+
|
|
165
173
|
private def perform_request: (
|
|
166
174
|
OpenAI::Internal::Transport::BaseClient::request_components req
|
|
167
175
|
) ?{
|
|
@@ -13,7 +13,9 @@ module OpenAI
|
|
|
13
13
|
def self.known_fields: -> ::Hash[Symbol, (OpenAI::Internal::Type::BaseModel::known_field
|
|
14
14
|
& { type_fn: (^-> OpenAI::Internal::Type::Converter::input) })]
|
|
15
15
|
|
|
16
|
-
def self.fields:
|
|
16
|
+
def self.fields: (
|
|
17
|
+
?state: OpenAI::Internal::Type::Converter::coerce_state?
|
|
18
|
+
) -> ::Hash[Symbol, (OpenAI::Internal::Type::BaseModel::known_field
|
|
17
19
|
& { type: OpenAI::Internal::Type::Converter::input })]
|
|
18
20
|
|
|
19
21
|
private def self.add_field: (
|
|
@@ -13,7 +13,8 @@ module OpenAI
|
|
|
13
13
|
strictness: bool,
|
|
14
14
|
exactness: { yes: Integer, no: Integer, maybe: Integer },
|
|
15
15
|
error: StandardError?,
|
|
16
|
-
branched: Integer
|
|
16
|
+
branched: Integer,
|
|
17
|
+
memo: Hash[untyped, untyped]?
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
type dump_state = { can_retry: bool }
|
|
@@ -59,7 +60,8 @@ module OpenAI
|
|
|
59
60
|
|
|
60
61
|
def self.new_coerce_state: (
|
|
61
62
|
?translate_names: bool,
|
|
62
|
-
?request_only: bool
|
|
63
|
+
?request_only: bool,
|
|
64
|
+
?memoize: bool
|
|
63
65
|
) -> OpenAI::Internal::Type::Converter::coerce_state
|
|
64
66
|
|
|
65
67
|
def self.coerce: (
|
|
@@ -68,6 +70,18 @@ module OpenAI
|
|
|
68
70
|
?state: OpenAI::Internal::Type::Converter::coerce_state
|
|
69
71
|
) -> top
|
|
70
72
|
|
|
73
|
+
# @api private
|
|
74
|
+
def self.resolve_type: (
|
|
75
|
+
^-> untyped type_fn,
|
|
76
|
+
?state: coerce_state?
|
|
77
|
+
) -> untyped
|
|
78
|
+
|
|
79
|
+
def self.coerce_cached: (
|
|
80
|
+
OpenAI::Internal::Type::Converter target,
|
|
81
|
+
Hash[untyped, untyped] | Array[untyped] value,
|
|
82
|
+
state: OpenAI::Internal::Type::Converter::coerce_state
|
|
83
|
+
) -> untyped
|
|
84
|
+
|
|
71
85
|
def self.coerce_with_error: (
|
|
72
86
|
OpenAI::Internal::Type::Converter::input target,
|
|
73
87
|
top value,
|
|
@@ -89,6 +89,7 @@ module OpenAI
|
|
|
89
89
|
?api_key_id: String?,
|
|
90
90
|
?batch: bool?,
|
|
91
91
|
?input_audio_tokens: Integer,
|
|
92
|
+
?:input_cache_write_12h_tokens => Integer,
|
|
92
93
|
?input_cache_write_tokens: Integer,
|
|
93
94
|
?input_cached_audio_tokens: Integer,
|
|
94
95
|
?input_cached_image_tokens: Integer,
|
|
@@ -136,10 +137,20 @@ module OpenAI
|
|
|
136
137
|
# The aggregated number of uncached audio input tokens used.
|
|
137
138
|
def input_audio_tokens=: (Integer) -> Integer
|
|
138
139
|
|
|
139
|
-
# The aggregated number of input tokens written to the cache
|
|
140
|
+
# The aggregated number of input tokens written to the cache with a 12-hour
|
|
141
|
+
# retention period.
|
|
142
|
+
attr_reader input_cache_write_12h_tokens: Integer?
|
|
143
|
+
|
|
144
|
+
# The aggregated number of input tokens written to the cache with a 12-hour
|
|
145
|
+
# retention period.
|
|
146
|
+
def input_cache_write_12h_tokens=: (Integer) -> Integer
|
|
147
|
+
|
|
148
|
+
# The aggregated number of input tokens written to the cache with a 30-minute
|
|
149
|
+
# retention period.
|
|
140
150
|
attr_reader input_cache_write_tokens: Integer?
|
|
141
151
|
|
|
142
|
-
# The aggregated number of input tokens written to the cache
|
|
152
|
+
# The aggregated number of input tokens written to the cache with a 30-minute
|
|
153
|
+
# retention period.
|
|
143
154
|
def input_cache_write_tokens=: (Integer) -> Integer
|
|
144
155
|
|
|
145
156
|
# The aggregated number of cached audio input tokens used.
|
|
@@ -242,8 +253,12 @@ module OpenAI
|
|
|
242
253
|
# batch or not.
|
|
243
254
|
# @param input_audio_tokens
|
|
244
255
|
# The aggregated number of uncached audio input tokens used.
|
|
256
|
+
# @param input_cache_write_12h_tokens
|
|
257
|
+
# The aggregated number of input tokens written to the cache with a 12-hour
|
|
258
|
+
# retention period.
|
|
245
259
|
# @param input_cache_write_tokens
|
|
246
|
-
# The aggregated number of input tokens written to the cache
|
|
260
|
+
# The aggregated number of input tokens written to the cache with a 30-minute
|
|
261
|
+
# retention period.
|
|
247
262
|
# @param input_cached_audio_tokens
|
|
248
263
|
# The aggregated number of cached audio input tokens used.
|
|
249
264
|
# @param input_cached_image_tokens
|
|
@@ -286,6 +301,7 @@ module OpenAI
|
|
|
286
301
|
?api_key_id: String?,
|
|
287
302
|
?batch: bool?,
|
|
288
303
|
?input_audio_tokens: Integer,
|
|
304
|
+
?input_cache_write_12h_tokens: Integer,
|
|
289
305
|
?input_cache_write_tokens: Integer,
|
|
290
306
|
?input_cached_audio_tokens: Integer,
|
|
291
307
|
?input_cached_image_tokens: Integer,
|
|
@@ -312,6 +328,7 @@ module OpenAI
|
|
|
312
328
|
?api_key_id: String?,
|
|
313
329
|
?batch: bool?,
|
|
314
330
|
?input_audio_tokens: Integer,
|
|
331
|
+
?:input_cache_write_12h_tokens => Integer,
|
|
315
332
|
?input_cache_write_tokens: Integer,
|
|
316
333
|
?input_cached_audio_tokens: Integer,
|
|
317
334
|
?input_cached_image_tokens: Integer,
|
|
@@ -89,6 +89,7 @@ module OpenAI
|
|
|
89
89
|
?api_key_id: String?,
|
|
90
90
|
?batch: bool?,
|
|
91
91
|
?input_audio_tokens: Integer,
|
|
92
|
+
?:input_cache_write_12h_tokens => Integer,
|
|
92
93
|
?input_cache_write_tokens: Integer,
|
|
93
94
|
?input_cached_audio_tokens: Integer,
|
|
94
95
|
?input_cached_image_tokens: Integer,
|
|
@@ -136,10 +137,20 @@ module OpenAI
|
|
|
136
137
|
# The aggregated number of uncached audio input tokens used.
|
|
137
138
|
def input_audio_tokens=: (Integer) -> Integer
|
|
138
139
|
|
|
139
|
-
# The aggregated number of input tokens written to the cache
|
|
140
|
+
# The aggregated number of input tokens written to the cache with a 12-hour
|
|
141
|
+
# retention period.
|
|
142
|
+
attr_reader input_cache_write_12h_tokens: Integer?
|
|
143
|
+
|
|
144
|
+
# The aggregated number of input tokens written to the cache with a 12-hour
|
|
145
|
+
# retention period.
|
|
146
|
+
def input_cache_write_12h_tokens=: (Integer) -> Integer
|
|
147
|
+
|
|
148
|
+
# The aggregated number of input tokens written to the cache with a 30-minute
|
|
149
|
+
# retention period.
|
|
140
150
|
attr_reader input_cache_write_tokens: Integer?
|
|
141
151
|
|
|
142
|
-
# The aggregated number of input tokens written to the cache
|
|
152
|
+
# The aggregated number of input tokens written to the cache with a 30-minute
|
|
153
|
+
# retention period.
|
|
143
154
|
def input_cache_write_tokens=: (Integer) -> Integer
|
|
144
155
|
|
|
145
156
|
# The aggregated number of cached audio input tokens used.
|
|
@@ -242,8 +253,12 @@ module OpenAI
|
|
|
242
253
|
# batch or not.
|
|
243
254
|
# @param input_audio_tokens
|
|
244
255
|
# The aggregated number of uncached audio input tokens used.
|
|
256
|
+
# @param input_cache_write_12h_tokens
|
|
257
|
+
# The aggregated number of input tokens written to the cache with a 12-hour
|
|
258
|
+
# retention period.
|
|
245
259
|
# @param input_cache_write_tokens
|
|
246
|
-
# The aggregated number of input tokens written to the cache
|
|
260
|
+
# The aggregated number of input tokens written to the cache with a 30-minute
|
|
261
|
+
# retention period.
|
|
247
262
|
# @param input_cached_audio_tokens
|
|
248
263
|
# The aggregated number of cached audio input tokens used.
|
|
249
264
|
# @param input_cached_image_tokens
|
|
@@ -286,6 +301,7 @@ module OpenAI
|
|
|
286
301
|
?api_key_id: String?,
|
|
287
302
|
?batch: bool?,
|
|
288
303
|
?input_audio_tokens: Integer,
|
|
304
|
+
?input_cache_write_12h_tokens: Integer,
|
|
289
305
|
?input_cache_write_tokens: Integer,
|
|
290
306
|
?input_cached_audio_tokens: Integer,
|
|
291
307
|
?input_cached_image_tokens: Integer,
|
|
@@ -312,6 +328,7 @@ module OpenAI
|
|
|
312
328
|
?api_key_id: String?,
|
|
313
329
|
?batch: bool?,
|
|
314
330
|
?input_audio_tokens: Integer,
|
|
331
|
+
?:input_cache_write_12h_tokens => Integer,
|
|
315
332
|
?input_cache_write_tokens: Integer,
|
|
316
333
|
?input_cached_audio_tokens: Integer,
|
|
317
334
|
?input_cached_image_tokens: Integer,
|
|
@@ -89,6 +89,7 @@ module OpenAI
|
|
|
89
89
|
?api_key_id: String?,
|
|
90
90
|
?batch: bool?,
|
|
91
91
|
?input_audio_tokens: Integer,
|
|
92
|
+
?:input_cache_write_12h_tokens => Integer,
|
|
92
93
|
?input_cache_write_tokens: Integer,
|
|
93
94
|
?input_cached_audio_tokens: Integer,
|
|
94
95
|
?input_cached_image_tokens: Integer,
|
|
@@ -136,10 +137,20 @@ module OpenAI
|
|
|
136
137
|
# The aggregated number of uncached audio input tokens used.
|
|
137
138
|
def input_audio_tokens=: (Integer) -> Integer
|
|
138
139
|
|
|
139
|
-
# The aggregated number of input tokens written to the cache
|
|
140
|
+
# The aggregated number of input tokens written to the cache with a 12-hour
|
|
141
|
+
# retention period.
|
|
142
|
+
attr_reader input_cache_write_12h_tokens: Integer?
|
|
143
|
+
|
|
144
|
+
# The aggregated number of input tokens written to the cache with a 12-hour
|
|
145
|
+
# retention period.
|
|
146
|
+
def input_cache_write_12h_tokens=: (Integer) -> Integer
|
|
147
|
+
|
|
148
|
+
# The aggregated number of input tokens written to the cache with a 30-minute
|
|
149
|
+
# retention period.
|
|
140
150
|
attr_reader input_cache_write_tokens: Integer?
|
|
141
151
|
|
|
142
|
-
# The aggregated number of input tokens written to the cache
|
|
152
|
+
# The aggregated number of input tokens written to the cache with a 30-minute
|
|
153
|
+
# retention period.
|
|
143
154
|
def input_cache_write_tokens=: (Integer) -> Integer
|
|
144
155
|
|
|
145
156
|
# The aggregated number of cached audio input tokens used.
|
|
@@ -242,8 +253,12 @@ module OpenAI
|
|
|
242
253
|
# batch or not.
|
|
243
254
|
# @param input_audio_tokens
|
|
244
255
|
# The aggregated number of uncached audio input tokens used.
|
|
256
|
+
# @param input_cache_write_12h_tokens
|
|
257
|
+
# The aggregated number of input tokens written to the cache with a 12-hour
|
|
258
|
+
# retention period.
|
|
245
259
|
# @param input_cache_write_tokens
|
|
246
|
-
# The aggregated number of input tokens written to the cache
|
|
260
|
+
# The aggregated number of input tokens written to the cache with a 30-minute
|
|
261
|
+
# retention period.
|
|
247
262
|
# @param input_cached_audio_tokens
|
|
248
263
|
# The aggregated number of cached audio input tokens used.
|
|
249
264
|
# @param input_cached_image_tokens
|
|
@@ -286,6 +301,7 @@ module OpenAI
|
|
|
286
301
|
?api_key_id: String?,
|
|
287
302
|
?batch: bool?,
|
|
288
303
|
?input_audio_tokens: Integer,
|
|
304
|
+
?input_cache_write_12h_tokens: Integer,
|
|
289
305
|
?input_cache_write_tokens: Integer,
|
|
290
306
|
?input_cached_audio_tokens: Integer,
|
|
291
307
|
?input_cached_image_tokens: Integer,
|
|
@@ -312,6 +328,7 @@ module OpenAI
|
|
|
312
328
|
?api_key_id: String?,
|
|
313
329
|
?batch: bool?,
|
|
314
330
|
?input_audio_tokens: Integer,
|
|
331
|
+
?:input_cache_write_12h_tokens => Integer,
|
|
315
332
|
?input_cache_write_tokens: Integer,
|
|
316
333
|
?input_cached_audio_tokens: Integer,
|
|
317
334
|
?input_cached_image_tokens: Integer,
|
|
@@ -89,6 +89,7 @@ module OpenAI
|
|
|
89
89
|
?api_key_id: String?,
|
|
90
90
|
?batch: bool?,
|
|
91
91
|
?input_audio_tokens: Integer,
|
|
92
|
+
?:input_cache_write_12h_tokens => Integer,
|
|
92
93
|
?input_cache_write_tokens: Integer,
|
|
93
94
|
?input_cached_audio_tokens: Integer,
|
|
94
95
|
?input_cached_image_tokens: Integer,
|
|
@@ -136,10 +137,20 @@ module OpenAI
|
|
|
136
137
|
# The aggregated number of uncached audio input tokens used.
|
|
137
138
|
def input_audio_tokens=: (Integer) -> Integer
|
|
138
139
|
|
|
139
|
-
# The aggregated number of input tokens written to the cache
|
|
140
|
+
# The aggregated number of input tokens written to the cache with a 12-hour
|
|
141
|
+
# retention period.
|
|
142
|
+
attr_reader input_cache_write_12h_tokens: Integer?
|
|
143
|
+
|
|
144
|
+
# The aggregated number of input tokens written to the cache with a 12-hour
|
|
145
|
+
# retention period.
|
|
146
|
+
def input_cache_write_12h_tokens=: (Integer) -> Integer
|
|
147
|
+
|
|
148
|
+
# The aggregated number of input tokens written to the cache with a 30-minute
|
|
149
|
+
# retention period.
|
|
140
150
|
attr_reader input_cache_write_tokens: Integer?
|
|
141
151
|
|
|
142
|
-
# The aggregated number of input tokens written to the cache
|
|
152
|
+
# The aggregated number of input tokens written to the cache with a 30-minute
|
|
153
|
+
# retention period.
|
|
143
154
|
def input_cache_write_tokens=: (Integer) -> Integer
|
|
144
155
|
|
|
145
156
|
# The aggregated number of cached audio input tokens used.
|
|
@@ -242,8 +253,12 @@ module OpenAI
|
|
|
242
253
|
# batch or not.
|
|
243
254
|
# @param input_audio_tokens
|
|
244
255
|
# The aggregated number of uncached audio input tokens used.
|
|
256
|
+
# @param input_cache_write_12h_tokens
|
|
257
|
+
# The aggregated number of input tokens written to the cache with a 12-hour
|
|
258
|
+
# retention period.
|
|
245
259
|
# @param input_cache_write_tokens
|
|
246
|
-
# The aggregated number of input tokens written to the cache
|
|
260
|
+
# The aggregated number of input tokens written to the cache with a 30-minute
|
|
261
|
+
# retention period.
|
|
247
262
|
# @param input_cached_audio_tokens
|
|
248
263
|
# The aggregated number of cached audio input tokens used.
|
|
249
264
|
# @param input_cached_image_tokens
|
|
@@ -286,6 +301,7 @@ module OpenAI
|
|
|
286
301
|
?api_key_id: String?,
|
|
287
302
|
?batch: bool?,
|
|
288
303
|
?input_audio_tokens: Integer,
|
|
304
|
+
?input_cache_write_12h_tokens: Integer,
|
|
289
305
|
?input_cache_write_tokens: Integer,
|
|
290
306
|
?input_cached_audio_tokens: Integer,
|
|
291
307
|
?input_cached_image_tokens: Integer,
|
|
@@ -312,6 +328,7 @@ module OpenAI
|
|
|
312
328
|
?api_key_id: String?,
|
|
313
329
|
?batch: bool?,
|
|
314
330
|
?input_audio_tokens: Integer,
|
|
331
|
+
?:input_cache_write_12h_tokens => Integer,
|
|
315
332
|
?input_cache_write_tokens: Integer,
|
|
316
333
|
?input_cached_audio_tokens: Integer,
|
|
317
334
|
?input_cached_image_tokens: Integer,
|
|
@@ -89,6 +89,7 @@ module OpenAI
|
|
|
89
89
|
?api_key_id: String?,
|
|
90
90
|
?batch: bool?,
|
|
91
91
|
?input_audio_tokens: Integer,
|
|
92
|
+
?:input_cache_write_12h_tokens => Integer,
|
|
92
93
|
?input_cache_write_tokens: Integer,
|
|
93
94
|
?input_cached_audio_tokens: Integer,
|
|
94
95
|
?input_cached_image_tokens: Integer,
|
|
@@ -136,10 +137,20 @@ module OpenAI
|
|
|
136
137
|
# The aggregated number of uncached audio input tokens used.
|
|
137
138
|
def input_audio_tokens=: (Integer) -> Integer
|
|
138
139
|
|
|
139
|
-
# The aggregated number of input tokens written to the cache
|
|
140
|
+
# The aggregated number of input tokens written to the cache with a 12-hour
|
|
141
|
+
# retention period.
|
|
142
|
+
attr_reader input_cache_write_12h_tokens: Integer?
|
|
143
|
+
|
|
144
|
+
# The aggregated number of input tokens written to the cache with a 12-hour
|
|
145
|
+
# retention period.
|
|
146
|
+
def input_cache_write_12h_tokens=: (Integer) -> Integer
|
|
147
|
+
|
|
148
|
+
# The aggregated number of input tokens written to the cache with a 30-minute
|
|
149
|
+
# retention period.
|
|
140
150
|
attr_reader input_cache_write_tokens: Integer?
|
|
141
151
|
|
|
142
|
-
# The aggregated number of input tokens written to the cache
|
|
152
|
+
# The aggregated number of input tokens written to the cache with a 30-minute
|
|
153
|
+
# retention period.
|
|
143
154
|
def input_cache_write_tokens=: (Integer) -> Integer
|
|
144
155
|
|
|
145
156
|
# The aggregated number of cached audio input tokens used.
|
|
@@ -242,8 +253,12 @@ module OpenAI
|
|
|
242
253
|
# batch or not.
|
|
243
254
|
# @param input_audio_tokens
|
|
244
255
|
# The aggregated number of uncached audio input tokens used.
|
|
256
|
+
# @param input_cache_write_12h_tokens
|
|
257
|
+
# The aggregated number of input tokens written to the cache with a 12-hour
|
|
258
|
+
# retention period.
|
|
245
259
|
# @param input_cache_write_tokens
|
|
246
|
-
# The aggregated number of input tokens written to the cache
|
|
260
|
+
# The aggregated number of input tokens written to the cache with a 30-minute
|
|
261
|
+
# retention period.
|
|
247
262
|
# @param input_cached_audio_tokens
|
|
248
263
|
# The aggregated number of cached audio input tokens used.
|
|
249
264
|
# @param input_cached_image_tokens
|
|
@@ -286,6 +301,7 @@ module OpenAI
|
|
|
286
301
|
?api_key_id: String?,
|
|
287
302
|
?batch: bool?,
|
|
288
303
|
?input_audio_tokens: Integer,
|
|
304
|
+
?input_cache_write_12h_tokens: Integer,
|
|
289
305
|
?input_cache_write_tokens: Integer,
|
|
290
306
|
?input_cached_audio_tokens: Integer,
|
|
291
307
|
?input_cached_image_tokens: Integer,
|
|
@@ -312,6 +328,7 @@ module OpenAI
|
|
|
312
328
|
?api_key_id: String?,
|
|
313
329
|
?batch: bool?,
|
|
314
330
|
?input_audio_tokens: Integer,
|
|
331
|
+
?:input_cache_write_12h_tokens => Integer,
|
|
315
332
|
?input_cache_write_tokens: Integer,
|
|
316
333
|
?input_cached_audio_tokens: Integer,
|
|
317
334
|
?input_cached_image_tokens: Integer,
|
|
@@ -89,6 +89,7 @@ module OpenAI
|
|
|
89
89
|
?api_key_id: String?,
|
|
90
90
|
?batch: bool?,
|
|
91
91
|
?input_audio_tokens: Integer,
|
|
92
|
+
?:input_cache_write_12h_tokens => Integer,
|
|
92
93
|
?input_cache_write_tokens: Integer,
|
|
93
94
|
?input_cached_audio_tokens: Integer,
|
|
94
95
|
?input_cached_image_tokens: Integer,
|
|
@@ -136,10 +137,20 @@ module OpenAI
|
|
|
136
137
|
# The aggregated number of uncached audio input tokens used.
|
|
137
138
|
def input_audio_tokens=: (Integer) -> Integer
|
|
138
139
|
|
|
139
|
-
# The aggregated number of input tokens written to the cache
|
|
140
|
+
# The aggregated number of input tokens written to the cache with a 12-hour
|
|
141
|
+
# retention period.
|
|
142
|
+
attr_reader input_cache_write_12h_tokens: Integer?
|
|
143
|
+
|
|
144
|
+
# The aggregated number of input tokens written to the cache with a 12-hour
|
|
145
|
+
# retention period.
|
|
146
|
+
def input_cache_write_12h_tokens=: (Integer) -> Integer
|
|
147
|
+
|
|
148
|
+
# The aggregated number of input tokens written to the cache with a 30-minute
|
|
149
|
+
# retention period.
|
|
140
150
|
attr_reader input_cache_write_tokens: Integer?
|
|
141
151
|
|
|
142
|
-
# The aggregated number of input tokens written to the cache
|
|
152
|
+
# The aggregated number of input tokens written to the cache with a 30-minute
|
|
153
|
+
# retention period.
|
|
143
154
|
def input_cache_write_tokens=: (Integer) -> Integer
|
|
144
155
|
|
|
145
156
|
# The aggregated number of cached audio input tokens used.
|
|
@@ -242,8 +253,12 @@ module OpenAI
|
|
|
242
253
|
# batch or not.
|
|
243
254
|
# @param input_audio_tokens
|
|
244
255
|
# The aggregated number of uncached audio input tokens used.
|
|
256
|
+
# @param input_cache_write_12h_tokens
|
|
257
|
+
# The aggregated number of input tokens written to the cache with a 12-hour
|
|
258
|
+
# retention period.
|
|
245
259
|
# @param input_cache_write_tokens
|
|
246
|
-
# The aggregated number of input tokens written to the cache
|
|
260
|
+
# The aggregated number of input tokens written to the cache with a 30-minute
|
|
261
|
+
# retention period.
|
|
247
262
|
# @param input_cached_audio_tokens
|
|
248
263
|
# The aggregated number of cached audio input tokens used.
|
|
249
264
|
# @param input_cached_image_tokens
|
|
@@ -286,6 +301,7 @@ module OpenAI
|
|
|
286
301
|
?api_key_id: String?,
|
|
287
302
|
?batch: bool?,
|
|
288
303
|
?input_audio_tokens: Integer,
|
|
304
|
+
?input_cache_write_12h_tokens: Integer,
|
|
289
305
|
?input_cache_write_tokens: Integer,
|
|
290
306
|
?input_cached_audio_tokens: Integer,
|
|
291
307
|
?input_cached_image_tokens: Integer,
|
|
@@ -312,6 +328,7 @@ module OpenAI
|
|
|
312
328
|
?api_key_id: String?,
|
|
313
329
|
?batch: bool?,
|
|
314
330
|
?input_audio_tokens: Integer,
|
|
331
|
+
?:input_cache_write_12h_tokens => Integer,
|
|
315
332
|
?input_cache_write_tokens: Integer,
|
|
316
333
|
?input_cached_audio_tokens: Integer,
|
|
317
334
|
?input_cached_image_tokens: Integer,
|
|
@@ -89,6 +89,7 @@ module OpenAI
|
|
|
89
89
|
?api_key_id: String?,
|
|
90
90
|
?batch: bool?,
|
|
91
91
|
?input_audio_tokens: Integer,
|
|
92
|
+
?:input_cache_write_12h_tokens => Integer,
|
|
92
93
|
?input_cache_write_tokens: Integer,
|
|
93
94
|
?input_cached_audio_tokens: Integer,
|
|
94
95
|
?input_cached_image_tokens: Integer,
|
|
@@ -136,10 +137,20 @@ module OpenAI
|
|
|
136
137
|
# The aggregated number of uncached audio input tokens used.
|
|
137
138
|
def input_audio_tokens=: (Integer) -> Integer
|
|
138
139
|
|
|
139
|
-
# The aggregated number of input tokens written to the cache
|
|
140
|
+
# The aggregated number of input tokens written to the cache with a 12-hour
|
|
141
|
+
# retention period.
|
|
142
|
+
attr_reader input_cache_write_12h_tokens: Integer?
|
|
143
|
+
|
|
144
|
+
# The aggregated number of input tokens written to the cache with a 12-hour
|
|
145
|
+
# retention period.
|
|
146
|
+
def input_cache_write_12h_tokens=: (Integer) -> Integer
|
|
147
|
+
|
|
148
|
+
# The aggregated number of input tokens written to the cache with a 30-minute
|
|
149
|
+
# retention period.
|
|
140
150
|
attr_reader input_cache_write_tokens: Integer?
|
|
141
151
|
|
|
142
|
-
# The aggregated number of input tokens written to the cache
|
|
152
|
+
# The aggregated number of input tokens written to the cache with a 30-minute
|
|
153
|
+
# retention period.
|
|
143
154
|
def input_cache_write_tokens=: (Integer) -> Integer
|
|
144
155
|
|
|
145
156
|
# The aggregated number of cached audio input tokens used.
|
|
@@ -242,8 +253,12 @@ module OpenAI
|
|
|
242
253
|
# batch or not.
|
|
243
254
|
# @param input_audio_tokens
|
|
244
255
|
# The aggregated number of uncached audio input tokens used.
|
|
256
|
+
# @param input_cache_write_12h_tokens
|
|
257
|
+
# The aggregated number of input tokens written to the cache with a 12-hour
|
|
258
|
+
# retention period.
|
|
245
259
|
# @param input_cache_write_tokens
|
|
246
|
-
# The aggregated number of input tokens written to the cache
|
|
260
|
+
# The aggregated number of input tokens written to the cache with a 30-minute
|
|
261
|
+
# retention period.
|
|
247
262
|
# @param input_cached_audio_tokens
|
|
248
263
|
# The aggregated number of cached audio input tokens used.
|
|
249
264
|
# @param input_cached_image_tokens
|
|
@@ -286,6 +301,7 @@ module OpenAI
|
|
|
286
301
|
?api_key_id: String?,
|
|
287
302
|
?batch: bool?,
|
|
288
303
|
?input_audio_tokens: Integer,
|
|
304
|
+
?input_cache_write_12h_tokens: Integer,
|
|
289
305
|
?input_cache_write_tokens: Integer,
|
|
290
306
|
?input_cached_audio_tokens: Integer,
|
|
291
307
|
?input_cached_image_tokens: Integer,
|
|
@@ -312,6 +328,7 @@ module OpenAI
|
|
|
312
328
|
?api_key_id: String?,
|
|
313
329
|
?batch: bool?,
|
|
314
330
|
?input_audio_tokens: Integer,
|
|
331
|
+
?:input_cache_write_12h_tokens => Integer,
|
|
315
332
|
?input_cache_write_tokens: Integer,
|
|
316
333
|
?input_cached_audio_tokens: Integer,
|
|
317
334
|
?input_cached_image_tokens: Integer,
|
|
@@ -89,6 +89,7 @@ module OpenAI
|
|
|
89
89
|
?api_key_id: String?,
|
|
90
90
|
?batch: bool?,
|
|
91
91
|
?input_audio_tokens: Integer,
|
|
92
|
+
?:input_cache_write_12h_tokens => Integer,
|
|
92
93
|
?input_cache_write_tokens: Integer,
|
|
93
94
|
?input_cached_audio_tokens: Integer,
|
|
94
95
|
?input_cached_image_tokens: Integer,
|
|
@@ -136,10 +137,20 @@ module OpenAI
|
|
|
136
137
|
# The aggregated number of uncached audio input tokens used.
|
|
137
138
|
def input_audio_tokens=: (Integer) -> Integer
|
|
138
139
|
|
|
139
|
-
# The aggregated number of input tokens written to the cache
|
|
140
|
+
# The aggregated number of input tokens written to the cache with a 12-hour
|
|
141
|
+
# retention period.
|
|
142
|
+
attr_reader input_cache_write_12h_tokens: Integer?
|
|
143
|
+
|
|
144
|
+
# The aggregated number of input tokens written to the cache with a 12-hour
|
|
145
|
+
# retention period.
|
|
146
|
+
def input_cache_write_12h_tokens=: (Integer) -> Integer
|
|
147
|
+
|
|
148
|
+
# The aggregated number of input tokens written to the cache with a 30-minute
|
|
149
|
+
# retention period.
|
|
140
150
|
attr_reader input_cache_write_tokens: Integer?
|
|
141
151
|
|
|
142
|
-
# The aggregated number of input tokens written to the cache
|
|
152
|
+
# The aggregated number of input tokens written to the cache with a 30-minute
|
|
153
|
+
# retention period.
|
|
143
154
|
def input_cache_write_tokens=: (Integer) -> Integer
|
|
144
155
|
|
|
145
156
|
# The aggregated number of cached audio input tokens used.
|
|
@@ -242,8 +253,12 @@ module OpenAI
|
|
|
242
253
|
# batch or not.
|
|
243
254
|
# @param input_audio_tokens
|
|
244
255
|
# The aggregated number of uncached audio input tokens used.
|
|
256
|
+
# @param input_cache_write_12h_tokens
|
|
257
|
+
# The aggregated number of input tokens written to the cache with a 12-hour
|
|
258
|
+
# retention period.
|
|
245
259
|
# @param input_cache_write_tokens
|
|
246
|
-
# The aggregated number of input tokens written to the cache
|
|
260
|
+
# The aggregated number of input tokens written to the cache with a 30-minute
|
|
261
|
+
# retention period.
|
|
247
262
|
# @param input_cached_audio_tokens
|
|
248
263
|
# The aggregated number of cached audio input tokens used.
|
|
249
264
|
# @param input_cached_image_tokens
|
|
@@ -286,6 +301,7 @@ module OpenAI
|
|
|
286
301
|
?api_key_id: String?,
|
|
287
302
|
?batch: bool?,
|
|
288
303
|
?input_audio_tokens: Integer,
|
|
304
|
+
?input_cache_write_12h_tokens: Integer,
|
|
289
305
|
?input_cache_write_tokens: Integer,
|
|
290
306
|
?input_cached_audio_tokens: Integer,
|
|
291
307
|
?input_cached_image_tokens: Integer,
|
|
@@ -312,6 +328,7 @@ module OpenAI
|
|
|
312
328
|
?api_key_id: String?,
|
|
313
329
|
?batch: bool?,
|
|
314
330
|
?input_audio_tokens: Integer,
|
|
331
|
+
?:input_cache_write_12h_tokens => Integer,
|
|
315
332
|
?input_cache_write_tokens: Integer,
|
|
316
333
|
?input_cached_audio_tokens: Integer,
|
|
317
334
|
?input_cached_image_tokens: Integer,
|
|
@@ -89,6 +89,7 @@ module OpenAI
|
|
|
89
89
|
?api_key_id: String?,
|
|
90
90
|
?batch: bool?,
|
|
91
91
|
?input_audio_tokens: Integer,
|
|
92
|
+
?:input_cache_write_12h_tokens => Integer,
|
|
92
93
|
?input_cache_write_tokens: Integer,
|
|
93
94
|
?input_cached_audio_tokens: Integer,
|
|
94
95
|
?input_cached_image_tokens: Integer,
|
|
@@ -136,10 +137,20 @@ module OpenAI
|
|
|
136
137
|
# The aggregated number of uncached audio input tokens used.
|
|
137
138
|
def input_audio_tokens=: (Integer) -> Integer
|
|
138
139
|
|
|
139
|
-
# The aggregated number of input tokens written to the cache
|
|
140
|
+
# The aggregated number of input tokens written to the cache with a 12-hour
|
|
141
|
+
# retention period.
|
|
142
|
+
attr_reader input_cache_write_12h_tokens: Integer?
|
|
143
|
+
|
|
144
|
+
# The aggregated number of input tokens written to the cache with a 12-hour
|
|
145
|
+
# retention period.
|
|
146
|
+
def input_cache_write_12h_tokens=: (Integer) -> Integer
|
|
147
|
+
|
|
148
|
+
# The aggregated number of input tokens written to the cache with a 30-minute
|
|
149
|
+
# retention period.
|
|
140
150
|
attr_reader input_cache_write_tokens: Integer?
|
|
141
151
|
|
|
142
|
-
# The aggregated number of input tokens written to the cache
|
|
152
|
+
# The aggregated number of input tokens written to the cache with a 30-minute
|
|
153
|
+
# retention period.
|
|
143
154
|
def input_cache_write_tokens=: (Integer) -> Integer
|
|
144
155
|
|
|
145
156
|
# The aggregated number of cached audio input tokens used.
|
|
@@ -242,8 +253,12 @@ module OpenAI
|
|
|
242
253
|
# batch or not.
|
|
243
254
|
# @param input_audio_tokens
|
|
244
255
|
# The aggregated number of uncached audio input tokens used.
|
|
256
|
+
# @param input_cache_write_12h_tokens
|
|
257
|
+
# The aggregated number of input tokens written to the cache with a 12-hour
|
|
258
|
+
# retention period.
|
|
245
259
|
# @param input_cache_write_tokens
|
|
246
|
-
# The aggregated number of input tokens written to the cache
|
|
260
|
+
# The aggregated number of input tokens written to the cache with a 30-minute
|
|
261
|
+
# retention period.
|
|
247
262
|
# @param input_cached_audio_tokens
|
|
248
263
|
# The aggregated number of cached audio input tokens used.
|
|
249
264
|
# @param input_cached_image_tokens
|
|
@@ -286,6 +301,7 @@ module OpenAI
|
|
|
286
301
|
?api_key_id: String?,
|
|
287
302
|
?batch: bool?,
|
|
288
303
|
?input_audio_tokens: Integer,
|
|
304
|
+
?input_cache_write_12h_tokens: Integer,
|
|
289
305
|
?input_cache_write_tokens: Integer,
|
|
290
306
|
?input_cached_audio_tokens: Integer,
|
|
291
307
|
?input_cached_image_tokens: Integer,
|
|
@@ -312,6 +328,7 @@ module OpenAI
|
|
|
312
328
|
?api_key_id: String?,
|
|
313
329
|
?batch: bool?,
|
|
314
330
|
?input_audio_tokens: Integer,
|
|
331
|
+
?:input_cache_write_12h_tokens => Integer,
|
|
315
332
|
?input_cache_write_tokens: Integer,
|
|
316
333
|
?input_cached_audio_tokens: Integer,
|
|
317
334
|
?input_cached_image_tokens: Integer,
|