From a4ac438c4981016af5acfb67f9d309423c3d5536 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 31 Jul 2026 15:01:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20sor.I=E2=86=92sor.C=20for=20insert=20(I?= =?UTF-8?q?=20is=20inspect,=20C=20is=20create)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wwwroot/api/cockpit_chat.dspy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wwwroot/api/cockpit_chat.dspy b/wwwroot/api/cockpit_chat.dspy index 36f9f3d..5c1d21e 100644 --- a/wwwroot/api/cockpit_chat.dspy +++ b/wwwroot/api/cockpit_chat.dspy @@ -18,7 +18,7 @@ if action == 'send_message': async with DBPools().sqlorContext(dbname) as sor: # Save user message msg_id = getID() - await sor.I('sd_conversations', { + await sor.C('sd_conversations', { 'id': msg_id, 'iteration_id': iteration_id, 'task_id': task_id or '', @@ -50,7 +50,7 @@ if action == 'send_message': # Save agent message agent_msg_id = getID() - await sor.I('sd_conversations', { + await sor.C('sd_conversations', { 'id': agent_msg_id, 'iteration_id': iteration_id, 'task_id': task_id or '',