docs: add tip

This commit is contained in:
Johann Schopplich
2025-10-23 18:09:07 +02:00
parent 108a6714da
commit 55bfb1939e

View File

@@ -9,6 +9,9 @@ AI is becoming cheaper and more accessible, but larger context windows allow for
- Tabularizing arrays of objects
- Writing inline primitive arrays without spaces
> [!TIP]
> Wrap your JSON in `encode()` before sending it to LLMs and save ~2/3 of the token cost!
## Token Benchmarks
<!-- automd:file src="./docs/benchmarks.md" -->