Add OpenRouter as an OpenAI-compatible reseller provider

Descriptor + curated matrix rows + sk-or- key auto-detect (server and GUI).
This commit is contained in:
Rohit C Prasad
2026-07-25 16:07:33 -07:00
parent db93d75bf6
commit ee495b9006
5 changed files with 29 additions and 8 deletions
+1
View File
@@ -1324,6 +1324,7 @@ export function detectProvider(apiKey: string): string | null {
const key = (apiKey || "").trim();
if (!key) return null;
if (key.startsWith("sk-ant-")) return "anthropic";
if (key.startsWith("sk-or-")) return "openrouter";
if (key.startsWith("AIza")) return "gemini";
if (key.startsWith("sk-") || key.startsWith("sk_")) return "openai";
return null;