perf: AI机器人支持多会话

This commit is contained in:
kuaifan
2025-02-07 16:42:42 +09:00
parent 6338a44cc1
commit 6bcc7b6c49
8 changed files with 276 additions and 67 deletions

View File

@@ -189,10 +189,22 @@ class UserBot extends AbstractModel
default:
if (preg_match('/^ai-(.*?)@bot\.system$/', $email)) {
return [
[
if (!Base::judgeClientVersion('0.42.62')) {
return [
'key' => '%3A.clear',
'label' => Doo::translate('清空上下文')
];
}
return [
[
'key' => 'ai-newchat',
'label' => Doo::translate('开启新对话'),
'config' => []
],
[
'key' => 'ai-historychat',
'label' => Doo::translate('历史对话'),
'config' => []
]
];
}