fix: DSPY中用uuid()不用getID()

This commit is contained in:
ymq 2026-08-07 16:49:14 +08:00
parent fcb7d1b744
commit 86e235df58
3 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@ dbname = get_module_dbname('rag')
async with db.sqlorContext(dbname) as sor:
env = request._run_ns
userorgid = await env.get_userorgid()
kb_id = getID()
kb_id = uuid()
name = ns.get("name", "")
desc = ns.get("description", "")
await sor.sqlExe(

View File

@ -2,7 +2,7 @@ ns = params_kw.copy()
db = DBPools()
dbname = get_module_dbname('rag')
async with db.sqlorContext(dbname) as sor:
dir_id = getID()
dir_id = uuid()
name = ns.get("name", "")
parent_id = ns.get("parentid", "")
kb_id = ns.get("kb_id", "")

View File

@ -31,7 +31,7 @@ else:
removed += 1
for tid in wanted_ids:
if tid not in current:
mt_id = getID()
mt_id = uuid()
await sor.sqlExe(
"INSERT INTO media_tags (id, kb_id, media_type, media_id, tag_id, created_at) "
"VALUES (${id}$, ${kb_id}$, 'document', ${mid}$, ${tid}$, NOW())",