mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 11:42:29 +08:00
Merge 7ff2bd8caf
into 1f87676d52
This commit is contained in:
commit
ad9773ed70
|
@ -346,11 +346,6 @@ class ModelLoadBalancingService:
|
||||||
|
|
||||||
load_balancing_config = current_load_balancing_configs_dict[config_id]
|
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 credentials:
|
||||||
if not isinstance(credentials, dict):
|
if not isinstance(credentials, dict):
|
||||||
raise ValueError("Invalid load balancing config credentials")
|
raise ValueError("Invalid load balancing config credentials")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user