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: buildin tool provider credentials_for_provider (#18725)

luckylhb902627e221f20d
diff --git a/api/core/tools/builtin_tool/provider.py b/api/core/tools/builtin_tool/provider.py
index 4f733f0ea18..cf75bd3d7e4 100644
--- a/api/core/tools/builtin_tool/provider.py
+++ b/api/core/tools/builtin_tool/provider.py
@@ -35,8 +35,9 @@ class BuiltinToolProviderController(ToolProviderController):
provider_yaml["credentials_for_provider"][credential_name]["name"] = credential_name
credentials_schema = []
- for credential in provider_yaml.get("credentials_for_provider", {}).values():
- credentials_schema.append(credential)
+ for credential in provider_yaml.get("credentials_for_provider", {}):
+ credential_dict = provider_yaml.get("credentials_for_provider", {}).get(credential, {})
+ credentials_schema.append(credential_dict)
super().__init__(
entity=ToolProviderEntity(