fix(chat): image send 500 + table/newline formatting (v2026.07.20.1708)
CI / gate (push) Has been cancelled

This commit is contained in:
QihuAI Design committed 2026-07-20 17:08:20 +08:00
1 parent 612ce37518
commit 5def2697de
4 files changed
+64 -39

No files matched your search

+1 -1
View File
@@ -1430,7 +1430,7 @@ async def _generate_media_task(ai_msg_id: str, ai_model_id: str, prompt: str, us
logger.info(f"[_generate_media_task] 启动 media 生成 msg={ai_msg_id} model={ai_model_id} prompt={prompt[:60]!r}")
caps = [c.lower() for c in (ai_model.capabilities or [])]
is_video = "video" in caps
timeout_seconds = 300 if is_video else 90
timeout_seconds = 300 if is_video else 180
try:
result = await asyncio.wait_for(
_generate_media(db, ai_model, prompt, user_id),
+10
View File
@@ -1657,6 +1657,16 @@ async def _send_message_core(
# 媒体分支直接返回,不会进入 LLM 工具调用;提前初始化避免未绑定
called_skill_names = []
called_mcp_names = []
if effective_skill_ids: