Commit 1dbdc6ad authored by nanahira's avatar nanahira

fix

parent 0bb29653
Pipeline #40186 failed with stages
in 6 minutes and 28 seconds
......@@ -3684,7 +3684,7 @@ ygopro.ctos_follow 'CHAT', true, (buffer, info, client, server, datas)->
if not room.chatgpt_conversation
room.chatgpt_conversation = []
openai_req_body = {
messages: Array.from room.chatgpt_conversation,
messages: Array.from(room.chatgpt_conversation),
model: settings.modules.chatgpt.model
}
openai_req_body.messages.push { role: "user", content: msg }
......
......@@ -4921,9 +4921,8 @@
room.chatgpt_conversation = [];
}
openai_req_body = {
messages: Array.from(room.chatgpt_conversation, {
model: settings.modules.chatgpt.model
})
messages: Array.from(room.chatgpt_conversation),
model: settings.modules.chatgpt.model
};
openai_req_body.messages.push({
role: "user",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment