feat: support min_coding_score via model-ID postfix for Pareto router#2
Open
borje wants to merge 1 commit into
Open
feat: support min_coding_score via model-ID postfix for Pareto router#2borje wants to merge 1 commit into
borje wants to merge 1 commit into
Conversation
c422167 to
f3a86d4
Compare
Adds postfix syntax on Pareto model IDs so the quality tier can be set per-role in config without any new config fields: openrouter/pareto-code:high → min_coding_score 0.9 openrouter/pareto-code:medium → 0.7 openrouter/pareto-code:low → 0.5 openrouter/pareto-code:0.85 → exact numeric value The proxy strips the suffix from the model field and injects min_coding_score into the request body before forwarding to OpenRouter. :nitro and unrecognized suffixes are left untouched. Only applies to the /v1/messages path (Anthropic format); the reverse- proxy path for OpenAI-format calls is not affected. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
f3a86d4 to
ea5724a
Compare
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.
Adds postfix syntax on Pareto model IDs so the quality tier can be set per-role in config without any new config fields:
openrouter/pareto-code:high → min_coding_score 0.9
openrouter/pareto-code:medium → 0.7
openrouter/pareto-code:low → 0.5
openrouter/pareto-code:0.85 → exact numeric value
The proxy strips the suffix from the model field and injects min_coding_score into the request body before forwarding to OpenRouter. :nitro and unrecognized suffixes are left untouched.
Only applies to the /v1/messages path (Anthropic format); the reverse- proxy path for OpenAI-format calls is not affected.