Skip to content

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

Merged
diegosouzapw merged 2 commits into
diegosouzapw:release/v3.8.50from
rqzbeh:fix/pollinations-api-key-required
Aug 22, 2026
Merged

diegosouzapw merged 2 commits into
diegosouzapw:release/v3.8.50from
rqzbeh:fix/pollinations-api-key-required

Conversation

@rqzbeh

@rqzbeh rqzbeh commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Fixes #11096.

Summary

  1. Removes pollinations from EXPLICIT_OPTIONAL_APIKEY_PROVIDER_IDS in src/shared/constants/providers.ts because Pollinations no longer supports anonymous API calls and returns 401 Unauthorized without an API key.
  2. Fixes raw placeholder strings in src/i18n/messages/en.json for apiKeyOptionalHint and apiKeyOptionalLabel.
  3. Adds automated unit test tests/unit/pollinations-api-key-required-11096.test.ts verifying providerAllowsOptionalApiKey('pollinations') returns false.

@rqzbeh
rqzbeh requested a review from diegosouzapw as a code owner August 22, 2026 10:34
@rqzbeh
rqzbeh force-pushed the fix/pollinations-api-key-required branch from 6a67807 to eb0b24d Compare August 22, 2026 12:24
@rqzbeh
rqzbeh changed the base branch from main to release/v3.8.50 August 22, 2026 14:49
@rqzbeh
rqzbeh force-pushed the fix/pollinations-api-key-required branch from eb0b24d to 0e91881 Compare August 22, 2026 15:03
@diegosouzapw
diegosouzapw force-pushed the fix/pollinations-api-key-required branch from 330a00f to 9ebe213 Compare August 22, 2026 18:58
@diegosouzapw
diegosouzapw merged commit 3157e8a into diegosouzapw:release/v3.8.50 Aug 22, 2026
5 of 7 checks passed
diegosouzapw pushed a commit that referenced this pull request Aug 23, 2026
…ol (#9827) (#11194)

Validated on the combined batch board over tip 8a42aee: static gates clean (changelog, file-size 159 frozen, complexity 2621<=2774, cognitive 1181<=1223, dead-code 408<=416), typecheck:core clean, 107 focused tests green.

Keyless pollinations 401s no longer poison the noauth pool — key health classification treats the now-required-key provider correctly after #11117. chatcore-key-health + executor-pollinations green. Fixes #9827. Thank you @jonlwheat2-gif!
muhamadgalihsaputra pushed a commit to niyatna/NiyatnaRoute that referenced this pull request Sep 27, 2026
… i18n labels (diegosouzapw#11096) (diegosouzapw#11117)

Cherry-picked the value commit (0e91881) 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 diegosouzapw#11096 — Pollinations answers 401 anonymously now. Thank you @rqzbeh!
muhamadgalihsaputra pushed a commit to niyatna/NiyatnaRoute that referenced this pull request Sep 27, 2026
…ol (diegosouzapw#9827) (diegosouzapw#11194)

Validated on the combined batch board over tip 76f9b2f: static gates clean (changelog, file-size 159 frozen, complexity 2621<=2774, cognitive 1181<=1223, dead-code 408<=416), typecheck:core clean, 107 focused tests green.

Keyless pollinations 401s no longer poison the noauth pool — key health classification treats the now-required-key provider correctly after diegosouzapw#11117. chatcore-key-health + executor-pollinations green. Fixes diegosouzapw#9827. Thank you @jonlwheat2-gif!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(providers): Dashboard labels Pollinations API key as "(optional)", but Pollinations now returns 401 without a key

3 participants