Skip to content

Anthropic Cache TTL is hard-coded #221

@ammario

Description

@ammario

This should be user-defined as there's a cost trade-off we shouldn't centrally mandate:

return messages.map((msg, index) => {
if (index === cacheIndex) {
return {
...msg,
providerOptions: {
anthropic: {
cacheControl: {
type: "ephemeral" as const,
ttl: "5m",
},
},
},
};
}
return msg;

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