Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add audio tokens to Usage API #380

Merged
merged 1 commit into from
Dec 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 18 additions & 6 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6003,6 +6003,8 @@ paths:
"input_tokens": 1000,
"output_tokens": 500,
"input_cached_tokens": 800,
"input_audio_tokens": 0,
"output_audio_tokens": 0,
"num_model_requests": 5,
"project_id": null,
"user_id": null,
Expand All @@ -6014,7 +6016,7 @@ paths:
}
],
"has_more": true,
"next_page": "AAAAAGdGxdEiJdKOAAAAAGcqsYA="
"next_page": "page_AAAAAGdGxdEiJdKOAAAAAGcqsYA="
}
/organization/usage/embeddings:
get:
Expand Down Expand Up @@ -23331,17 +23333,25 @@ components:
- organization.usage.completions.result
input_tokens:
type: integer
description: The aggregated number of input tokens used. For customers subscribe
to scale tier, this includes scale tier tokens.
description: The aggregated number of text input tokens used, including cached
tokens. For customers subscribe to scale tier, this includes scale
tier tokens.
input_cached_tokens:
type: integer
description: The aggregated number of input tokens that has been cached from
previous requests. For customers subscribe to scale tier, this
description: The aggregated number of text input tokens that has been cached
from previous requests. For customers subscribe to scale tier, this
includes scale tier tokens.
output_tokens:
type: integer
description: The aggregated number of output tokens used. For customers
description: The aggregated number of text output tokens used. For customers
subscribe to scale tier, this includes scale tier tokens.
input_audio_tokens:
type: integer
description: The aggregated number of audio input tokens used, including cached
tokens.
output_audio_tokens:
type: integer
description: The aggregated number of audio output tokens used.
num_model_requests:
type: integer
description: The count of requests made to the model.
Expand Down Expand Up @@ -23383,6 +23393,8 @@ components:
"input_tokens": 5000,
"output_tokens": 1000,
"input_cached_tokens": 4000,
"input_audio_tokens": 300,
"output_audio_tokens": 200,
"num_model_requests": 5,
"project_id": "proj_abc",
"user_id": "user-abc",
Expand Down
Loading