spring-projects / spring-ai

An Application Framework for AI Engineering
https://docs.spring.io/spring-ai/reference/1.0-SNAPSHOT/index.html
Apache License 2.0
2.25k stars 513 forks source link

Support invoking functions in models that support it via Ollama #720

Open joshlong opened 2 weeks ago

joshlong commented 2 weeks ago

among other things it should be possible to specify a function in the OllamaChatOptions

Grogdunn commented 2 weeks ago

Ollama API doesn't support function calling at the moment, or I miss some update?

ThomasVitale commented 2 weeks ago

Ollama doesn't support function calling at the moment, but there are a few related feature requests to introduce that feature, mentioned in https://github.com/ollama/ollama/issues/4386

Grogdunn commented 2 weeks ago

Ok, lets see when they will support functions :crossed_fingers: