This commit is contained in:
yumoqing 2025-08-20 15:19:07 +08:00
parent e512533637
commit 62b2bd5028
3 changed files with 11 additions and 4 deletions

View File

@ -26,11 +26,18 @@ async def get_llm(llmid):
dbname = get_serverenv('get_module_dbname')('llmage') dbname = get_serverenv('get_module_dbname')('llmage')
async with db.sqlorContext(dbname) as sor: async with db.sqlorContext(dbname) as sor:
sql = """select a.*, sql = """select a.*,
b.input_view, b.output_view, b.system_message, d.input_fields,
b.user_message, d.input_view,
b.assisant_message from llm a, llmcatelog b d.output_view,
c.system_message,
c.user_message,
c.assisant_message
from llm a, llmcatelog b
left join historyformat c on b.hfid = c.id
left join uapiio on b.ioid = d.id
where a.catelogid = b.id where a.catelogid = b.id
and a.id = ${llmid}$""" and a.id = ${llmid}$
"""
recs = await sor.sqlExe(sql, {'llmid': llmid}) recs = await sor.sqlExe(sql, {'llmid': llmid})
if len(recs) > 0: if len(recs) > 0:
r = recs[0] r = recs[0]

BIN
models/historyformat.xlsx Normal file

Binary file not shown.

Binary file not shown.