update it

This commit is contained in:
hobby
2025-02-14 08:52:26 +08:00
parent b14eff8170
commit 9e33486ca8
2 changed files with 5 additions and 7 deletions

View File

@@ -177,8 +177,8 @@ const ChatUI = () => {
// 构建历史消息数组
const messageHistory = messages.map(msg => ({
role: msg.isAI ? 'assistant' : 'user',
content: msg.content,
role: 'system',
content: msg.sender.name == "我" ? 'user' + msg.content : msg.sender.name + '' + msg.content,
name: msg.sender.name
}));