claude-cookbooks
eee54422 - docs: improve prompt caching notebook with clearer examples and metrics, (#289)

Commit
123 days ago
docs: improve prompt caching notebook with clearer examples and metrics, (#289) closes #288 Enhanced the notebook to better demonstrate prompt caching benefits: - Separated non-cached baseline from first/second cached calls to show cache creation vs. hit - Added timestamp to prevent unintended cache reuse across runs - Clarified that first cached call creates cache, second call benefits from it - Added explicit cache read/write token metrics to output - Included performance comparison summary showing ~2x speedup - Updated explanations to emphasize that prompt caching requires two calls - Reformatted output display for better readability - Added visual separator for performance comparison section
Author
Parents
Loading