mirror of https://github.com/langgenius/dify.git
Merge branch 'fix/chore-fix' into dev/plugin-deploy
This commit is contained in:
commit
80b3de5c4f
|
|
@ -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…
Reference in New Issue