llmage/wwwroot/list_catelog_models.dspy
2025-09-09 14:56:42 +08:00

9 lines
264 B
Plaintext

dbname = get_module_dbname('llmage')
db = DBPools()
async with db.sqlorContext(dbname) as sor:
sql = """select * from llm where llmcatelogid = ${llmcatelogid}$ and id != ${llmid}$"""
ns = params_kw.copy()
recs = await sor.sqlExe(sql, ns)
return recs
return []