From ce6166fa889d396b95a07ad4d01446a300569b60 Mon Sep 17 00:00:00 2001 From: sepehr Date: Sun, 26 Apr 2026 00:05:55 +0200 Subject: [PATCH] fix: use correct Prisma field names (log/status) in AgentAction update Made-with: Cursor --- memento-note/lib/ai/services/agent-executor.service.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/memento-note/lib/ai/services/agent-executor.service.ts b/memento-note/lib/ai/services/agent-executor.service.ts index 2e45063..0a3b5df 100644 --- a/memento-note/lib/ai/services/agent-executor.service.ts +++ b/memento-note/lib/ai/services/agent-executor.service.ts @@ -910,9 +910,8 @@ async function executeToolUseAgent( await prisma.agentAction.update({ where: { id: actionId }, data: { - status: 'error', - error: `Le modèle "${sysConfig.AI_MODEL_CHAT}" ne supporte pas le function calling (tool use). Utilisez un modèle compatible dans les paramètres admin, par exemple : openai/gpt-4o-mini, google/gemini-flash-1.5, anthropic/claude-3-haiku, ou mistralai/mistral-small.`, - completedAt: new Date(), + status: 'failure', + log: `Le modèle "${sysConfig.AI_MODEL_CHAT}" ne supporte pas le function calling (tool use). Utilisez un modèle compatible dans les paramètres admin : openai/gpt-4o-mini, google/gemini-flash-1.5, anthropic/claude-3-haiku, ou mistralai/mistral-small.`, } }) return { success: false, actionId, error: 'Model does not support tool calling' }