[GH-ISSUE #5313] [FEAT]: Model router #5015

Closed
opened 2026-06-05 14:51:31 -04:00 by yindo · 1 comment
Owner

Originally created by @shatfield4 on GitHub (Mar 31, 2026).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/5313

Originally assigned to: @shatfield4 on GitHub.

What would you like to see?

  • Build an intelligent prompt routing layer that intercepts user prompts before they reach LLM to dynamically select the model that would provide the best result for the costs
  • Main idea is to use calculated (deterministic) rules such as: keyword triggers, token count, message counts, date/time periods (some models have peak pricing times) etc
  • See if we can get semantic routing working by allowing users to configure a specific model used for routing chats inside admin settings for model router and using that model to do a tool call to route to the correct model each time
  • Follow backend design per internal spec on Notion
Originally created by @shatfield4 on GitHub (Mar 31, 2026). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/5313 Originally assigned to: @shatfield4 on GitHub. ### What would you like to see? - Build an intelligent prompt routing layer that intercepts user prompts before they reach LLM to dynamically select the model that would provide the best result for the costs - Main idea is to use calculated (deterministic) rules such as: keyword triggers, token count, message counts, date/time periods (some models have peak pricing times) etc - See if we can get semantic routing working by allowing users to configure a specific model used for routing chats inside admin settings for model router and using that model to do a tool call to route to the correct model each time - Follow backend design per internal spec on Notion
yindo added the enhancementfeature request labels 2026-06-05 14:51:31 -04:00
yindo closed this issue 2026-06-05 14:51:31 -04:00
Author
Owner

@PikkonMG commented on GitHub (Apr 2, 2026):

In the works I asked a few weeks ago #5209

<!-- gh-comment-id:4178196655 --> @PikkonMG commented on GitHub (Apr 2, 2026): In the works I asked a few weeks ago [#5209](https://github.com/Mintplex-Labs/anything-llm/issues/5209#issuecomment-4068839506)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#5015