mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 13:27:08 +00:00
fix: message id
This commit is contained in:
parent
1f80758491
commit
72b6dcf54d
1 changed files with 2 additions and 2 deletions
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue