mirror of
https://github.com/Jerryplusy/crystelf-plugin.git
synced 2025-12-05 15:41:56 +00:00
fix: AI调用失败时停用用户会话
This commit is contained in:
parent
6c726f242f
commit
414fe08f45
@ -272,6 +272,7 @@ async function callAiForResponse(userMessage, e, aiConfig) {
|
|||||||
const aiResult = await AiCaller.callAi(userMessage, chatHistory, memories, e);
|
const aiResult = await AiCaller.callAi(userMessage, chatHistory, memories, e);
|
||||||
if (!aiResult.success) {
|
if (!aiResult.success) {
|
||||||
logger.error(`[crystelf-ai] AI调用失败: ${aiResult.error}`);
|
logger.error(`[crystelf-ai] AI调用失败: ${aiResult.error}`);
|
||||||
|
SessionManager.deactivateSession(e.group_id, e.user_id);
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
type: 'meme',
|
type: 'meme',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user