Repository navigation
Tool calling via Ollama #2212
Replies: 3 comments 1 reply
|
I did experiment some more and so far found that with llama3.3 it doesn't "like" to call functions/tools. gpt-4o does it flawlessly. Any suggestion for a local model that is good at calling functions/tools? |
|
Some Ollama models are configured wrong when it comes to tool calling. In particular, |
|
Old thread, but I'm seeing this is still a live problem. That $(getCurrentDateTime().dayOfWeek) output is the model describing a function call instead of making one. I built a CLI for exactly this (Polyglot, my own project), which catches the tool call even when the model narrates it as text like that. Still working with local models for this? Would you have 15 minutes to chat about your setup? |
Uh oh!
There was an error while loading. Please reload this page.
Hi!
I've been using OpenAI's models through the Spring AI Starter for OpenAI. Now I want to explore the use of local models.
My understanding is that I can use Ollama as an interface to different models. I've tried DeepSeek but learned that it does not support tools. I've tried
llama3.2and nowmistrallike so:With this code:
I'm getting back:
This is not what I expected. I also see in the logs that it tries to do a lot with JSON. My tools don't provide JSON in particular but things formatted as String using
toString(). That lazy approach worked with OpenAI's models.Some pointers in the right direction would be helpful. Thanks!
All reactions