chore:fmt

This commit is contained in:
aries_ckt
2026-06-19 23:31:42 +08:00
parent 4c88712510
commit a517bdf01a
3 changed files with 5 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
"""QuestionManager — session-level pending question state with asyncio.Event blocking."""
"""QuestionManager — pending question state with asyncio.Event."""
import asyncio
import logging

View File

@@ -127,7 +127,8 @@ def make_shell_interpreter(react_state: Dict[str, Any]):
):
ext = os.path.splitext(abs_path)[1].lower()
if ext in IMAGE_EXTS:
unique_name = f"{uuid.uuid4().hex[:8]}_{os.path.basename(abs_path)}"
basename = os.path.basename(abs_path)
unique_name = f"{uuid.uuid4().hex[:8]}_{basename}"
dest = os.path.join(
STATIC_MESSAGE_IMG_PATH, unique_name
)

View File

@@ -48,9 +48,8 @@ def make_sql_query(react_state: Dict[str, Any], database_connector: Optional[Any
"chunks": [
{
"output_type": "text",
"content": (
f"安全限制: 不允许执行 {kw} 语句,仅支持 SELECT 查询。"
),
"content": f"安全限制: 不允许执行 {kw} 语句,"
"仅支持 SELECT 查询。",
}
]
},