From 2ebe811c34c58bdbe36b19d25e2d04e2dc46608d Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 5 Jun 2026 17:38:18 +0800 Subject: [PATCH] fix: use llm_api_map for llmcatelogid filter (llm table has no catelog column) --- wwwroot/api/get_inference_history.dspy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wwwroot/api/get_inference_history.dspy b/wwwroot/api/get_inference_history.dspy index 3a3b5e1..442553a 100644 --- a/wwwroot/api/get_inference_history.dspy +++ b/wwwroot/api/get_inference_history.dspy @@ -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)