From faf3599dedc2ab83d3f51b49049b81d9f7551a6e Mon Sep 17 00:00:00 2001 From: Bowen Liang Date: Mon, 2 Jun 2025 09:21:04 +0800 Subject: [PATCH] update --- api/core/plugin/impl/base.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api/core/plugin/impl/base.py b/api/core/plugin/impl/base.py index a84f90cd4c..7375726fa9 100644 --- a/api/core/plugin/impl/base.py +++ b/api/core/plugin/impl/base.py @@ -32,7 +32,6 @@ from core.plugin.impl.exc import ( ) plugin_daemon_inner_api_baseurl = URL(str(dify_config.PLUGIN_DAEMON_URL)) -plugin_daemon_inner_api_key = dify_config.PLUGIN_DAEMON_KEY T = TypeVar("T", bound=(BaseModel | dict | list | bool | str)) @@ -55,7 +54,7 @@ class BasePluginClient: """ url = plugin_daemon_inner_api_baseurl / path headers = headers or {} - headers["X-Api-Key"] = plugin_daemon_inner_api_key + headers["X-Api-Key"] = dify_config.PLUGIN_DAEMON_KEY headers["Accept-Encoding"] = "gzip, deflate, br" if headers.get("Content-Type") == "application/json" and isinstance(data, dict):