Python's json.dumps made my Russian prompt 3.6x more expensive with one default
DEV · 17.11.2026 · 12:00
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…