From 6b366ac76db0ce92cdebf107ee0cf0565936069d Mon Sep 17 00:00:00 2001 From: ai-business-hql Date: Thu, 31 Jul 2025 15:04:16 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=A8=A1=E5=9E=8B=E6=9B=BF=E6=8D=A2?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/service/mcp_client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/service/mcp_client.py b/backend/service/mcp_client.py index d98d3b4..7fdd327 100644 --- a/backend/service/mcp_client.py +++ b/backend/service/mcp_client.py @@ -2,7 +2,7 @@ Author: ai-business-hql qingli.hql@alibaba-inc.com Date: 2025-06-16 16:50:17 LastEditors: ai-business-hql qingli.hql@alibaba-inc.com -LastEditTime: 2025-07-29 17:22:00 +LastEditTime: 2025-07-31 15:04:13 FilePath: /comfyui_copilot/backend/service/mcp-client.py Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE ''' @@ -85,8 +85,8 @@ async def comfyui_agent_invoke(messages: List[Dict[str, Any]], images: List[Imag if config and config.get("openai_base_url") and config.get("openai_base_url") != "": os.environ["OPENAI_BASE_URL"] = config.get("openai_base_url") - if model_name == "gemini-2.5-flash": - os.environ["OPENAI_API_KEY"] = "" + # if model_name == "gemini-2.5-flash": + # os.environ["OPENAI_API_KEY"] = "" # 创建带有session_id的workflow_rewrite_agent实例 workflow_rewrite_agent_instance = create_workflow_rewrite_agent(session_id)