fix: tự động chạy ai

This commit is contained in:
2026-07-10 07:24:34 +07:00
parent c3a69d145b
commit f4322ff815
16 changed files with 529 additions and 164 deletions
+2 -2
View File
@@ -101,11 +101,11 @@ class ConfigAPIManager:
}
@staticmethod
def update_backend(name: str, **kwargs) -> Dict[str, Any]:
def update_backend(name: str, new_name: str = None, **kwargs) -> Dict[str, Any]:
"""Cập nhật cấu hình backend"""
try:
config = get_config()
success, msg = config.update_backend(name, **kwargs)
success, msg = config.update_backend(name, new_name=new_name, **kwargs)
if success:
logger.info(f"Backend updated: {name}")