fix: sor.I→sor.C for insert (I is inspect, C is create)

This commit is contained in:
yumoqing 2026-07-31 15:01:03 +08:00
parent 614c883863
commit a4ac438c49

View File

@ -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 '',