From 4043f36f7d3cf56a02dd4152001ed25c86280545 Mon Sep 17 00:00:00 2001 From: Sanjiv Das Date: Tue, 24 Sep 2024 12:01:32 -0700 Subject: [PATCH] Update tools.py --- packages/jupyter-ai/jupyter_ai/chat_handlers/tools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/jupyter-ai/jupyter_ai/chat_handlers/tools.py b/packages/jupyter-ai/jupyter_ai/chat_handlers/tools.py index 11281dcb2..641ad46c3 100644 --- a/packages/jupyter-ai/jupyter_ai/chat_handlers/tools.py +++ b/packages/jupyter-ai/jupyter_ai/chat_handlers/tools.py @@ -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: