Skip to content

Commit 0147fbe

Browse files
Remove filename references from docs to prevent sync issues
1 parent d8485b7 commit 0147fbe

File tree

4 files changed

+1
-18
lines changed

4 files changed

+1
-18
lines changed

typescript/ai-sdk-v5/src/prompt-caching/README.md

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,4 @@ For full prompt caching documentation including all providers, pricing, and conf
99

1010
## Examples in This Directory
1111

12-
- `anthropic-user-message-cache.ts` - Cache large context in user messages
13-
- `anthropic-multi-message-cache.ts` - Cache system prompt across multi-turn conversations
14-
- `anthropic-no-cache-control.ts` - Control scenario (validates methodology)
15-
16-
## Quick Start
17-
18-
```bash
19-
# Run an example
20-
bun run typescript/ai-sdk-v5/src/prompt-caching/anthropic-user-message-cache.ts
21-
```
22-
23-
See the example files for complete working code with current models and configuration.
12+
See the TypeScript files in this directory for specific examples with complete working code.

typescript/ai-sdk-v5/src/prompt-caching/anthropic-multi-message-cache.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
* Pattern: User message cache in multi-turn conversation
88
* - Cache large context in first user message
99
* - Cache persists through conversation history
10-
*
11-
* To run: bun run typescript/ai-sdk-v5/src/prompt-caching/multi-message-cache.ts
1210
*/
1311

1412
import { LARGE_SYSTEM_PROMPT } from '@openrouter-examples/shared/constants';

typescript/ai-sdk-v5/src/prompt-caching/anthropic-no-cache-control.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
* no caching occurs.
66
*
77
* Purpose: Validates that cache behavior is due to cache_control, not coincidence
8-
*
9-
* To run: bun run typescript/ai-sdk-v5/src/prompt-caching/no-cache-control.ts
108
*/
119

1210
import { LARGE_SYSTEM_PROMPT } from '@openrouter-examples/shared/constants';

typescript/ai-sdk-v5/src/prompt-caching/anthropic-user-message-cache.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
* CRITICAL CONFIGURATION:
1212
* - **MUST** include extraBody: { stream_options: { include_usage: true } }
1313
* - Without this, usage details (including cached_tokens) are not populated
14-
*
15-
* To run: bun run typescript/ai-sdk-v5/src/prompt-caching/anthropic-user-message-cache.ts
1614
*/
1715

1816
import { LARGE_SYSTEM_PROMPT } from '@openrouter-examples/shared/constants';

0 commit comments

Comments
 (0)