From f5b6c2a0332dc5f6d36071030e9a7e70334630cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=BB=E5=AE=B6=E9=BA=9F?= <19935809799@163.com> Date: Wed, 12 Aug 2026 13:17:22 +0800 Subject: [PATCH] fix(api): correct tenant_id UUID handling in two list endpoints --- backend/app/api/enterprise.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/api/enterprise.py b/backend/app/api/enterprise.py index a4783c10a..63c7a974b 100644 --- a/backend/app/api/enterprise.py +++ b/backend/app/api/enterprise.py @@ -398,7 +398,7 @@ async def list_llm_models( .order_by(LLMModel.created_at.desc()) ) if tid: - query = query.where(LLMModel.tenant_id == uuid.UUID(tid)) + query = query.where(LLMModel.tenant_id == tid) result = await db.execute(query) models = [] for m in result.scalars().all():