mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-08-01 12:40:23 +08:00
first commit
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
# CompletionUsage
|
||||
|
||||
Token usage statistics
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description |
|
||||
| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
|
||||
| `completion_tokens` | *float* | :heavy_check_mark: | Number of tokens in the completion |
|
||||
| `prompt_tokens` | *float* | :heavy_check_mark: | Number of tokens in the prompt |
|
||||
| `total_tokens` | *float* | :heavy_check_mark: | Total number of tokens |
|
||||
| `completion_tokens_details` | [Optional[models.CompletionTokensDetails]](../models/completiontokensdetails.md) | :heavy_minus_sign: | Detailed completion token usage |
|
||||
| `prompt_tokens_details` | [Optional[models.PromptTokensDetails]](../models/prompttokensdetails.md) | :heavy_minus_sign: | Detailed prompt token usage |
|
||||
Reference in New Issue
Block a user