Skip to content

Return prompt cache utilization on completion responses #8008

@reckart

Description

@reckart

Since Ollama has prompt caching now (right?), it would be great if the utilization of the cache could be returned in requests.

E.g. the OpenAI-compatible API could be extended with the new usage/prompt_tokens_details/cached_tokens.

A similar field in the Ollama API would also be great.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions