Skip to content

Update needed on Anthropic prompt caching support #1942

Open
@anakin87

Description

@anakin87

While working on #1940, I found that the support for prompt caching in Anthropic is outdated and does not work as expected.

  • When introduced, this feature was in beta and our implementation is based on this aspect (e.g. if specific beta headers are not found, cache support is disabled)
  • The prompt caching example does not work.
  • Our implementation seems to apply to system messages only, and our successful tests focus on this aspect.

The best solution would be to update our Chat Generator; this would require some effort. Alternatively, rather than keeping a broken or misleading feature, it would be better to (temporarily) remove it altogether.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions