bind_tools is not availabe in Ollama #24318
Closed
karthikRavichandran
announced in
Ideas
Replies: 1 comment
-
use ChatOllama instead |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Checked
Feature request
I'm trying to use Ollama instead of ChatAnthropic in this tutorial "https://langchain-ai.github.io/langgraph/tutorials/introduction/#requirements" but it seems is not working with llm object created with Ollama
llm = Ollama(
model="llama3"
)
tool = TavilySearchResults(max_results=2)
tools = [tool]
tool.invoke("What's weather in Amherst?")
llm_with_tools = llm.bind_tools(tools)
Motivation
I'm trying to use Ollama (local llm) instead of an API call from Anthropic and integrate search.
Proposal (If applicable)
We can implement bind_tools for Ollama objects. Similar issue -> "#21907"
Beta Was this translation helpful? Give feedback.
All reactions