mirror of
https://github.com/Jerryplusy/crystelf-plugin.git
synced 2025-12-05 15:41:56 +00:00
fix(aiCaller): 修正参数传递和时间格式问题
This commit is contained in:
parent
30e1f058b1
commit
c4060f535f
@ -163,7 +163,7 @@ class AiCaller {
|
|||||||
const config = await ConfigControl.get();
|
const config = await ConfigControl.get();
|
||||||
const botInfo = {
|
const botInfo = {
|
||||||
id: e.bot?.uin || '未知',
|
id: e.bot?.uin || '未知',
|
||||||
name: config?.profile?.nickName || '晶灵'
|
name: config?.profile?.nickName || '晶灵',
|
||||||
};
|
};
|
||||||
|
|
||||||
const userInfo = {
|
const userInfo = {
|
||||||
@ -176,8 +176,7 @@ class AiCaller {
|
|||||||
`[你的信息]`,
|
`[你的信息]`,
|
||||||
`- 你的昵称:${botInfo.name}`,
|
`- 你的昵称:${botInfo.name}`,
|
||||||
`- 你的qq号:${botInfo.id}`,
|
`- 你的qq号:${botInfo.id}`,
|
||||||
`- 目前北京时间: ${new Date.now()}`
|
`- 目前北京时间: ${new Date()}```,
|
||||||
``,
|
|
||||||
`[跟你对话的用户的信息]`,
|
`[跟你对话的用户的信息]`,
|
||||||
`- 他的名字:${userInfo.name}`,
|
`- 他的名字:${userInfo.name}`,
|
||||||
`- 他的qq号(id):${userInfo.id}`,
|
`- 他的qq号(id):${userInfo.id}`,
|
||||||
@ -194,7 +193,6 @@ class AiCaller {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 将回复分割成多个块用于流式输出
|
* 将回复分割成多个块用于流式输出
|
||||||
* @param {string} response 完整回复
|
* @param {string} response 完整回复
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user