Merge branch 'fix/auto-activate-credential-on-create' into deploy/dev

This commit is contained in:
Yansong Zhang
2026-03-17 17:06:57 +08:00
2 changed files with 9 additions and 7 deletions

View File

@ -196,6 +196,8 @@ class ProviderManager:
if preferred_provider_type_record:
preferred_provider_type = ProviderType.value_of(preferred_provider_type_record.preferred_provider_type)
elif dify_config.EDITION == "CLOUD" and system_configuration.enabled:
preferred_provider_type = ProviderType.SYSTEM
elif custom_configuration.provider or custom_configuration.models:
preferred_provider_type = ProviderType.CUSTOM
elif system_configuration.enabled: