fix: provider credentials load error (#16695)

This commit is contained in:
liuzhenghua 2025-03-25 18:56:53 +08:00 committed by GitHub
parent 0277a37fca
commit cb12b4436f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ class BuiltinToolProviderController(ToolProviderController):
provider_yaml["credentials_for_provider"][credential_name]["name"] = credential_name
credentials_schema = []
for credential in provider_yaml.get("credentials_for_provider", {}):
for credential in provider_yaml.get("credentials_for_provider", {}).values():
credentials_schema.append(credential)
super().__init__(

View File

@ -12,4 +12,4 @@ identity:
icon: icon.svg
tags:
- productivity
credentials_for_provider: []
credentials_for_provider: {}