Skip to content

Add Claude cache_control #20

Description

@dgustavson93-cyber

I am non-coder using memubot and liking it better than openclaw. Problem is input token growth in conversations. Anthropic offers cache_control to help with that. Per Sonnet

"If you wanted to also be helpful in the issue, you could mention that the implementation is relatively straightforward — just adding cache_control: {"type": "ephemeral"} to the system prompt block where memU injects its memory context, using client.beta.prompt_caching.messages.create(). That gives the developer enough to act on without needing a full PR from you."
'
Thank you

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