Home / Companies / Edgee / Blog / Post Details
Content Deep Dive

Switching LLMs mid-conversation is a ski-rental problem

Blog post from Edgee

Post Details
Company
Date Published
Author
Khaled Maâmra
Word Count
5,460
Company Posts That Month
1
Language
English
Hacker News Points
-
Post removed?
No
Summary

Edgee’s Self-Learning Routing for coding agents addresses both selecting an appropriately capable language model for each request and deciding when changing models within a long session is economically worthwhile, since switching discards a model’s warm context cache and requires rebuilding it. It classifies turns into difficulty tiers, immediately upgrades for sufficiently confident higher-capability needs, and uses a ski-rental-inspired policy for cost-driven switches to cheaper models, accumulating forgone savings until they justify the one-time cache rewrite cost. The system accounts for changing conversation lengths, cache expiration, compaction, cooldown periods, and confidence thresholds, while treating its theoretical competitive guarantee as limited to stable conditions. With organizational consent, it labels turns without retaining prompt text, then weekly replays up to 30 days of labeled traffic across candidate model maps and switching settings, comparing estimated costs with a hindsight optimum while enforcing tier-based capability floors. Recommendations are subject to coverage, uncertainty, quality, usage, failure-rate, and administrative guardrails, and can be applied manually or automatically under constrained conditions. The approach differs from conventional query-level LLM routing by explicitly modeling within-session cache costs, though its replay assumes alternative models would generate outputs of the same length and does not yet measure response quality directly.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
LLM 4 1,192 304 123 -82%
AI Coding Assistant 1 814 184 89 -58%
GPT-6 Astra 1 64 19 15 -81%
Jev 1 334 25 12 -74%
Platform Engineering 1 639 118 39 -68%
Subagents 1 64 25 18 -73%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.