diff --git a/llmage/llmclient.py b/llmage/llmclient.py index e9cbf9b..fda09d6 100644 --- a/llmage/llmclient.py +++ b/llmage/llmclient.py @@ -57,6 +57,8 @@ where x.id = ${llmid}$ raise e r.inputfields = api.input_fields return recs[0] + else: + debug(f'{llmid=} not found') return None async def get_owner_userid(sor, llm): sql = '''select a.ownerid as userid from upappkey a, upapp b diff --git a/wwwroot/llm_dialog.ui b/wwwroot/llm_dialog.ui index f83cef3..c602c8b 100644 --- a/wwwroot/llm_dialog.ui +++ b/wwwroot/llm_dialog.ui @@ -24,4 +24,11 @@ } } {% else %} +{ + "widgettype":"Text", + "options":{ + "otype": "没找到模型", + "i18n":true + } +} {% endif %}