This commit is contained in:
yumoqing 2026-03-17 17:41:48 +08:00
parent fb9d463dc3
commit 66a5b7e7f6

View File

@ -359,7 +359,7 @@ where backid=${backid}$
async def run_auto_task(self, ne): async def run_auto_task(self, ne):
env = ServerEnv() env = ServerEnv()
users = get_org_users(ne.orgid) users = await env.get_org_users(ne.orgid)
if not users: if not users:
debug(f'{orgid=} 没有用户') debug(f'{orgid=} 没有用户')
return return
@ -369,6 +369,8 @@ where backid=${backid}$
ef = partial(self.task_error_callback, ne.id) ef = partial(self.task_error_callback, ne.id)
params = { params = {
prompt: sub_ctx, prompt: sub_ctx,
callerid: users[0].id,
callerorgid: users[0].orgid,
callback:f, callback:f,
errback: ef errback: ef
} }