Skip to content

Commit 983bb71

Browse files
Pass tools_to_call_from to TransformersModel._prepare_completion_kwargs (#1782)
1 parent 06cfa27 commit 983bb71

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/smolagents/models.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -926,6 +926,8 @@ def _prepare_completion_args(
926926
completion_kwargs = self._prepare_completion_kwargs(
927927
messages=messages,
928928
stop_sequences=stop_sequences,
929+
tools_to_call_from=tools_to_call_from,
930+
tool_choice=None,
929931
**kwargs,
930932
)
931933

0 commit comments

Comments
 (0)