feat(proxy): configuring smart-router for improved costs handling - #19
Open
fab-siciliano wants to merge 1 commit into
Open
feat(proxy): configuring smart-router for improved costs handling#19fab-siciliano wants to merge 1 commit into
fab-siciliano wants to merge 1 commit into
Conversation
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.
Add new models and refactors the smart-router model to improve costs performances and provide the best options for different tasks
Details
Main recommendations are:
Cost picture from the repo metadata
From model_prices_and_context_window.json, these are the most relevant candidates:
gpt-5.4-minigpt-5.4gpt-5.5gpt-5.3-codexo4-minio3o3-miniclaude-haiku-4.5claude-sonnet-5claude-opus-4.8claude-fable-5qwen3-coder-nextEU Bedrock Anthropic costs
eu.anthropic.claude-sonnet-5eu.anthropic.claude-opus-4.8eu.anthropic.claude-fable-5Possible cleanest setup:
Why this works:
Best quality-first setup
If we care more about quality than spend:
This is the config that best matches the “good practices” reading of the Artificial Analysis page. The page clearly points to Claude Fable 5 and top OpenAI premium models as top-end intelligence choices. So if you want a real “last tier”, REASONING is where
Fable belongs, not COMPLEX
Best cost-optimized code-heavy setup
If most traffic is engineering/coding and you want to save aggressively:
I would only do this if your proxy is mostly used for coding tasks. I would not use qwen3-coder-next as SIMPLE if thgeneric business chat, summaries, or non-technical prompts
Type
🆕 New Feature