diff --git a/public/providers/claude-web.svg b/public/providers/claude-web.svg new file mode 100644 index 0000000000..882c6d2245 --- /dev/null +++ b/public/providers/claude-web.svg @@ -0,0 +1,5 @@ + + + + CW + diff --git a/src/shared/components/ProviderIcon.tsx b/src/shared/components/ProviderIcon.tsx index a763ee0088..6bf3699c26 100644 --- a/src/shared/components/ProviderIcon.tsx +++ b/src/shared/components/ProviderIcon.tsx @@ -78,6 +78,7 @@ const KNOWN_SVGS = new Set([ "cartesia", "clarifai", "command-code", + "claude-web", "docker-model-runner", "droid", "gemini-cli", diff --git a/src/shared/components/lobeProviderIcons.ts b/src/shared/components/lobeProviderIcons.ts index 034b5790e5..6647b31a21 100644 --- a/src/shared/components/lobeProviderIcons.ts +++ b/src/shared/components/lobeProviderIcons.ts @@ -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", diff --git a/src/shared/constants/providers.ts b/src/shared/constants/providers.ts index f71099b1b8..ce855cb34f 100644 --- a/src/shared/constants/providers.ts +++ b/src/shared/constants/providers.ts @@ -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) ||