This commit is contained in:
Chester Curme 2025-04-25 15:08:44 -04:00
parent 36db3212a9
commit 34ea4b7dc2

View File

@ -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