Skip to content

Question: Injecting token usage while constructing the system prompt will invalidate the cache. #76

@see-more

Description

@see-more

blocks.append(token_usage)

Provide the LLM with a tool similar to from litellm import token_counter to calculate tokens, and then remove token_usage from the system prompt

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