LLM Token Limits: The Settings That Actually Cut Spend
Set token limits that hold: LiteLLM tpm caps, per-model ceilings, budget windows, cache risks and routing that cuts real spend without losing quality.
LiteLLM Timeouts: The Setting Your Load Balancer Kills
LiteLLM HTTP tuning across both hops: timeout precedence, SSE keepalive pings, connection pools, admission control and what compression really means.
LiteLLM vs OpenRouter vs Portkey: Pick the Wrong One
Compare LiteLLM, OpenRouter and Portkey on hosting, fees, logs and ownership risk: the 5.5% credit fee, log-metered pricing and the Palo Alto acquisition.
LiteLLM Callbacks: Traces in the Wrong Langfuse Region
LiteLLM callbacks explained: the langfuse_otel route, the region default that differs per route, trace ID hashing, and redaction that keeps prompts out of logs.
LiteLLM Streaming: The Chunk That Breaks Your Loop
LiteLLM streaming in Python, without the silent bugs: the empty-choices usage chunk, async iteration, stream_chunk_builder, timeouts and failed streams.
LiteLLM in Docker: The Salt Key You Can Never Change
Run LiteLLM in Docker without the footguns: pinned tags, the two keys you cannot rotate, Postgres, probes and a compose file that passes a real config check.
LiteLLM Local Models: Ollama vs vLLM and the /v1 Trap
Route LiteLLM to local models: the ollama_chat prefix vs ollama, hosted_vllm vs vllm, tool-calling gaps, and the /v1 base-URL trap that costs an afternoon.
Aider, Claude Code, Cursor: One LiteLLM Proxy for All
Point Aider, Claude Code and Cursor at one LiteLLM proxy: the exact env vars, the model-name matching trap, and why each tool needs its own virtual key.
LiteLLM Load Balancing: Your RPM Limit Is a Suggestion
LiteLLM load balancing explained: simple-shuffle weights, soft versus enforced rpm limits, priority order, latency buffers and the gotchas under overload.
LiteLLM Errors: Your 401 Might Be a Budget Problem
Fix LiteLLM errors by reading the message, not the status code: budget traps behind 401s, three kinds of 429, and which timeout setting wins in practice.
LiteLLM Retries and Fallbacks: Stop Retrying a 401
LiteLLM retries and fallbacks explained: per-error retry policies, cooldown defaults the docs contradict, auth errors, and a config you can copy today.
LiteLLM Virtual Keys and Budgets: Control Who Spends What
LiteLLM virtual keys and budgets explained: key, team and member limits, stacked windows, reset timing, rate limits and the traps that make them fail.