mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-19 22:39:10 +08:00
fix: deduplicate provider id
This commit is contained in:
parent
93786f516c
commit
527c1cf608
@ -18,9 +18,6 @@ class PluginAgentManager(BasePluginManager):
|
||||
def transformer(json_response: dict[str, Any]) -> dict:
|
||||
for provider in json_response.get("data", []):
|
||||
declaration = provider.get("declaration", {}) or {}
|
||||
declaration["identity"]["name"] = (
|
||||
f"{provider.get('plugin_id')}/{declaration.get('identity', {}).get('name')}"
|
||||
)
|
||||
provider_name = declaration.get("identity", {}).get("name")
|
||||
for strategy in declaration.get("strategies", []):
|
||||
strategy["identity"]["provider"] = provider_name
|
||||
|
Loading…
x
Reference in New Issue
Block a user