fix(aiCaller): 修正参数传递和时间格式问题

This commit is contained in:
Jerry 2025-10-26 00:32:26 +08:00
parent 30e1f058b1
commit c4060f535f

View File

@ -163,7 +163,7 @@ class AiCaller {
const config = await ConfigControl.get();
const botInfo = {
id: e.bot?.uin || '未知',
name: config?.profile?.nickName || '晶灵'
name: config?.profile?.nickName || '晶灵',
};
const userInfo = {
@ -176,8 +176,7 @@ class AiCaller {
`[你的信息]`,
`- 你的昵称:${botInfo.name}`,
`- 你的qq号${botInfo.id}`,
`- 目前北京时间: ${new Date.now()}`
``,
`- 目前北京时间: ${new Date()}```,
`[跟你对话的用户的信息]`,
`- 他的名字:${userInfo.name}`,
`- 他的qq号(id)${userInfo.id}`,
@ -194,7 +193,6 @@ class AiCaller {
}
}
/**
* 将回复分割成多个块用于流式输出
* @param {string} response 完整回复