From f000bf120f3a1677c10c6e6b6f871368b9872c72 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 26 Mar 2026 15:07:01 +0800 Subject: [PATCH] bugfix --- wwwroot/get_type_llms.dspy | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 wwwroot/get_type_llms.dspy diff --git a/wwwroot/get_type_llms.dspy b/wwwroot/get_type_llms.dspy new file mode 100644 index 0000000..56ecab3 --- /dev/null +++ b/wwwroot/get_type_llms.dspy @@ -0,0 +1,18 @@ + +lt = '文生视频' +if params_kw.type in ['文生视频', '参考生视频', '图生视频']: + lt = params_kw.type +async with get_sor_context(request._run_ns, 'llmage') as sor: + sql = '''select a.* from llm a, llmcatelog b +where a.llmcatelogid = b.id + and a.enabled_date <= ${biz_date}$ + and ${biz_date}$ < a.expired_date + and ppid is not NULL + and b.name=${lt}$''' + biz_date = get_business_date(sor) + recs = await sor.sqlExe(sql, { + 'biz_date': biz_date, + 'lt': lt + }) + return recs +return []