Follow Discord
Sweep 25 Sep 2026 · 19:33Z Build v2.1.283 504 read Stable v2.1.274 Latest v2.1.283 Next v2.1.283 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

Request 2 caches its request content (not the response) changedbuild-with-claude/prompt-caching

Nearest release: v2.1.281, published 5 hours 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+2added
Lines−2removed
From line 3,318 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits12to this page, all time

The whole hunk

from line 3318, old and new numbered
/
lines
from line 3318
33183318 <Accordion title="Why am I seeing the error `AttributeError: 'Beta' object has no attribute 'prompt_caching'` in Python?">
33193319 This error typically appears when you have upgraded your SDK or you are using outdated code examples. Prompt caching no longer requires the beta prefix. Instead of:
33203320 
3321 <CodeGroup>
3321 <CodeGroup exclude="shell:cURL, shell:CLI, typescript, csharp, go, java, php, ruby">
33223322 ```python Python
33233323 client.beta.prompt_caching.messages.create(**params)
33243324 ```
from line 3326
33263326 
33273327 Use:
33283328 
3329 <CodeGroup>
3329 <CodeGroup exclude="shell:cURL, shell:CLI, typescript, csharp, go, java, php, ruby">
33303330 ```python Python
33313331 client.messages.create(**params)
33323332 ```
Feedback