Skip to content

Support for prompt caching #441

@ashwin153

Description

@ashwin153
  • I want to send cache_control={"type": "ephemeral"} when using Anthropic models and magentic.Chat.
  • I think a potential workaround is to create a CacheControlMessage that subclasses magentic.SystemMessage.
  • What do you think of this workaround?
  • Is this something you think should be better supported by magentic?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions