Skip to content

Commit 121ac8a

Browse files
feat :merge tob conflict
2 parents 805cde3 + d0ea3ef commit 121ac8a

File tree

15 files changed

+339
-117
lines changed

15 files changed

+339
-117
lines changed

backend/controller/conversation_api.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ async def invoke_chat(request):
245245
# Workflow LLM settings (optional, used by tools/agents that need a different LLM)
246246
"workflow_llm_api_key": request.headers.get('Workflow-LLM-Api-Key'),
247247
"workflow_llm_base_url": request.headers.get('Workflow-LLM-Base-Url'),
248+
"workflow_llm_model": request.headers.get('Workflow-LLM-Model'),
248249
"model_select": next((x['data'][0] for x in ext if x['type'] == 'model_select' and x.get('data')), None)
249250
}
250251

@@ -514,6 +515,7 @@ async def invoke_debug(request):
514515
# Workflow LLM settings (optional)
515516
"workflow_llm_api_key": request.headers.get('Workflow-LLM-Api-Key'),
516517
"workflow_llm_base_url": request.headers.get('Workflow-LLM-Base-Url'),
518+
"workflow_llm_model": request.headers.get('Workflow-LLM-Model'),
517519
}
518520

519521
# 获取当前语言

backend/controller/llm_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
'''
22
Author: ai-business-hql [email protected]
33
Date: 2025-07-14 16:46:20
4-
LastEditors: ai-business-hql qingli.hql@alibaba-inc.com
5-
LastEditTime: 2025-08-11 16:08:07
4+
LastEditors: ai-business-hql ai.bussiness.hql@gmail.com
5+
LastEditTime: 2025-10-15 17:17:28
66
FilePath: /comfyui_copilot/backend/controller/llm_api.py
77
Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
88
'''

backend/service/mcp_client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@
2929
"Detected incorrect or missing 'agents' package while loading MCP components. "
3030
"Please install 'openai-agents' and ensure this plugin prefers it. Commands:\n"
3131
" python -m pip uninstall -y agents gym tensorflow\n"
32-
" python -m pip install -U openai-agents\n\n"
33-
"Or set COMFYUI_COPILOT_PREFER_OPENAI_AGENTS=1 to prefer openai-agents without uninstalling."
32+
" python -m pip install -U openai-agents"
3433
)
3534

3635
from ..agent_factory import create_agent

backend/service/workflow_rewrite_tools.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
"Detected incorrect or missing 'agents' package while loading tools. "
1616
"Please install 'openai-agents' and ensure this plugin prefers it. Commands:\n"
1717
" python -m pip uninstall -y agents gym tensorflow\n"
18-
" python -m pip install -U openai-agents\n\n"
19-
"Or set COMFYUI_COPILOT_PREFER_OPENAI_AGENTS=1 to prefer openai-agents without uninstalling."
18+
" python -m pip install -U openai-agents\n"
2019
)
2120
from .workflow_rewrite_agent_simple import rewrite_workflow_simple
2221

backend/utils/key_utils.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
'''
2+
Author: ai-business-hql [email protected]
3+
Date: 2025-10-11 16:46:10
4+
LastEditors: ai-business-hql [email protected]
5+
LastEditTime: 2025-10-15 14:35:41
6+
FilePath: /ComfyUI-Copilot/backend/utils/key_utils.py
7+
Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
8+
'''
19
from copy import deepcopy
210

311
def workflow_config_adapt(config: dict) -> dict:
@@ -17,5 +25,10 @@ def workflow_config_adapt(config: dict) -> dict:
1725
if new_config.get("workflow_llm_base_url"):
1826
new_config["openai_base_url"] = new_config.get("workflow_llm_base_url")
1927
new_config["workflow_llm_base_url"] = None
28+
if new_config.get("workflow_llm_model"):
29+
new_config["model_select"] = new_config.get("workflow_llm_model")
30+
new_config["workflow_llm_model"] = None
31+
else:
32+
new_config["model_select"] = None
2033

2134
return new_config

dist/copilot_web/App-CuMdgNo-.js renamed to dist/copilot_web/App-BAhsLA_k.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/copilot_web/DebugGuide-CHrn_hgt.js renamed to dist/copilot_web/DebugGuide-BpkLL6XH.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/copilot_web/DebugResult-CJvu9_Eq.js renamed to dist/copilot_web/DebugResult-CMLMZ1Zj.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)