fix: use llm_api_map for llmcatelogid filter (llm table has no catelog column)
This commit is contained in:
parent
6f8c14c329
commit
2ebe811c34
@ -17,7 +17,7 @@ try:
|
|||||||
ns = {'userid': userid}
|
ns = {'userid': userid}
|
||||||
|
|
||||||
if llmcatelogid:
|
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
|
ns['llmcatelogid'] = llmcatelogid
|
||||||
|
|
||||||
where_clause = " and ".join(conditions)
|
where_clause = " and ".join(conditions)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user