From 72b6dcf54da2172b462a160077d3932c217e42a8 Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Wed, 15 May 2024 17:45:48 +0800 Subject: [PATCH] fix: message id --- utils/message.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: {