From 5f2147a17d54bfba04373a830d2663677f5ac6de Mon Sep 17 00:00:00 2001 From: Albert Villanova del Moral <8515462+albertvillanova@users.noreply.github.com> Date: Fri, 31 Jan 2025 12:00:10 +0100 Subject: [PATCH] Remove unused raw arg (#445) --- src/smolagents/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/smolagents/models.py b/src/smolagents/models.py index ffe967b..927acf0 100644 --- a/src/smolagents/models.py +++ b/src/smolagents/models.py @@ -78,7 +78,7 @@ class ChatMessageToolCall: type: str @classmethod - def from_hf_api(cls, tool_call, raw) -> "ChatMessageToolCall": + def from_hf_api(cls, tool_call) -> "ChatMessageToolCall": return cls( function=ChatMessageToolCallDefinition.from_hf_api(tool_call.function), id=tool_call.id,