mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-11 09:42:15 +03:00
fix: restore unorouter api and catalog metadata
This commit is contained in:
@@ -1,11 +1,14 @@
|
||||
import type { RegistryEntry } from "../../shared.ts";
|
||||
import { buildOpenAiCompatibleRegistryEntry } from "../../shared.ts";
|
||||
|
||||
export const unorouterProvider: RegistryEntry = buildOpenAiCompatibleRegistryEntry({
|
||||
export const unorouterProvider: RegistryEntry = {
|
||||
id: "unorouter",
|
||||
alias: "unorouter",
|
||||
baseUrl: "https://api.unorouter.com/v1/chat/completions",
|
||||
modelsUrl: "https://api.unorouter.com/v1/models",
|
||||
models: [],
|
||||
format: "openai",
|
||||
executor: "default",
|
||||
baseUrl: "https://api.unorouter.ai/v1/chat/completions",
|
||||
authType: "apikey",
|
||||
authHeader: "bearer",
|
||||
defaultContextLength: 128000,
|
||||
models: [{ id: "auto", name: "Auto (Best Available)" }],
|
||||
passthroughModels: true,
|
||||
});
|
||||
};
|
||||
|
||||
@@ -110,21 +110,6 @@ export const APIKEY_PROVIDERS_GATEWAYS = {
|
||||
apiHint:
|
||||
"Create a free Zylo API key at https://zyloai.net, then use https://api.zyloai.net/v1 as the OpenAI-compatible base URL.",
|
||||
},
|
||||
unorouter: {
|
||||
id: "unorouter",
|
||||
alias: "unorouter",
|
||||
name: "UnoRouter",
|
||||
icon: "router",
|
||||
color: "#7C3AED",
|
||||
textIcon: "UR",
|
||||
passthroughModels: true,
|
||||
website: "https://unorouter.com",
|
||||
hasFree: true,
|
||||
freeNote:
|
||||
"Models with the :free suffix do not debit balance; limit is 1 request/minute per free model per user.",
|
||||
apiHint:
|
||||
"Create an UnoRouter token, then use https://api.unorouter.com/v1 as the OpenAI-compatible base URL.",
|
||||
},
|
||||
fastrouter: {
|
||||
id: "fastrouter",
|
||||
alias: "fastrouter",
|
||||
|
||||
Reference in New Issue
Block a user