Repository navigation
port(omniroute): #6681 - fix(providers): register openrouter rerank provider - #139
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c5ccff9a61
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c9a3e1857b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Maintainer note: This PR is not yet ready to merge. It is intentionally blocked on the broader Quota-Tracker port (per the maintainer decision to import all OmniRoute quota trackers before treating provider-only ports as complete). Linked dependency: see Why:
|
Fix-up branch ready:
|
a334565 to
889a6f2
Compare
…A free, ping-by-rerank)
Resolve the 2 Codex threads on #139: - add rerank -> /v1/rerank to KIND_ENDPOINT so GET /v1/models/info returns a non-null endpoint for openrouter/cohere/rerank-* models; - add rerank to MEDIA_PROVIDER_KINDS so /dashboard/media-providers/rerank no longer 404s.
889a6f2 to
e426c41
Compare
⛔ BLOCKED on Quota-Tracker Port(overridden — see update above)This PR is intentionally not merge-ready until the
port/omniroute-quota-batchtracker lands (~291 files across 7 sub-batches, scoped in.omc/wt-coordinator/plans/quota-port-survey.md).Per maintainer decision: provider-only ports without the OmniRoute quota tracker family (
codexUsageQuotas,quotaShareStrategy,deviceTracker,geminiRateLimitTracker,providerCooldownTracker, etc.) are incomplete.Scope
Port OmniRoute PR #6681 to DurinDoor. Registers the OpenRouter rerank provider so clients can route Cohere-compatible
POST /api/v1/rerankrequests throughopenrouter/cohere/rerank-4-pro(and rerank-4-fast, rerank-v3.5). Updates the openrouter registryserviceKindsto include"rerank". The 3-segment model id parses safely viaparseModel(split on first slash).Files
open-sse/providers/registry/openrouter.js— added 3 rerank model entries; appended"rerank"toserviceKindstests/unit/rerank-openrouter-6574.test.js— new focused unit testTest coverage
parseModel("openrouter/cohere/rerank-4-pro")resolves, openrouterserviceKindscontains"rerank",PROVIDER_MODELS.openroutercontains the rerank ids, andderiveRerankUrlroutes the resolved model tohttps://openrouter.ai/api/v1/rerank.Doc coverage
open-sse/providers/registry/openrouter.jsexplaining the Cohere-compatible rerank endpoint, model-id format, and the catalog hand-seed.Baseline impact
tests/__baseline__/known-fails.txt: NOT modified.test:ci: currently RED onorigin/devitself with 36 pre-existing pass→fail regressions (same set as the broader baseline drift). None of these are caused by this port.npm run lint: 0 new errors. PASS for this port.Wire-format / migration
provider/modelslash convention.Out of scope
CHANGELOG.md(release-infra branch) andtests/unit/rerank-openrouter-6574.test.ts(no TS in DurinDoor; wrote JS test instead).