Skip to content

feat: support min_coding_score via model-ID postfix for Pareto router#2

Open
borje wants to merge 1 commit into
mainfrom
feat/pareto-min-coding-score
Open

feat: support min_coding_score via model-ID postfix for Pareto router#2
borje wants to merge 1 commit into
mainfrom
feat/pareto-min-coding-score

Conversation

@borje

@borje borje commented May 21, 2026

Copy link
Copy Markdown
Owner

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.

@borje borje force-pushed the feat/pareto-min-coding-score branch from c422167 to f3a86d4 Compare May 21, 2026 13:09
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>
@borje borje force-pushed the feat/pareto-min-coding-score branch from f3a86d4 to ea5724a Compare May 22, 2026 07:59
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