feat: switch Fish Audio API endpoint to user's custom proxy domain (fishaudio.fse-media.group)

This commit is contained in:
2026-08-01 17:42:24 +08:00
parent 7bfff51919
commit 1b6a2b7e33
+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.fse-media.group/v1/tts', options, proxyUrl)
: await requestDirect('https://api.fish.audio/v1/tts', options); : await requestDirect('https://fishaudio.fse-media.group/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)