fix: use llm_api_map for llmcatelogid filter (llm table has no catelog column)

This commit is contained in:
yumoqing 2026-06-05 17:38:18 +08:00
parent 6f8c14c329
commit 2ebe811c34

View File

@ -17,7 +17,7 @@ try:
ns = {'userid': userid}
if llmcatelogid:
conditions.append("llmid in (select id from llm where llmcatelogid = ${llmcatelogid}$)")
conditions.append("llmid in (select llmid from llm_api_map where llmcatelogid = ${llmcatelogid}$)")
ns['llmcatelogid'] = llmcatelogid
where_clause = " and ".join(conditions)