:x
Merge branch 'main' of https://git.opencomputing.cn/yumoqing/rag
This commit is contained in:
wangmeihua 2025-08-27 13:46:50 +08:00
commit 98980d039c

View File

@ -1,4 +1,5 @@
from appPublic.timeUtils import curDateString, dateAdd
from sqlor.dbpools import DBPools
from ahserver.serverenv import get_serverenv
from sqlor.dbpools import DBPools
@ -35,7 +36,7 @@ async def set_program(request, program_type, quota, term=1):
async def get_rag_programs(request):
db = DBPools()
dbname = get_serverenv('get_module_dbanme')('rag')
dbname = get_serverenv('get_module_dbname')('rag')
async with db.sqlorContext(dbname) as sor:
recs = await sor.R('ragprogram', {})
return recs