fix(providers): require API key for Pollinations and fix optional key i18n labels (#11096) (#11117)

Cherry-picked the value commit (0e918816) onto the current tip, dropping the stale base-red sync commits. Focused tests: pollinations-api-key-required 1/1 plus the whole optional-key suite 142/142 (two legacy assertions in provider-route-schemas flipped to the new key-required contract, commented with the PR). Fixes #11096 — Pollinations answers 401 anonymously now. Thank you @rqzbeh!
This commit is contained in:
Rouzbeh†
2026-08-22 22:29:31 +03:30
committed by GitHub
parent a51b8ba563
commit 3157e8a7ad
4 changed files with 19 additions and 7 deletions

View File

@@ -237,7 +237,6 @@ export function isSelfHostedChatProvider(providerId: unknown): boolean {
const EXPLICIT_OPTIONAL_APIKEY_PROVIDER_IDS = new Set([
"searxng-search",
"firecrawl",
"pollinations",
"copilot-web",
"hackclub",
"g4f-groq",