diff --git a/wwwroot/api/llm_launch_check_api.dspy b/wwwroot/api/llm_launch_check_api.dspy index 74c6017..cf36fe7 100644 --- a/wwwroot/api/llm_launch_check_api.dspy +++ b/wwwroot/api/llm_launch_check_api.dspy @@ -46,7 +46,7 @@ if action == 'check': select a.*, e.ioid, e.stream from llm a join upapp c on a.upappid = c.id - join uapi e on c.apisetid = e.apisetid and a.apiname = e.name + join uapi e on c.id = e.upappid and a.apiname = e.name where a.id=${llmid}$""", {'llmid': llmid}) if recs: await add_check('API映射(uapi)', True, f'ioid={recs[0].ioid}, stream={recs[0].stream}') diff --git a/wwwroot/list_paging_catelog_llms.dspy b/wwwroot/list_paging_catelog_llms.dspy index 2043a9c..38db645 100644 --- a/wwwroot/list_paging_catelog_llms.dspy +++ b/wwwroot/list_paging_catelog_llms.dspy @@ -17,7 +17,7 @@ from llm a join llm_api_map m on a.id = m.llmid join llmcatelog b on m.llmcatelogid = b.id join upapp c on a.upappid = c.id -join uapi e on c.apisetid = e.apisetid and a.apiname = e.name +join uapi e on c.id = e.upappid and a.apiname = e.name where a.status = 'published' ) x left join historyformat y on x.hfid = y.id left join uapiio z on x.ioid = z.id diff --git a/wwwroot/llmcheck.dspy b/wwwroot/llmcheck.dspy index 61789b2..c029527 100644 --- a/wwwroot/llmcheck.dspy +++ b/wwwroot/llmcheck.dspy @@ -25,7 +25,7 @@ where a.id=${llmid}$ sql = """select a.*, e.ioid, e.stream from llm a join upapp c on a.upappid = c.id -join uapi e on c.apisetid = e.apisetid and a.apiname = e.name +join uapi e on c.id = e.upappid and a.apiname = e.name where a.id=${llmid}$ and a.expired_date > ${today}$ and a.enabled_date <= ${today}$""" @@ -39,7 +39,7 @@ where a.id=${llmid}$ sql = """select a.*, e.ioid, e.stream from llm a join upapp c on a.upappid = c.id -join uapi e on c.apisetid = e.apisetid and a.apiname = e.name +join uapi e on c.id = e.upappid and a.apiname = e.name join uapiio b on e.ioid = b.id where a.id=${llmid}$ and a.expired_date > ${today}$