bugfix
This commit is contained in:
parent
de695424d3
commit
6fd1f2ee5c
@ -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}')
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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}$
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user