Skip to content

Commit 1ab2fa1

Browse files
committed
fix: correct indentation in tool call handling within ChatRoute class
1 parent 650a092 commit 1ab2fa1

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

astrbot/dashboard/routes/chat.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -469,13 +469,13 @@ async def stream():
469469
if tc_id in tool_calls:
470470
tool_calls[tc_id]["result"] = tcr.get("result")
471471
tool_calls[tc_id]["finished_ts"] = tcr.get("ts")
472-
accumulated_parts.append(
473-
{
474-
"type": "tool_call",
475-
"tool_calls": [tool_calls[tc_id]],
476-
}
477-
)
478-
tool_calls.pop(tc_id, None)
472+
accumulated_parts.append(
473+
{
474+
"type": "tool_call",
475+
"tool_calls": [tool_calls[tc_id]],
476+
}
477+
)
478+
tool_calls.pop(tc_id, None)
479479
elif chain_type == "reasoning":
480480
accumulated_reasoning += result_text
481481
elif streaming:

0 commit comments

Comments
 (0)