Skip to content

v4.2.0: Tool calling with Ollama, support for OpenAI o1 and o3-mini models

Latest
Compare
Choose a tag to compare
@ccreutzi ccreutzi released this 07 Feb 09:16

Use tool calling with Ollama

You can now use tool calling, also known as function calling, with ollamaChat objects. Some large language models (LLMs) can suggest calls to a tool that you have, such as a MATLAB function, in their generated output. An LLM does not execute the tool themselves. Instead, the model encodes the name of the tool and the name and value of any input arguments. You can then write scripts that automate the tool calls suggested by the LLM.

To use tool calling, specify the ToolChoice name-value argument of the ollamaChat function.

For information on whether an Ollama™ model supports tool calling, check whether the model has the tools tag in ollama.com/library.

Support for OpenAI® o1 and o3-mini models

You can now use the OpenAI models o1 and o3-mini to generate text from MATLAB®. When you create an openAIChat object, set the ModelName name-value argument to "o1" or "o3-mini".

Full Changelog: v4.1.0...v4.2.0