ds api请求时加上user_id
This commit is contained in:
@@ -63,7 +63,7 @@ async function analyzeWithDeepSeek(text, historyMessages, username, isAdmin, roo
|
||||
...historyMessages.slice(-30),
|
||||
{ role: 'user', content: `${username}: ${text}` }
|
||||
];
|
||||
const content = await callDeepSeek(messages, 0.1);
|
||||
const content = await callDeepSeek(messages, 0.1, username);
|
||||
console.log('🤖 AI 返回:', content);
|
||||
try {
|
||||
const parsed = JSON.parse(content.replace(/```json|```/g, '').trim());
|
||||
|
||||
Reference in New Issue
Block a user