Python's json.dumps made my Russian prompt 3.6x more expensive with one default
Here is a pattern almost every LLM app has somewhere. You load some records from a database, turn them into JSON with json.dumps , and paste that string into the prompt so the model can answer questions about them. It works and the answers look fine. If your records are in English, nothing else hap…
Read the full story at DEV Community — AI ↗
Timeline · 1 report
- 2026-11-17 12:00 · DEV Community — AI
Python's json.dumps made my Russian prompt 3.6x more expensive with one default