fix: list_llms按catelogid排序-改SQL ORDER BY替代sort参数,修复同catelog被拆分成多组
This commit is contained in:
parent
112c86e80b
commit
6aa2f76c1e
@ -362,11 +362,13 @@ m.ppid
|
||||
and m.ppid is not null
|
||||
and a.expired_date > ${today}$
|
||||
"""
|
||||
params = {'today': today, 'sort': ['catelog_id', 'providerid', 'name'] }
|
||||
params = {'today': today}
|
||||
if catelogid:
|
||||
sql += " and m.llmcatelogid = ${catelogid}$"
|
||||
params['catelogid'] = catelogid
|
||||
|
||||
sql += " order by m.llmcatelogid, a.providerid, a.name"
|
||||
|
||||
debug(f'{sql=}')
|
||||
recs = await sor.sqlExe(sql, params.copy())
|
||||
debug(f'{sql=}, {recs=}, {params=}')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user