Posts tagged tutorial
2 posts about tutorial.
-
LangChain Prompt Caching: Setups That Actually Hit the Cache
LangChain's friendliest syntax silently disables Claude's prompt cache. Measured fixes: cache_control via content blocks, variable placement, usage fields.
-
LLM Prompt Caching in Python: A Working Code Tutorial
Measured prompt-cache savings across Claude, GPT-5, Gemini 2.5, DeepSeek-v4 and Qwen3 via Synthorai's OpenAI-compatible gateway. Real usage.cost and TTFT.