Token optimization: how we cut system prompt costs 73% #41
thegdsks
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We were burning 2,401 input tokens per message on system prompts. Cut it to 650. Here is what changed.
What was eating tokens
What we did
Results
Small models like Gemma 4 E4B benefit the most. Less context means faster responses and fewer hallucinations.
The changes are in
src/chat/system-prompts.tsif you want to see the diff.Beta Was this translation helpful? Give feedback.
All reactions