You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Fix cache pricing to only apply when -c flag is used (not just when model supports caching)
- Change cached parameter to Option<u64> to distinguish between no flag vs -c 0
- Update README with correct pricing examples and clear explanation of cache vs no-cache behavior
- Document that -c flag presence enables caching pricing rules regardless of value
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
When using caching (`-c` flag), all new tokens are written to cache at cache write prices (1.25x base price for 5-minute TTL), which replaces the regular input cost.
122
+
93
123
### List Models
94
124
95
125
#### Basic Usage
@@ -222,7 +252,7 @@ Arguments:
222
252
[FILTERS...] Filter models by name (e.g., 'anthropic/', 'sonnet')
223
253
224
254
Options:
225
-
-c, --cached <CACHED> Number of cached input tokens read from cache [default: 0]
255
+
-c, --cached <CACHED> Number of cached input tokens read from cache. Using this flag enables caching pricing rules.
0 commit comments