From 9d5950963b195774b663f48ce26d2b7adb52f83d Mon Sep 17 00:00:00 2001 From: Lynn Date: Thu, 11 Jun 2026 17:29:28 +0800 Subject: [PATCH] Fix: get is_tools from model record (#15946) ### What problem does this PR solve? As title. ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- api/db/joint_services/tenant_model_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/db/joint_services/tenant_model_service.py b/api/db/joint_services/tenant_model_service.py index 13c1e711bc..c12f3b764a 100644 --- a/api/db/joint_services/tenant_model_service.py +++ b/api/db/joint_services/tenant_model_service.py @@ -222,7 +222,7 @@ def get_model_config_from_provider_instance(tenant_id, model_type: str|enum.Enum "llm_name": model_obj.model_name, "api_base": extra_fields.get("base_url", ""), "model_type": model_obj.model_type, - "is_tools": extra_fields.get("is_tools", is_tool), + "is_tools": model_extra.get("is_tools", is_tool), "max_tokens": model_extra.get("max_tokens", 8192), } if api_key_payload is not None: