feat: switch Fish Audio API endpoint to user's custom proxy domain (fishaudio.fse-media.group)
This commit is contained in:
@@ -2496,8 +2496,8 @@ app.post('/api/tts/generate', express.json(), async (req, res) => {
|
||||
};
|
||||
|
||||
const response = proxyUrl
|
||||
? await requestViaProxy('https://api.fish.audio/v1/tts', options, proxyUrl)
|
||||
: await requestDirect('https://api.fish.audio/v1/tts', options);
|
||||
? await requestViaProxy('https://fishaudio.fse-media.group/v1/tts', options, proxyUrl)
|
||||
: await requestDirect('https://fishaudio.fse-media.group/v1/tts', options);
|
||||
|
||||
if (!response.ok) {
|
||||
const msg = (response.text && String(response.text).trim().length > 0)
|
||||
|
||||
Reference in New Issue
Block a user