明树Git Lab

Commit d4083f5e authored by zfp1's avatar zfp1

update

parent bf620c13
...@@ -41,10 +41,7 @@ app.post('/wechat', async (req, res) => { ...@@ -41,10 +41,7 @@ app.post('/wechat', async (req, res) => {
}], }],
stream: true stream: true
}); });
let fullContent = ''; let fullContent = completion.choices[0].message.content|| '';
for await (const chunk of completion) {
fullContent += chunk.choices[0].message.content || '';
}
const xmlEntities = { const xmlEntities = {
'&': '&', '&': '&',
......
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