dbname = get_module_dbname('llmage') db = DBPools() async with db.sqlorContext(dbname) as sor: sql = """select distinct a.* from llm a join llm_api_map m on a.id = m.llmid where m.llmcatelogid = ${llmcatelogid}$ and a.id != ${llmid}$ and a.status = 'published'""" ns = params_kw.copy() recs = await sor.sqlExe(sql, ns) for r in recs.get('rows', []): r.description = json.dumps(r.description) return recs return []