feat: switch Fish Audio API endpoint to Vercel proxy to resolve ETIMEDOUT issues on server

This commit is contained in:
2026-08-01 17:34:55 +08:00
parent 52ecdc8a16
commit f4c22cb713
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -2496,8 +2496,8 @@ app.post('/api/tts/generate', express.json(), async (req, res) => {
}; };
const response = proxyUrl const response = proxyUrl
? await requestViaProxy('https://api.fish.audio/v1/tts', options, proxyUrl) ? await requestViaProxy('https://fishaudio-proxy-red.vercel.app/v1/tts', options, proxyUrl)
: await requestDirect('https://api.fish.audio/v1/tts', options); : await requestDirect('https://fishaudio-proxy-red.vercel.app/v1/tts', options);
if (!response.ok) { if (!response.ok) {
const msg = (response.text && String(response.text).trim().length > 0) const msg = (response.text && String(response.text).trim().length > 0)
+1
Submodule tmp_vercel_proxy added at a0601221d4