From ed12fac50e6b80aed85a0acc02c9173f7cd109ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A2=A8=E6=A2=93=E6=9F=92?= <1787882683@qq.com> Date: Mon, 17 Nov 2025 12:06:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=E5=99=A8=E5=90=8D=E7=A7=B0=E5=92=8C=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E9=85=8D=E7=BD=AE=E8=8A=82=E6=8E=A5=E5=8F=A3=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/webui/config_routes.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/webui/config_routes.py b/src/webui/config_routes.py index 41784d4e..e65538bb 100644 --- a/src/webui/config_routes.py +++ b/src/webui/config_routes.py @@ -39,7 +39,7 @@ from src.config.api_ada_configs import ( ) from src.webui.config_schema import ConfigSchemaGenerator -logger = get_logger("webui.config_routes") +logger = get_logger("webui") router = APIRouter(prefix="/config", tags=["config"]) @@ -239,7 +239,7 @@ async def update_model_config(config_data: dict[str, Any] = Body(...)): @router.post("/bot/section/{section_name}") -async def update_bot_config_section(section_name: str, section_data: dict[str, Any] = Body(...)): +async def update_bot_config_section(section_name: str, section_data: Any = Body(...)): """更新麦麦主程序配置的指定节""" try: # 读取现有配置 @@ -276,7 +276,7 @@ async def update_bot_config_section(section_name: str, section_data: dict[str, A @router.post("/model/section/{section_name}") -async def update_model_config_section(section_name: str, section_data: dict[str, Any] = Body(...)): +async def update_model_config_section(section_name: str, section_data: Any = Body(...)): """更新模型配置的指定节""" try: # 读取现有配置