diff --git a/libs/community/langchain_community/chat_models/llamacpp.py b/libs/community/langchain_community/chat_models/llamacpp.py index a401d9eb93c..2868d41ad8e 100644 --- a/libs/community/langchain_community/chat_models/llamacpp.py +++ b/libs/community/langchain_community/chat_models/llamacpp.py @@ -364,7 +364,8 @@ class ChatLlamaCpp(BaseChatModel): tool_choice = formatted_tools[0] else: raise ValueError( - "tool_choice `'any'` only supported if one tool is provided." + "tool_choice `'any'` only supported if one tool is " + "provided." ) elif tool_choice == "auto": tool_choice = None