From d1b8afd3b858539f40647fdbf4044e92ce229a50 Mon Sep 17 00:00:00 2001 From: oyi77 Date: Fri, 3 Apr 2026 00:11:42 +0700 Subject: [PATCH] fix(providers): remove non-OpenAI-compatible providers, fix review feedback MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Address code review from gemini-code-assist: - Remove 5 providers with incompatible APIs that would not work through OmniRoute's OpenAI-compatible proxy pipeline: - Replicate (uses /v1/predictions + version ID format) - fal.ai (custom model-specific endpoints) - Segmind (model-specific URLs, custom x-api-key auth) - Runware (task-based API) - WaveSpeed AI (task-based submit/get API) - Keep 4 verified OpenAI-compatible providers: - Novita AI (confirmed OpenAI-compatible APIs) - PiAPI (LLM /v1/chat/completions confirmed) - GoAPI (explicitly implements OpenAI API spec) - LaoZhang AI (OpenAI-compatible proxy) - Fix hardcoded "Peak cached:" label in CacheTrends → use t("peakCached") - Add "peakCached" translation key to en.json Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus --- .../cache/components/CacheTrends.tsx | 2 +- src/i18n/messages/en.json | 1 + src/shared/constants/providers.ts | 47 ------------------- 3 files changed, 2 insertions(+), 48 deletions(-) diff --git a/src/app/(dashboard)/dashboard/cache/components/CacheTrends.tsx b/src/app/(dashboard)/dashboard/cache/components/CacheTrends.tsx index e1157f9e72..1f8f8fcac0 100644 --- a/src/app/(dashboard)/dashboard/cache/components/CacheTrends.tsx +++ b/src/app/(dashboard)/dashboard/cache/components/CacheTrends.tsx @@ -73,7 +73,7 @@ export default function CacheTrends({ <> {maxCachedRequests > 0 && (
- Peak cached:{" "} + {t("peakCached")}:{" "} {maxCachedRequests} / {maxRequests} diff --git a/src/i18n/messages/en.json b/src/i18n/messages/en.json index f8d4783064..52c94856de 100644 --- a/src/i18n/messages/en.json +++ b/src/i18n/messages/en.json @@ -3068,6 +3068,7 @@ "cachedTokensCol": "Cached", "cacheCreation": "Creation", "trend24h": "Cache Trend (24h)", + "peakCached": "Peak cached", "cached": "Cached", "overview": "Overview", "entries": "Entries", diff --git a/src/shared/constants/providers.ts b/src/shared/constants/providers.ts index 88b27462f7..ed12f6ee7f 100644 --- a/src/shared/constants/providers.ts +++ b/src/shared/constants/providers.ts @@ -597,26 +597,6 @@ export const APIKEY_PROVIDERS = { "$0.025/day free credits — 200+ models (GPT-4o, Claude, Gemini, Llama) via single endpoint", passthroughModels: true, }, - replicate: { - id: "replicate", - alias: "rep", - name: "Replicate", - icon: "smart_toy", - color: "#3D65F5", - textIcon: "RP", - website: "https://replicate.com", - passthroughModels: true, - }, - "fal-ai": { - id: "fal-ai", - alias: "fal", - name: "fal.ai", - icon: "bolt", - color: "#6D28D9", - textIcon: "FL", - website: "https://fal.ai", - passthroughModels: true, - }, novita: { id: "novita", alias: "novita", @@ -627,33 +607,6 @@ export const APIKEY_PROVIDERS = { website: "https://novita.ai", passthroughModels: true, }, - segmind: { - id: "segmind", - alias: "seg", - name: "Segmind", - icon: "image", - color: "#00BFA5", - textIcon: "SG", - website: "https://cloud.segmind.com", - }, - runware: { - id: "runware", - alias: "rw", - name: "Runware", - icon: "image", - color: "#2979FF", - textIcon: "RW", - website: "https://runware.ai", - }, - wavespeed: { - id: "wavespeed", - alias: "ws", - name: "WaveSpeed AI", - icon: "speed", - color: "#00E5FF", - textIcon: "WS", - website: "https://wavespeed.ai", - }, piapi: { id: "piapi", alias: "pi",