| # This file was auto-generated by Fern from our API Definition. | |
| import typing | |
| import typing_extensions | |
| class CompletionUsageParams(typing_extensions.TypedDict): | |
| completion_tokens: int | |
| """ | |
| Number of tokens in the generated completion. | |
| """ | |
| prompt_tokens: int | |
| """ | |
| Number of tokens in the prompt. | |
| """ | |
| total_tokens: int | |
| """ | |
| Total number of tokens used in the request (prompt + completion). | |
| """ | |
| completion_tokens_details: typing_extensions.NotRequired[typing.Dict[str, typing.Any]] | |
| prompt_tokens_details: typing_extensions.NotRequired[typing.Dict[str, typing.Any]] | |