Skip to content

feat: support cached token usage #188

@wellenzheng

Description

@wellenzheng

support cached token usage

while glm-4.5 series models are supporting, we have the new usage strategy cached_token, we are hoping to add the cached_token support in the LLMUsage.

glm-4.5 usage sample

"usage": {
"completion_tokens": 139,
"prompt_tokens": 15427,
"prompt_tokens_details": {
"cached_tokens": 170
},
"total_tokens": 15566
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions