Skip to content

Commit 2c5d4f3

Browse files
committed
fix: remove redundant else block in anthropic_source.py
1 parent 4e6625d commit 2c5d4f3

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

astrbot/core/provider/sources/anthropic_source.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,8 +421,6 @@ async def _query_stream(
421421
try:
422422
if "input_json" in tool_info:
423423
tool_info["input"] = json.loads(tool_info["input_json"])
424-
else:
425-
tool_info["input"] = tool_info.get("input", {})
426424

427425
# 添加到最终结果
428426
final_tool_calls.append(

0 commit comments

Comments
 (0)