fix(providers): add claude-web + make gitlawb/gitlawb-gmi optional (#2476)

Integrated into release/v3.8.2
This commit is contained in:
Paijo
2026-05-22 01:53:31 +07:00
committed by GitHub
parent 3cbe57a8c7
commit ad99e34f25
4 changed files with 19 additions and 0 deletions

View 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

View File

@@ -78,6 +78,7 @@ const KNOWN_SVGS = new Set([
"cartesia",
"clarifai",
"command-code",
"claude-web",
"docker-model-runner",
"droid",
"gemini-cli",

View File

@@ -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",

View File

@@ -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) ||