From 85b1208add4bdbfb4bb739f45dc738bdbbd31f13 Mon Sep 17 00:00:00 2001 From: diegosouzapw Date: Sun, 9 Aug 2026 02:05:09 -0300 Subject: [PATCH] fix: restore unorouter api and catalog metadata --- .../config/providers/registry/unorouter/index.ts | 15 +++++++++------ src/shared/constants/providers/apikey/gateways.ts | 15 --------------- 2 files changed, 9 insertions(+), 21 deletions(-) diff --git a/open-sse/config/providers/registry/unorouter/index.ts b/open-sse/config/providers/registry/unorouter/index.ts index a84c38387d..771bde6a7c 100644 --- a/open-sse/config/providers/registry/unorouter/index.ts +++ b/open-sse/config/providers/registry/unorouter/index.ts @@ -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, -}); +}; diff --git a/src/shared/constants/providers/apikey/gateways.ts b/src/shared/constants/providers/apikey/gateways.ts index f3121a67d9..d7cda6ff67 100644 --- a/src/shared/constants/providers/apikey/gateways.ts +++ b/src/shared/constants/providers/apikey/gateways.ts @@ -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",