Request 2 caches its request content (not the response) changedbuild-with-claude/prompt-caching
Nearest release: v2.1.309, published under an hour before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Recorded here
Lines+4added
Lines−6removed
From line
2,076
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits28to this page, all time
The whole hunk
from line 2076, old and new numbered
/
from line 2076
20762076 Messages: []anthropic.MessageParam{
20772077 anthropic.NewUserMessage(anthropic.NewTextBlock("Hello, can you tell me more about the solar system?")),
20782078 anthropic.NewAssistantMessage(anthropic.NewTextBlock("Certainly! The solar system is the collection of celestial bodies that orbit our Sun. It consists of eight planets, numerous moons, asteroids, comets, and other objects. The planets, in order from closest to farthest from the Sun, are: Mercury, Venus, Earth, Mars, Jupiter, Saturn, Uranus, and Neptune. Each planet has its own unique characteristics and features. Is there a specific aspect of the solar system you would like to know more about?")),
2079 {
2080 Role: anthropic.MessageParamRoleUser,
2079 {OfUser: &anthropic.UserMessageParam{
20812080 Content: []anthropic.ContentBlockParamUnion{
20822081 anthropic.NewTextBlock("Good to know."),
20832082 {OfText: &anthropic.TextBlockParam{
from line 2084
20852084 CacheControl: anthropic.NewCacheControlEphemeralParam(),
20862085 }},
20872086 },
2088 },
2087 }},
20892088 },
20902089 })
20912090 if err != nil {
from line 2786
27872786 false,
27882787 )),
27892788 anthropic.NewAssistantMessage(anthropic.NewTextBlock("I found 3 relevant documents about Mars rovers. Let me get more details from the Mars Exploration document.")),
2790 {
2791 Role: anthropic.MessageParamRoleUser,
2789 {OfUser: &anthropic.UserMessageParam{
27922790 Content: []anthropic.ContentBlockParamUnion{
27932791 {OfText: &anthropic.TextBlockParam{
27942792 Text: "Yes, please tell me about the Perseverance rover specifically.",
from line 2793
27952793 CacheControl: anthropic.NewCacheControlEphemeralParam(),
27962794 }},
27972795 },
2798 },
2796 }},
27992797 },
28002798 })
28012799 if err != nil {
No line in this hunk matches that.