Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions backend/app/api/websocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ async def call_llm(
_warn_threshold_96 = _max_tool_rounds - 2
if round_i == _warn_threshold_80:
api_messages.append(LLMMessage(
role="system",
role="user",
content=(
f"⚠️ 你已使用 {round_i}/{_max_tool_rounds} 轮工具调用。"
"如果当前任务尚未完成,请尽快保存进度到 focus.md,"
Expand All @@ -242,7 +242,7 @@ async def call_llm(
))
elif round_i == _warn_threshold_96:
api_messages.append(LLMMessage(
role="system",
role="user",
content=f"🚨 仅剩 2 轮工具调用。请立即保存进度到 focus.md 并设置续接触发器。",
))

Expand Down