Skip to content

refactor(llm): simplify config to use openrouter/free auto-router - #29

Merged
mertkaradayi merged 1 commit into
mainfrom
dev
Feb 3, 2026
Merged

refactor(llm): simplify config to use openrouter/free auto-router#29
mertkaradayi merged 1 commit into
mainfrom
dev

Conversation

@mertkaradayi

Copy link
Copy Markdown
Owner

Summary

  • Replace 3-tier fallback system (Xiaomi → Mistral → DeepInfra) with single openrouter/free model router
  • Remove manual fallback chain creation, provider ordering, and quantization config
  • Simplify retry logic — OpenRouter auto-rotates free models on each retry naturally

Test plan

  • yarn workspace backend build compiles without errors
  • yarn dev:backend starts and logs openrouter/free model name
  • curl localhost:3001/api/llm/health reports correct model
  • Trigger an analysis and confirm it completes via auto-routed free models

- Replace 3-tier fallback system with single openrouter/free model router
- Remove fallback chain creation and provider preference logic
- Remove quantization config and manual fallback handling
- Simplify retry mechanism relying on OpenRouter's native auto-routing
- Remove currentModelType tracking since routing is now opaque
- Update environment example and documentation
@vercel

vercel Bot commented Feb 3, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
redflag Building Building Preview, Comment Feb 3, 2026 1:53pm

@mertkaradayi
mertkaradayi merged commit 1a7e773 into main Feb 3, 2026
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant