mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-26 09:52:11 +03:00
fix(providers): remove non-OpenAI-compatible providers, fix review feedback
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 <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -73,7 +73,7 @@ export default function CacheTrends({
|
||||
<>
|
||||
{maxCachedRequests > 0 && (
|
||||
<div className="text-xs text-text-muted">
|
||||
Peak cached:{" "}
|
||||
{t("peakCached")}:{" "}
|
||||
<span className="font-medium text-foreground">
|
||||
{maxCachedRequests} / {maxRequests}
|
||||
</span>
|
||||
|
||||
@@ -3068,6 +3068,7 @@
|
||||
"cachedTokensCol": "Cached",
|
||||
"cacheCreation": "Creation",
|
||||
"trend24h": "Cache Trend (24h)",
|
||||
"peakCached": "Peak cached",
|
||||
"cached": "Cached",
|
||||
"overview": "Overview",
|
||||
"entries": "Entries",
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user