mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-04 22:32:12 +03:00
Treat DuckDuckGo web as no-auth provider
Mark duckduckgo-web in WEB_COOKIE_PROVIDERS with noAuth and include it in providerAllowsOptionalApiKey. Update getProviderCredentials to check both NOAUTH_PROVIDERS and WEB_COOKIE_PROVIDERS for noAuth providers (returning synthetic credentials) and import WEB_COOKIE_PROVIDERS accordingly. This enables anonymous/anonymous-cookie web providers to be handled without DB lookups.
This commit is contained in:
committed by
diegosouzapw
parent
029e4f6943
commit
2ec803bbad
@@ -427,6 +427,7 @@ export const WEB_COOKIE_PROVIDERS = {
|
||||
textIcon: "DDG",
|
||||
website: "https://duckduckgo.com/duckchat",
|
||||
hasFree: true,
|
||||
noAuth: true,
|
||||
freeNote: "Free — anonymous access to multiple AI models via DuckDuckGo.",
|
||||
authHint: "No credentials required — DuckDuckGo AI Chat is anonymous and free.",
|
||||
},
|
||||
@@ -2892,6 +2893,7 @@ export function providerAllowsOptionalApiKey(providerId: unknown): boolean {
|
||||
providerId === "petals" ||
|
||||
providerId === "pollinations" ||
|
||||
providerId === "copilot-web" ||
|
||||
providerId === "duckduckgo-web" ||
|
||||
providerId === "veoaifree-web" ||
|
||||
providerId === "hackclub" ||
|
||||
providerId === "huggingchat" ||
|
||||
|
||||
Reference in New Issue
Block a user