在langgraph中使用bind_tools时(llm =OllamaFunctions(model="qwen2.5:7b",base_url="http://localhost:xxxxx/"))出现错误AttributeError: 'OllamaLLM' object has no attribute 'bind_tools'
解决方法:Ollama 功能 |🦜️🔗 LangChain 语言链
使用OllamaFunctions函数
先from langchain_experimental.llms.ollama_functions import OllamaFunctions
然后llm=OllamaFunctions(model=model,base_url=" ")