feat: qwen image badcase

This commit is contained in:
ai-business-hql
2025-08-13 17:04:09 +08:00
parent 5e6652b973
commit 326851e576
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -2,7 +2,7 @@
import json
import time
from typing import Dict, Any, Optional, List
from typing import Dict, Any, Optional, List, Union
from agents.agent import Agent
from agents.tool import function_tool
@@ -99,7 +99,7 @@ def save_checkpoint_before_modification(session_id: str, action_description: str
return None
@function_tool(strict_mode=False)
def update_workflow(session_id: str, workflow_data: Dict[str, Any]) -> str:
def update_workflow(session_id: str, workflow_data: Union[Dict[str, Any], str]) -> str:
"""更新当前session的工作流数据"""
try:
# 在修改前保存checkpoint
+2 -2
View File
@@ -98,6 +98,6 @@ def set_session_id(session_id: str) -> None:
"""Set the session id."""
_global_state.set('session_id', session_id)
LLM_DEFAULT_BASE_URL = "https://comfyui-copilot-server-pre.onrender.com/v1"
# LLM_DEFAULT_BASE_URL = "http://127.0.0.1:8000/v1"
# LLM_DEFAULT_BASE_URL = "https://comfyui-copilot-server-pre.onrender.com/v1"
LLM_DEFAULT_BASE_URL = "http://127.0.0.1:8000/v1"
CLAUDE_4_MODEL_NAME = "us.anthropic.claude-sonnet-4-20250514-v1:0"