Commit 76d41b22 authored by nanahira's avatar nanahira

disable mustache escape

parent df26c9c8
Pipeline #40178 passed with stages
in 10 minutes and 42 seconds
......@@ -3687,7 +3687,7 @@ ygopro.ctos_follow 'CHAT', true, (buffer, info, client, server, datas)->
openai_req_body.messages.unshift { role: "system", content: mustache.render(settings.modules.chatgpt.system_prompt, {
player: client.name,
windbot: room.windbot.name,
}) }
}, undefined, { escape: (v) -> v }) }
Object.assign(openai_req_body, settings.modules.chatgpt.extra_opts)
axios.post("#{settings.modules.chatgpt.endpoint}/v1/chat/completions", openai_req_body, {
timeout: 300000,
......
......@@ -4926,6 +4926,10 @@
content: mustache.render(settings.modules.chatgpt.system_prompt, {
player: client.name,
windbot: room.windbot.name
}, void 0, {
escape: function(v) {
return v;
}
})
});
}
......
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