Skip to content

Commit

Permalink
Update tools.py
Browse files Browse the repository at this point in the history
  • Loading branch information
srdas committed Sep 24, 2024
1 parent c51a8ae commit 4043f36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/jupyter-ai/jupyter_ai/chat_handlers/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,9 @@ def get_tools(file_paths: list):
try:
self.model_with_tools = self.llm.__class__(
model_id=self.llm.model_id
).bind_tools(
).bind_tools( # type:ignore[attr-defined]
tools
) # type:ignore[attr-defined]
)
except AttributeError:
raise ExceptionModelDoesTakeTools()
except Exception:
Expand Down

0 comments on commit 4043f36

Please sign in to comment.