### Initial Checks - [x] I confirm that I'm using the latest version of Pydantic AI - [x] I confirm that I searched for my issue in https://github.com/pydantic/pydantic-ai/issues before opening this issue ### Description As pointed out in https://github.com/pydantic/pydantic-ai/issues/3453. We should post-process the messages sent to the Anthropic API to strip all cache markers but the last 4. ### Example Code ```Python ``` ### Python, Pydantic AI & LLM client version ```Text latest ```