From ceddad2c2f6dc4bb2581b7e329016f27c046b991 Mon Sep 17 00:00:00 2001 From: ulleo Date: Tue, 2 Jun 2026 16:57:53 +0800 Subject: [PATCH] feat(Application): Application can configure specified model --- backend/apps/system/api/assistant.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/apps/system/api/assistant.py b/backend/apps/system/api/assistant.py index 5db3f4032..ac583924d 100644 --- a/backend/apps/system/api/assistant.py +++ b/backend/apps/system/api/assistant.py @@ -222,6 +222,8 @@ def get_db_type(type): async def query(session: SessionDep, current_user: CurrentUser): list_result = session.exec(select(AssistantModel).where(AssistantModel.oid == current_user.oid, AssistantModel.type != 4).order_by(AssistantModel.name, AssistantModel.create_time)).all() + for model in list_result: + model.enable_custom_model = model.enable_custom_model or False return list_result