明树Git Lab

Commit 5ee63365 authored by zfp1's avatar zfp1

3

parent 48dbf20c
...@@ -34,10 +34,9 @@ app.post('/wechat', async (req, res) => { ...@@ -34,10 +34,9 @@ app.post('/wechat', async (req, res) => {
// API调用 [5]() // API调用 [5]()
const completion = await openai.chat.completions.create({ const completion = await openai.chat.completions.create({
model: "deepseek-chat", model: "deepseek-chat",
messages: [ messages: [{
{ role: "system", content: "你是一个微信服务号智能助手,你输出的字符要低于2048个字节" },{
role: "user", role: "user",
content: message content: `${message} , 你是一个微信服务号智能助手,你输出的字符要低于2048个字节`
}], }],
stream: false stream: false
}); });
......
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