Add UncommonRoute provider for intelligent LLM cost routing#289
Open
Vivien202 wants to merge 1 commit into
Open
Add UncommonRoute provider for intelligent LLM cost routing#289Vivien202 wants to merge 1 commit into
Vivien202 wants to merge 1 commit into
Conversation
UncommonRoute is a local proxy that analyzes each request and routes it to the most cost-effective model. This provider adapter lets aisuite users access its smart routing via model="uncommonroute:auto|fast|best".
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
UncommonrouteProvider— a provider adapter for UncommonRoute, an intelligent LLM cost router.What it does for aisuite users
UncommonRoute runs as a local proxy that analyzes each request and routes it to the cheapest model capable of handling it. Users get cost savings without changing their code — just swap the provider prefix:
Three routing modes:
auto(balanced),fast(cheapest),best(strongest).Implementation
OllamaProvider)httpx(already a project dependency) — no new dependenciesFiles
aisuite/providers/uncommonroute_provider.py— provider implementation (81 lines)tests/providers/test_uncommonroute_provider.py— unit tests (67 lines)