feat: add UnoRouter as a remote model provider#8407
Open
0-don wants to merge 1 commit into
Open
Conversation
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.
Describe Your Changes
Adds UnoRouter as a predefined remote model provider, following the shape of the existing OpenRouter entry and the NEAR AI Cloud provider PR (#8169).
UnoRouter (https://unorouter.com) is an open-source OpenAI-compatible gateway serving 200+ models (Claude, GPT, Gemini, DeepSeek, Kimi, GLM, Qwen and more) behind a single API key; models with a
:freesuffix cost nothing, which gives Jan users working cloud models without a card.Unlike NEAR AI, UnoRouter uses the standard
/v1/modelslist endpoint, so no custom catalog path or normalizer is needed; the generic OpenAI-compatible paths handle everything.Changes:
web-app/src/constants/providers.ts: predefined provider entry (base URLhttps://api.unorouter.com/v1, api-key setting, two free seed models like the OpenRouter entry)web-app/src/constants/models.ts: capability entry (models: truefor live catalog, streaming/JSON/images/tools)web-app/src/lib/model-factory.ts:unorouterroutes tocreateOpenAICompatibleModelweb-app/src/lib/utils.ts: provider title + logoweb-app/public/images/model-provider/unorouter.svg: logo assetdocs/.../remote-models/unorouter.mdx+_meta.jsonnav entryunorouter-provider.test.ts, plus cases inmodel-factory.test.tsandutils.test.tsSelf Checklist
unorouter-provider.test.ts,utils.test.ts,model-factory.test.ts)