Class: OpenAI::Models::Admin::Organization::UsageDecisionsResponse::Data::Result
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Admin::Organization::UsageDecisionsResponse::Data::Result
- Defined in:
- lib/openai/models/admin/organization/usage_decisions_response.rb,
sig/openai/models/admin/organization/usage_decisions_response.rbs
Defined Under Namespace
Modules: APISource
Instance Attribute Summary collapse
-
#api_key_id ⇒ String?
When
group_by=api_key_id, this field provides the API key ID of the grouped usage result. -
#api_source ⇒ OpenAI::Models::Admin::Organization::UsageDecisionsResponse::Data::Result::api_source?
When grouped by
api_source,agents_apiidentifies attributed Agents API activity andunlabeledincludes all records without published source attribution, including historical and unknown origins. -
#batch ⇒ Boolean?
When
group_by=batch, this field tells whether the grouped usage result is batch or not. -
#input_audio_tokens ⇒ Integer?
The aggregated number of uncached audio input tokens used.
-
#input_cache_write_12h_tokens ⇒ Integer?
The aggregated number of input tokens written to the cache with a 12-hour retention period.
-
#input_cache_write_30m_tokens ⇒ Integer?
The aggregated number of input tokens written to the cache with a 30-minute retention period.
-
#input_cache_write_tokens ⇒ Integer?
The aggregated number of input tokens written to the cache across 30-minute and 12-hour retention periods.
-
#input_cached_audio_tokens ⇒ Integer?
The aggregated number of cached audio input tokens used.
-
#input_cached_image_tokens ⇒ Integer?
The aggregated number of cached image input tokens used.
-
#input_cached_text_tokens ⇒ Integer?
The aggregated number of cached text input tokens used.
-
#input_cached_tokens ⇒ Integer?
The aggregated number of cached input tokens used across text, audio, and image inputs.
-
#input_image_tokens ⇒ Integer?
The aggregated number of uncached image input tokens used.
-
#input_text_tokens ⇒ Integer?
The aggregated number of uncached text input tokens used, excluding cache-write tokens.
-
#input_tokens ⇒ Integer
The aggregated number of input tokens used, including cached and cache-write tokens.
-
#input_uncached_tokens ⇒ Integer?
The aggregated number of uncached input tokens used across text, audio, and image inputs, excluding cache-write tokens.
-
#model ⇒ String?
When
group_by=model, this field provides the model name of the grouped usage result. -
#num_model_requests ⇒ Integer
The count of requests made to the model.
- #object ⇒ Symbol, :"organization.usage.decisions.result"
-
#output_audio_tokens ⇒ Integer?
The aggregated number of audio output tokens used.
-
#output_image_tokens ⇒ Integer?
The aggregated number of image output tokens used.
-
#output_text_tokens ⇒ Integer?
The aggregated number of text output tokens used.
-
#output_tokens ⇒ Integer
The aggregated number of output tokens used across text, audio, and image outputs.
-
#project_id ⇒ String?
When
group_by=project_id, this field provides the project ID of the grouped usage result. -
#service_tier ⇒ String?
When
group_by=service_tier, this field provides the service tier of the grouped usage result. -
#user_id ⇒ String?
When
group_by=user_id, this field provides the user ID of the grouped usage result.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(input_tokens:, num_model_requests:, output_tokens:, api_key_id: nil, api_source: nil, batch: nil, input_audio_tokens: nil, input_cache_write_12h_tokens: nil, input_cache_write_30m_tokens: nil, input_cache_write_tokens: nil, input_cached_audio_tokens: nil, input_cached_image_tokens: nil, input_cached_text_tokens: nil, input_cached_tokens: nil, input_image_tokens: nil, input_text_tokens: nil, input_uncached_tokens: nil, model: nil, output_audio_tokens: nil, output_image_tokens: nil, output_text_tokens: nil, project_id: nil, service_tier: nil, user_id: nil, object: :"organization.usage.decisions.result") ⇒ Result
constructor
A new instance of Result.
- #to_hash ⇒ { input_tokens: Integer, num_model_requests: Integer, ?object: :"organization.usage.decisions.result", output_tokens: Integer, ?api_key_id: String?, ?api_source: OpenAI::Models::Admin::Organization::UsageDecisionsResponse::Data::Result::api_source?, ?batch: bool?, ?input_audio_tokens: Integer?, ?:input_cache_write_12h_tokens => Integer?, ?:input_cache_write_30m_tokens => Integer?, ?input_cache_write_tokens: Integer?, ?input_cached_audio_tokens: Integer?, ?input_cached_image_tokens: Integer?, ?input_cached_text_tokens: Integer?, ?input_cached_tokens: Integer?, ?input_image_tokens: Integer?, ?input_text_tokens: Integer?, ?input_uncached_tokens: Integer?, ?model: String?, ?output_audio_tokens: Integer?, ?output_image_tokens: Integer?, ?output_text_tokens: Integer?, ?project_id: String?, ?service_tier: String?, ?user_id: String? }
Methods inherited from Internal::Type::BaseModel
==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, fields, hash, #hash, inherited, #inspect, inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, coerce_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(input_tokens:, num_model_requests:, output_tokens:, api_key_id: nil, api_source: nil, batch: nil, input_audio_tokens: nil, input_cache_write_12h_tokens: nil, input_cache_write_30m_tokens: nil, input_cache_write_tokens: nil, input_cached_audio_tokens: nil, input_cached_image_tokens: nil, input_cached_text_tokens: nil, input_cached_tokens: nil, input_image_tokens: nil, input_text_tokens: nil, input_uncached_tokens: nil, model: nil, output_audio_tokens: nil, output_image_tokens: nil, output_text_tokens: nil, project_id: nil, service_tier: nil, user_id: nil, object: :"organization.usage.decisions.result") ⇒ Result
Returns a new instance of Result.
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 |
# File 'lib/openai/models/admin/organization/usage_decisions_response.rb', line 72 class Result < OpenAI::Internal::Type::BaseModel # @!attribute input_tokens # The aggregated number of input tokens used, including cached and cache-write # tokens. This includes text, audio, and image tokens. For customers subscribed to # Scale Tier, this includes Scale Tier tokens. # # @return [Integer] required :input_tokens, Integer # @!attribute num_model_requests # The count of requests made to the model. # # @return [Integer] required :num_model_requests, Integer # @!attribute object # # @return [Symbol, :"organization.usage.decisions.result"] required :object, const: :"organization.usage.decisions.result" # @!attribute output_tokens # The aggregated number of output tokens used across text, audio, and image # outputs. For customers subscribed to Scale Tier, this includes Scale Tier # tokens. # # @return [Integer] required :output_tokens, Integer # @!attribute api_key_id # When `group_by=api_key_id`, this field provides the API key ID of the grouped # usage result. # # @return [String, nil] optional :api_key_id, String, nil?: true # @!attribute api_source # When grouped by `api_source`, `agents_api` identifies attributed Agents API # activity and `unlabeled` includes all records without published source # attribution, including historical and unknown origins. Unlabeled does not imply # direct API usage. Without source grouping, this field is null. # # @return [Symbol, OpenAI::Models::Admin::Organization::UsageDecisionsResponse::Data::Result::APISource, nil] optional( :api_source, enum: -> { OpenAI::Models::Admin::Organization::UsageDecisionsResponse::Data::Result::APISource }, nil?: true ) # @!attribute batch # When `group_by=batch`, this field tells whether the grouped usage result is # batch or not. # # @return [Boolean, nil] optional :batch, OpenAI::Internal::Type::Boolean, nil?: true # @!attribute input_audio_tokens # The aggregated number of uncached audio input tokens used. # # @return [Integer, nil] optional :input_audio_tokens, Integer, nil?: true # @!attribute input_cache_write_12h_tokens # The aggregated number of input tokens written to the cache with a 12-hour # retention period. # # @return [Integer, nil] optional :input_cache_write_12h_tokens, Integer, nil?: true # @!attribute input_cache_write_30m_tokens # The aggregated number of input tokens written to the cache with a 30-minute # retention period. # # @return [Integer, nil] optional :input_cache_write_30m_tokens, Integer, nil?: true # @!attribute input_cache_write_tokens # The aggregated number of input tokens written to the cache across 30-minute and # 12-hour retention periods. # # @return [Integer, nil] optional :input_cache_write_tokens, Integer, nil?: true # @!attribute input_cached_audio_tokens # The aggregated number of cached audio input tokens used. # # @return [Integer, nil] optional :input_cached_audio_tokens, Integer, nil?: true # @!attribute input_cached_image_tokens # The aggregated number of cached image input tokens used. # # @return [Integer, nil] optional :input_cached_image_tokens, Integer, nil?: true # @!attribute input_cached_text_tokens # The aggregated number of cached text input tokens used. # # @return [Integer, nil] optional :input_cached_text_tokens, Integer, nil?: true # @!attribute input_cached_tokens # The aggregated number of cached input tokens used across text, audio, and image # inputs. For customers subscribed to Scale Tier, this includes Scale Tier tokens. # # @return [Integer, nil] optional :input_cached_tokens, Integer, nil?: true # @!attribute input_image_tokens # The aggregated number of uncached image input tokens used. # # @return [Integer, nil] optional :input_image_tokens, Integer, nil?: true # @!attribute input_text_tokens # The aggregated number of uncached text input tokens used, excluding cache-write # tokens. # # @return [Integer, nil] optional :input_text_tokens, Integer, nil?: true # @!attribute input_uncached_tokens # The aggregated number of uncached input tokens used across text, audio, and # image inputs, excluding cache-write tokens. # # @return [Integer, nil] optional :input_uncached_tokens, Integer, nil?: true # @!attribute model # When `group_by=model`, this field provides the model name of the grouped usage # result. # # @return [String, nil] optional :model, String, nil?: true # @!attribute output_audio_tokens # The aggregated number of audio output tokens used. # # @return [Integer, nil] optional :output_audio_tokens, Integer, nil?: true # @!attribute output_image_tokens # The aggregated number of image output tokens used. # # @return [Integer, nil] optional :output_image_tokens, Integer, nil?: true # @!attribute output_text_tokens # The aggregated number of text output tokens used. # # @return [Integer, nil] optional :output_text_tokens, Integer, nil?: true # @!attribute project_id # When `group_by=project_id`, this field provides the project ID of the grouped # usage result. # # @return [String, nil] optional :project_id, String, nil?: true # @!attribute service_tier # When `group_by=service_tier`, this field provides the service tier of the # grouped usage result. # # @return [String, nil] optional :service_tier, String, nil?: true # @!attribute user_id # When `group_by=user_id`, this field provides the user ID of the grouped usage # result. # # @return [String, nil] optional :user_id, String, nil?: true # @!method initialize(input_tokens:, num_model_requests:, output_tokens:, api_key_id: nil, api_source: nil, batch: nil, input_audio_tokens: nil, input_cache_write_12h_tokens: nil, input_cache_write_30m_tokens: nil, input_cache_write_tokens: nil, input_cached_audio_tokens: nil, input_cached_image_tokens: nil, input_cached_text_tokens: nil, input_cached_tokens: nil, input_image_tokens: nil, input_text_tokens: nil, input_uncached_tokens: nil, model: nil, output_audio_tokens: nil, output_image_tokens: nil, output_text_tokens: nil, project_id: nil, service_tier: nil, user_id: nil, object: :"organization.usage.decisions.result") # The aggregated Decisions API usage details of the specific time bucket. # # @param input_tokens [Integer] # The aggregated number of input tokens used, including cached and cache-write # tokens. This includes text, audio, and image tokens. For customers subscribed to # Scale Tier, this includes Scale Tier tokens. # # @param num_model_requests [Integer] # The count of requests made to the model. # # @param output_tokens [Integer] # The aggregated number of output tokens used across text, audio, and image # outputs. For customers subscribed to Scale Tier, this includes Scale Tier # tokens. # # @param api_key_id [String, nil] # When `group_by=api_key_id`, this field provides the API key ID of the grouped # usage result. # # @param api_source [Symbol, OpenAI::Models::Admin::Organization::UsageDecisionsResponse::Data::Result::APISource, nil] # When grouped by `api_source`, `agents_api` identifies attributed Agents API # activity and `unlabeled` includes all records without published source # attribution, including historical and unknown origins. Unlabeled does not imply # direct API usage. Without source grouping, this field is null. # # @param batch [Boolean, nil] # When `group_by=batch`, this field tells whether the grouped usage result is # batch or not. # # @param input_audio_tokens [Integer, nil] # The aggregated number of uncached audio input tokens used. # # @param input_cache_write_12h_tokens [Integer, nil] # The aggregated number of input tokens written to the cache with a 12-hour # retention period. # # @param input_cache_write_30m_tokens [Integer, nil] # The aggregated number of input tokens written to the cache with a 30-minute # retention period. # # @param input_cache_write_tokens [Integer, nil] # The aggregated number of input tokens written to the cache across 30-minute and # 12-hour retention periods. # # @param input_cached_audio_tokens [Integer, nil] # The aggregated number of cached audio input tokens used. # # @param input_cached_image_tokens [Integer, nil] # The aggregated number of cached image input tokens used. # # @param input_cached_text_tokens [Integer, nil] # The aggregated number of cached text input tokens used. # # @param input_cached_tokens [Integer, nil] # The aggregated number of cached input tokens used across text, audio, and image # inputs. For customers subscribed to Scale Tier, this includes Scale Tier tokens. # # @param input_image_tokens [Integer, nil] # The aggregated number of uncached image input tokens used. # # @param input_text_tokens [Integer, nil] # The aggregated number of uncached text input tokens used, excluding cache-write # tokens. # # @param input_uncached_tokens [Integer, nil] # The aggregated number of uncached input tokens used across text, audio, and # image inputs, excluding cache-write tokens. # # @param model [String, nil] # When `group_by=model`, this field provides the model name of the grouped usage # result. # # @param output_audio_tokens [Integer, nil] # The aggregated number of audio output tokens used. # # @param output_image_tokens [Integer, nil] # The aggregated number of image output tokens used. # # @param output_text_tokens [Integer, nil] # The aggregated number of text output tokens used. # # @param project_id [String, nil] # When `group_by=project_id`, this field provides the project ID of the grouped # usage result. # # @param service_tier [String, nil] # When `group_by=service_tier`, this field provides the service tier of the # grouped usage result. # # @param user_id [String, nil] # When `group_by=user_id`, this field provides the user ID of the grouped usage # result. # # @param object [Symbol, :"organization.usage.decisions.result"] # When grouped by `api_source`, `agents_api` identifies attributed Agents API # activity and `unlabeled` includes all records without published source # attribution, including historical and unknown origins. Unlabeled does not imply # direct API usage. Without source grouping, this field is null. # # @see OpenAI::Models::Admin::Organization::UsageDecisionsResponse::Data::Result#api_source module APISource extend OpenAI::Internal::Type::Enum AGENTS_API = :agents_api UNLABELED = :unlabeled # @!method self.values # @return [Array<Symbol>] end end |
Instance Attribute Details
#api_key_id ⇒ String?
When group_by=api_key_id, this field provides the API key ID of the grouped
usage result.
105 |
# File 'lib/openai/models/admin/organization/usage_decisions_response.rb', line 105 optional :api_key_id, String, nil?: true |
#api_source ⇒ OpenAI::Models::Admin::Organization::UsageDecisionsResponse::Data::Result::api_source?
When grouped by api_source, agents_api identifies attributed Agents API
activity and unlabeled includes all records without published source
attribution, including historical and unknown origins. Unlabeled does not imply
direct API usage. Without source grouping, this field is null.
114 115 116 117 118 |
# File 'lib/openai/models/admin/organization/usage_decisions_response.rb', line 114 optional( :api_source, enum: -> { OpenAI::Models::Admin::Organization::UsageDecisionsResponse::Data::Result::APISource }, nil?: true ) |
#batch ⇒ Boolean?
When group_by=batch, this field tells whether the grouped usage result is
batch or not.
125 |
# File 'lib/openai/models/admin/organization/usage_decisions_response.rb', line 125 optional :batch, OpenAI::Internal::Type::Boolean, nil?: true |
#input_audio_tokens ⇒ Integer?
The aggregated number of uncached audio input tokens used.
131 |
# File 'lib/openai/models/admin/organization/usage_decisions_response.rb', line 131 optional :input_audio_tokens, Integer, nil?: true |
#input_cache_write_12h_tokens ⇒ Integer?
The aggregated number of input tokens written to the cache with a 12-hour retention period.
138 |
# File 'lib/openai/models/admin/organization/usage_decisions_response.rb', line 138 optional :input_cache_write_12h_tokens, Integer, nil?: true |
#input_cache_write_30m_tokens ⇒ Integer?
The aggregated number of input tokens written to the cache with a 30-minute retention period.
145 |
# File 'lib/openai/models/admin/organization/usage_decisions_response.rb', line 145 optional :input_cache_write_30m_tokens, Integer, nil?: true |
#input_cache_write_tokens ⇒ Integer?
The aggregated number of input tokens written to the cache across 30-minute and 12-hour retention periods.
152 |
# File 'lib/openai/models/admin/organization/usage_decisions_response.rb', line 152 optional :input_cache_write_tokens, Integer, nil?: true |
#input_cached_audio_tokens ⇒ Integer?
The aggregated number of cached audio input tokens used.
158 |
# File 'lib/openai/models/admin/organization/usage_decisions_response.rb', line 158 optional :input_cached_audio_tokens, Integer, nil?: true |
#input_cached_image_tokens ⇒ Integer?
The aggregated number of cached image input tokens used.
164 |
# File 'lib/openai/models/admin/organization/usage_decisions_response.rb', line 164 optional :input_cached_image_tokens, Integer, nil?: true |
#input_cached_text_tokens ⇒ Integer?
The aggregated number of cached text input tokens used.
170 |
# File 'lib/openai/models/admin/organization/usage_decisions_response.rb', line 170 optional :input_cached_text_tokens, Integer, nil?: true |
#input_cached_tokens ⇒ Integer?
The aggregated number of cached input tokens used across text, audio, and image inputs. For customers subscribed to Scale Tier, this includes Scale Tier tokens.
177 |
# File 'lib/openai/models/admin/organization/usage_decisions_response.rb', line 177 optional :input_cached_tokens, Integer, nil?: true |
#input_image_tokens ⇒ Integer?
The aggregated number of uncached image input tokens used.
183 |
# File 'lib/openai/models/admin/organization/usage_decisions_response.rb', line 183 optional :input_image_tokens, Integer, nil?: true |
#input_text_tokens ⇒ Integer?
The aggregated number of uncached text input tokens used, excluding cache-write tokens.
190 |
# File 'lib/openai/models/admin/organization/usage_decisions_response.rb', line 190 optional :input_text_tokens, Integer, nil?: true |
#input_tokens ⇒ Integer
The aggregated number of input tokens used, including cached and cache-write tokens. This includes text, audio, and image tokens. For customers subscribed to Scale Tier, this includes Scale Tier tokens.
79 |
# File 'lib/openai/models/admin/organization/usage_decisions_response.rb', line 79 required :input_tokens, Integer |
#input_uncached_tokens ⇒ Integer?
The aggregated number of uncached input tokens used across text, audio, and image inputs, excluding cache-write tokens.
197 |
# File 'lib/openai/models/admin/organization/usage_decisions_response.rb', line 197 optional :input_uncached_tokens, Integer, nil?: true |
#model ⇒ String?
When group_by=model, this field provides the model name of the grouped usage
result.
204 |
# File 'lib/openai/models/admin/organization/usage_decisions_response.rb', line 204 optional :model, String, nil?: true |
#num_model_requests ⇒ Integer
The count of requests made to the model.
85 |
# File 'lib/openai/models/admin/organization/usage_decisions_response.rb', line 85 required :num_model_requests, Integer |
#object ⇒ Symbol, :"organization.usage.decisions.result"
90 |
# File 'lib/openai/models/admin/organization/usage_decisions_response.rb', line 90 required :object, const: :"organization.usage.decisions.result" |
#output_audio_tokens ⇒ Integer?
The aggregated number of audio output tokens used.
210 |
# File 'lib/openai/models/admin/organization/usage_decisions_response.rb', line 210 optional :output_audio_tokens, Integer, nil?: true |
#output_image_tokens ⇒ Integer?
The aggregated number of image output tokens used.
216 |
# File 'lib/openai/models/admin/organization/usage_decisions_response.rb', line 216 optional :output_image_tokens, Integer, nil?: true |
#output_text_tokens ⇒ Integer?
The aggregated number of text output tokens used.
222 |
# File 'lib/openai/models/admin/organization/usage_decisions_response.rb', line 222 optional :output_text_tokens, Integer, nil?: true |
#output_tokens ⇒ Integer
The aggregated number of output tokens used across text, audio, and image outputs. For customers subscribed to Scale Tier, this includes Scale Tier tokens.
98 |
# File 'lib/openai/models/admin/organization/usage_decisions_response.rb', line 98 required :output_tokens, Integer |
#project_id ⇒ String?
When group_by=project_id, this field provides the project ID of the grouped
usage result.
229 |
# File 'lib/openai/models/admin/organization/usage_decisions_response.rb', line 229 optional :project_id, String, nil?: true |
#service_tier ⇒ String?
When group_by=service_tier, this field provides the service tier of the
grouped usage result.
236 |
# File 'lib/openai/models/admin/organization/usage_decisions_response.rb', line 236 optional :service_tier, String, nil?: true |
#user_id ⇒ String?
When group_by=user_id, this field provides the user ID of the grouped usage
result.
243 |
# File 'lib/openai/models/admin/organization/usage_decisions_response.rb', line 243 optional :user_id, String, nil?: true |
Instance Method Details
#to_hash ⇒ { input_tokens: Integer, num_model_requests: Integer, ?object: :"organization.usage.decisions.result", output_tokens: Integer, ?api_key_id: String?, ?api_source: OpenAI::Models::Admin::Organization::UsageDecisionsResponse::Data::Result::api_source?, ?batch: bool?, ?input_audio_tokens: Integer?, ?:input_cache_write_12h_tokens => Integer?, ?:input_cache_write_30m_tokens => Integer?, ?input_cache_write_tokens: Integer?, ?input_cached_audio_tokens: Integer?, ?input_cached_image_tokens: Integer?, ?input_cached_text_tokens: Integer?, ?input_cached_tokens: Integer?, ?input_image_tokens: Integer?, ?input_text_tokens: Integer?, ?input_uncached_tokens: Integer?, ?model: String?, ?output_audio_tokens: Integer?, ?output_image_tokens: Integer?, ?output_text_tokens: Integer?, ?project_id: String?, ?service_tier: String?, ?user_id: String? }
285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 |
# File 'sig/openai/models/admin/organization/usage_decisions_response.rbs', line 285
def to_hash: -> {
input_tokens: Integer,
num_model_requests: Integer,
?object: :"organization.usage.decisions.result",
output_tokens: Integer,
?api_key_id: String?,
?api_source: OpenAI::Models::Admin::Organization::UsageDecisionsResponse::Data::Result::api_source?,
?batch: bool?,
?input_audio_tokens: Integer?,
?:input_cache_write_12h_tokens => Integer?,
?:input_cache_write_30m_tokens => Integer?,
?input_cache_write_tokens: Integer?,
?input_cached_audio_tokens: Integer?,
?input_cached_image_tokens: Integer?,
?input_cached_text_tokens: Integer?,
?input_cached_tokens: Integer?,
?input_image_tokens: Integer?,
?input_text_tokens: Integer?,
?input_uncached_tokens: Integer?,
?model: String?,
?output_audio_tokens: Integer?,
?output_image_tokens: Integer?,
?output_text_tokens: Integer?,
?project_id: String?,
?service_tier: String?,
?user_id: String?
}
|