ds api请求时加上user_id

This commit is contained in:
2026-07-29 08:00:51 +08:00
parent e08c0cdff0
commit 416b173183
3 changed files with 15 additions and 9 deletions

View File

@@ -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());