Skip to content

[FEAT] - Show and configure native endpoints for every model type - #114

Merged
Henrik-3 merged 3 commits into
feat/gateway-modelsfrom
feat/developer-protocols-every-route
Dec 6, 2026
Merged

Henrik-3 merged 3 commits into
feat/gateway-modelsfrom
feat/developer-protocols-every-route

Conversation

@Henrik-3

@Henrik-3 Henrik-3 commented Dec 5, 2026 •

Copy link
Copy Markdown
Member

What

Every upstream route is now a native endpoint a provider serves or not, not only chat and decisions. The provider dialog lists embeddings, rerank, images, image edits, transcriptions, translations, speech and OCR next to the chat and decision protocols, grouped, with the kind's own ones checked and locked, and custom paths follow from the listed protocols. Developer → Models shows the routes of every model type (OpenRouter embeddings show as passed through 1:1), its Native endpoint filter covers every protocol, and the page renders 100 rows at a time and loads more while scrolling. developer.model_type.ocr gets its translation.

Why

Native endpoints only existed for chat and decisions, so non-chat models showed no routes, the filter offered three protocols, and the only way to point embeddings elsewhere was a bare path override. OpenAI-compatible hosts were assumed to serve every route, so a missing one surfaced as a 404 at request time, which the gateway also treated as an unhealthy target. Developer → Models was slow with 500+ models because it rendered every row.

How

  • Omniference 0.13 ([FEAT] - Make every upstream route a protocol a provider serves or not Henrik-3/omniference#43) makes every route a Protocol and decides per kind what is served without listing it, from the vendors' API references: OpenRouter also serves systemone, embeddings, rerank, transcriptions and speech; Mistral embeddings, transcriptions, speech and OCR; Cortecs nearly every route. These show as locked in the dialog and apply to existing providers. An OpenAI-compatible provider serves only Chat until it lists more (opt-in).
  • Routes a kind serves through an API of its own (OpenRouter images, Gemini embeddings and images; KIND_OWN_API) show as locked "own API" rows instead of unchecked ones.
  • ChatProtocol and ChatRouteResponse are renamed Protocol and RouteResponse; routes come from Omniference's Route::all_for for the protocols of the model's type and leave out routes the provider does not serve.
  • protocols.ts now carries MEDIA_PROTOCOLS, KIND_OWN_PROTOCOLS (replacing KIND_DECISION_PROTOCOL) and KIND_OWN_API, and UPSTREAM_PATHS for every protocol.

Breaking changes / migrations

  • Needs Omniference 0.13.0 (Cargo.toml); Cargo.lock is not updated yet because 0.13.0 is not on crates.io. Publish it, then run cargo update -p omniference and commit the lock, or CI cannot build.
  • OpenAI-compatible providers that serve embeddings, rerank, images, audio or OCR must list those protocols; until then those requests are refused with 400. Folded into the initial schema (translations only), so development databases are recreated.
  • /api/v1/developer/models returns routes for every model type; the generated ChatProtocol / ChatRouteResponse types are now Protocol / RouteResponse.

Stacked on #108; retarget to master once it is merged.

Testing

  • cargo clippy --all-targets -- -D warnings
  • cargo test: 712 passed, including a new test for the routes of embedding models on OpenRouter, OpenAI-compatible and Gemini providers; generated frontend types regenerated
  • e2e: native-endpoints gains a spec where an OpenAI-compatible provider refuses embeddings until it lists them in the dialog, then serves them and shows the 1:1 route, and admin checks the locked routes of the Cortecs and OpenRouter cards; native-endpoints, gateway-media, admin, knowledge, managed-knowledge, gateway-models, pages, request-audit and developer pass locally against the mock provider (built against the local Omniference checkout)
  • Not covered: real providers; the Messages router spec is skipped without a key.

@greptile-apps

greptile-apps Bot commented Dec 5, 2026

Copy link
Copy Markdown

Automatic reviews are disabled for this repository. Configure in Code Review Settings.

@coderabbitai

coderabbitai Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@Henrik-3
Henrik-3 added this pull request to stack #116 December 5, 2026 21:27
@Henrik-3
Henrik-3 removed this pull request from stack #116 December 6, 2026 00:30
@Henrik-3
Henrik-3 merged commit c75f997 into feat/gateway-models Dec 6, 2026
3 of 5 checks passed
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