diff --git a/utils/message.js b/utils/message.js index 40ee87d..0ddde22 100644 --- a/utils/message.js +++ b/utils/message.js @@ -172,10 +172,10 @@ export class OfficialChatGPTClient { ] async synthesis (opts = {}) { - const { messageId, conversationId } = opts + const { id, conversationId } = opts let url = this._apiReverseUrl.replace('/conversation', '/synthesize') let randomVoice = this.voices[Math.floor(Math.random() * this.voices.length)] - url = `${url}?message_id=${messageId}&conversation_id=${conversationId}?voice=${randomVoice}` + url = `${url}?message_id=${id}&conversation_id=${conversationId}?voice=${randomVoice}` let res = await fetch(url, { method: 'GET', headers: {