From 7ff2bd8caf8e8160e089267ea99ab2c3995d0c8f Mon Sep 17 00:00:00 2001 From: "hobo.l" Date: Fri, 20 Sep 2024 17:23:34 +0300 Subject: [PATCH] fix: update load balance model failed --- api/services/model_load_balancing_service.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/api/services/model_load_balancing_service.py b/api/services/model_load_balancing_service.py index e7b9422cfe..6083003dd5 100644 --- a/api/services/model_load_balancing_service.py +++ b/api/services/model_load_balancing_service.py @@ -346,11 +346,6 @@ class ModelLoadBalancingService: load_balancing_config = current_load_balancing_configs_dict[config_id] - # check duplicate name - for current_load_balancing_config in current_load_balancing_configs: - if current_load_balancing_config.id != config_id and current_load_balancing_config.name == name: - raise ValueError("Load balancing config name {} already exists".format(name)) - if credentials: if not isinstance(credentials, dict): raise ValueError("Invalid load balancing config credentials")