Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: customize model credentials were invalid despite the provider credentials being active (#8864)

takatost49af18fbd654
diff --git a/api/core/entities/provider_configuration.py b/api/core/entities/provider_configuration.py
index 4797b69b859..807f09598c7 100644
--- a/api/core/entities/provider_configuration.py
+++ b/api/core/entities/provider_configuration.py
@@ -119,7 +119,7 @@ class ProviderConfiguration(BaseModel):
credentials = model_configuration.credentials
break
- if self.custom_configuration.provider:
+ if not credentials and self.custom_configuration.provider:
credentials = self.custom_configuration.provider.credentials
return credentials