We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e16f9c commit 5da6597Copy full SHA for 5da6597
3 files changed
README.md
@@ -75,6 +75,24 @@
75
76

77
78
+### Token Optimization — Before & After
79
+
80
+Prompt caching with Anthropic-format routing reduces token usage by **99.87%** on repeated requests.
81
82
+| | Before | After |
83
+|---|---|---|
84
+| **Total Tokens** | 19,819 | 26 |
85
+| **Prompt Tokens** | 19,779 | 0 (cache hit) |
86
+| **Completion Tokens** | 40 | 26 |
87
88
+**Before** — Every request sends the full system prompt (~19K prompt tokens):
89
90
+
91
92
+**After** — Prompt caching enabled via Anthropic Messages API format (0 prompt tokens on cache hit):
93
94
+
95
96
---
97
98
## 🚀 Installation
screenshots/after.png
103 KB
screenshots/before.png
130 KB
0 commit comments