Update Pollinations API (#5060)

* Upgrade Pollinations API
Done: text, caption
To do: TTS, image
Fixes #5020

* Update Pollinations TTS to new API

* Update Pollinations API for images
This commit is contained in:
Cohee
2026-01-26 20:31:13 +02:00
committed by GitHub
parent ffa01d80a6
commit 5a7875ba28
13 changed files with 129 additions and 63 deletions
+4
View File
@@ -279,6 +279,10 @@ function throwIfInvalidModel(useReverseProxy) {
if (multimodalApi === 'zai' && !secret_state[SECRET_KEYS.ZAI]) {
throw new Error('Z.AI API key is not set.');
}
if (multimodalApi === 'pollinations' && !secret_state[SECRET_KEYS.POLLINATIONS]) {
throw new Error('Pollinations API key is not set.');
}
}
/**