Commit f5fe620
fix: preserve cache_control on /v1/responses content blocks
_transform_responses_api_content_to_chat_completion_content rebuilt
content blocks with only type+text, dropping cache_control. The
Anthropic adapter (add_cache_control_to_content) never sees it, so
cache is never seeded for /v1/responses.
Fix: copy cache_control from the source item when present (mirrors
the existing pattern for tools).
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent 0675e94 commit f5fe620
1 file changed
Lines changed: 9 additions & 8 deletions
Lines changed: 9 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1286 | 1286 | | |
1287 | 1287 | | |
1288 | 1288 | | |
1289 | | - | |
1290 | | - | |
1291 | | - | |
1292 | | - | |
1293 | | - | |
1294 | | - | |
1295 | | - | |
1296 | | - | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
1297 | 1298 | | |
1298 | 1299 | | |
1299 | 1300 | | |
| |||
0 commit comments