Update cosyvoice.js

fix comments
This commit is contained in:
刘悦 2024-09-08 15:56:19 +08:00 committed by GitHub
parent 5281bb9b59
commit 546d05b246
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -185,7 +185,7 @@ class CosyVoiceProvider {
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
}, },
body: JSON.stringify(params), // 将参数对象转换为 JSON 字符串 body: JSON.stringify(params), // Convert parameter objects to JSON strings
}, },
); );
if (!response.ok) { if (!response.ok) {