Skip to content

Commit

Permalink
Fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
TaoChenOSU committed Dec 16, 2024
1 parent 00efe1d commit a875378
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def _format_assistant_message(message: ChatMessageContent) -> dict[str, Any]:
"type": "tool_use",
"id": item.id or "",
"name": item.name or "",
"input": item.arguments if isinstance(item.arguments, Mapping) else json.loads(item.arguments),
"input": item.arguments if isinstance(item.arguments, Mapping) else json.loads(item.arguments or ""),
})
else:
logger.warning(
Expand Down

0 comments on commit a875378

Please sign in to comment.