mirror of
https://github.com/andrewyng/openworker.git
synced 2026-09-10 22:20:27 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user