Repository navigation
[FEAT] - Show and configure native endpoints for every model type - #114
Merged
Henrik-3 merged 3 commits intoDec 6, 2026
Merged
Conversation
|
Automatic reviews are disabled for this repository. Configure in Code Review Settings. |
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
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.
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.ocrgets 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
Protocoland 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).KIND_OWN_API) show as locked "own API" rows instead of unchecked ones.ChatProtocolandChatRouteResponseare renamedProtocolandRouteResponse; routes come from Omniference'sRoute::all_forfor the protocols of the model's type and leave out routes the provider does not serve.protocols.tsnow carriesMEDIA_PROTOCOLS,KIND_OWN_PROTOCOLS(replacingKIND_DECISION_PROTOCOL) andKIND_OWN_API, andUPSTREAM_PATHSfor every protocol.Breaking changes / migrations
Cargo.toml);Cargo.lockis not updated yet because 0.13.0 is not on crates.io. Publish it, then runcargo update -p omniferenceand commit the lock, or CI cannot build./api/v1/developer/modelsreturnsroutesfor every model type; the generatedChatProtocol/ChatRouteResponsetypes are nowProtocol/RouteResponse.Stacked on #108; retarget to
masteronce it is merged.Testing
cargo clippy --all-targets -- -D warningscargo test: 712 passed, including a new test for the routes of embedding models on OpenRouter, OpenAI-compatible and Gemini providers; generated frontend types regeneratednative-endpointsgains 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, andadminchecks the locked routes of the Cortecs and OpenRouter cards;native-endpoints,gateway-media,admin,knowledge,managed-knowledge,gateway-models,pages,request-auditanddeveloperpass locally against the mock provider (built against the local Omniference checkout)