mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-05 06:42:12 +03:00
fix(providers): add claude-web + make gitlawb/gitlawb-gmi optional (#2476)
Integrated into release/v3.8.2
This commit is contained in:
5
public/providers/claude-web.svg
Normal file
5
public/providers/claude-web.svg
Normal file
@@ -0,0 +1,5 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
|
||||
<circle cx="16" cy="16" r="14" fill="#D97757" opacity="0.15"/>
|
||||
<circle cx="16" cy="16" r="14" fill="none" stroke="#D97757" stroke-width="2"/>
|
||||
<text x="16" y="16" text-anchor="middle" dominant-baseline="central" font-family="system-ui,-apple-system,sans-serif" font-size="11" font-weight="600" fill="#D97757">CW</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 415 B |
@@ -78,6 +78,7 @@ const KNOWN_SVGS = new Set([
|
||||
"cartesia",
|
||||
"clarifai",
|
||||
"command-code",
|
||||
"claude-web",
|
||||
"docker-model-runner",
|
||||
"droid",
|
||||
"gemini-cli",
|
||||
|
||||
@@ -285,6 +285,7 @@ const LOBE_PROVIDER_ALIASES = {
|
||||
cerebras: "Cerebras",
|
||||
"chatgpt-web": "OpenAI",
|
||||
claude: "ClaudeCode",
|
||||
"claude-web": "HuggingFace",
|
||||
cline: "Cline",
|
||||
cloudflare: "Cloudflare",
|
||||
"cloudflare-ai": "WorkersAI",
|
||||
|
||||
@@ -216,6 +216,16 @@ export const WEB_COOKIE_PROVIDERS = {
|
||||
website: "https://www.meta.ai",
|
||||
authHint: "Paste your abra_sess value or full cookie header from meta.ai",
|
||||
},
|
||||
"claude-web": {
|
||||
id: "claude-web",
|
||||
alias: "cw",
|
||||
name: "Claude Web",
|
||||
icon: "auto_awesome",
|
||||
color: "#D97757",
|
||||
textIcon: "CW",
|
||||
website: "https://claude.ai",
|
||||
authHint: "Paste your session cookie from claude.ai",
|
||||
},
|
||||
"deepseek-web": {
|
||||
id: "deepseek-web",
|
||||
alias: "ds-web",
|
||||
@@ -2203,6 +2213,8 @@ export function providerAllowsOptionalApiKey(providerId: unknown): boolean {
|
||||
providerId === "pollinations" ||
|
||||
providerId === "copilot-web" ||
|
||||
providerId === "hackclub" ||
|
||||
providerId === "gitlawb" ||
|
||||
providerId === "gitlawb-gmi" ||
|
||||
isLocalProvider(providerId) ||
|
||||
isSelfHostedChatProvider(providerId) ||
|
||||
isOpenAICompatibleProvider(providerId) ||
|
||||
|
||||
Reference in New Issue
Block a user