From 78dd2b0788cc51040e00104ed228a19cae538011 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 29 Jul 2026 11:15:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20cate.llms=20->=20cate['llms']=20?= =?UTF-8?q?=E2=80=94=20get=5Fllms=5Fby=5Fcatelog=5Fto=5Fcustomer=20returns?= =?UTF-8?q?=20plain=20dict=20not=20DictObject?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- llmage/utils.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/llmage/utils.py b/llmage/utils.py index 2b94ec6..3439f3b 100644 --- a/llmage/utils.py +++ b/llmage/utils.py @@ -590,12 +590,14 @@ async def get_plaza_models(providerid='', catelogid='', search=''): ) result = [] for cate in data: - for llm in cate.llms: + for llm in cate['llms']: if providerid and llm.providerid != providerid: continue if search: sl = search.lower() - if sl not in (llm.name or '').lower() and sl not in (llm.description or '').lower(): + n = (llm.name or '').lower() + d = (llm.description or '').lower() + if sl not in n and sl not in d: continue result.append({ 'id': llm.id, 'name': llm.name, 'model': llm.model,