From 89410d23815dff2d7e25e5cfa8e97f13bf72949e Mon Sep 17 00:00:00 2001 From: buua436 <66937541+buua436@users.noreply.github.com> Date: Wed, 5 Nov 2025 12:50:11 +0800 Subject: [PATCH] fix:api /factories wrong return (#11015) ### What problem does this PR solve? change: api /factories wrong return ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- api/utils/api_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/utils/api_utils.py b/api/utils/api_utils.py index 630073788..898052447 100644 --- a/api/utils/api_utils.py +++ b/api/utils/api_utils.py @@ -628,6 +628,6 @@ async def is_strong_enough(chat_model, embedding_model): def get_allowed_llm_factories() -> list: factories = LLMFactoriesService.get_all() if settings.ALLOWED_LLM_FACTORIES is None: - return factories + return list(factories) return [factory for factory in factories if factory.name in settings.ALLOWED_LLM_FACTORIES]