Skip to content

Prompt caching #220

@planger

Description

@planger

PO @eneufeld

With our system prompts and the amount of tool calls growing larger we should make sure to add support for caching.

OpenAI seems to have enabled caching by default: https://platform.openai.com/docs/guides/prompt-caching
For Anthropic we need to manually add caching markers: https://docs.anthropic.com/en/docs/build-with-claude/prompt-caching
For Gemini there is implicit caching but for cost saving explicit caching is recommended: https://ai.google.dev/gemini-api/docs/caching?lang=nodene

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