This commit is contained in:
yumoqing 2026-06-10 16:10:42 +08:00
parent de695424d3
commit 6fd1f2ee5c
3 changed files with 4 additions and 4 deletions

View File

@ -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}')

View File

@ -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

View File

@ -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}$