Fallback Tools
Tools is a powerful feature of LLM models that allows you to augment the LLM reasoning with external tools.
These days, many LLM models come with a built-in support for tools. However, some of them don’t… like OpenAI’s o1-preview and o1-mini.
Fallback tools
With GenAIScript 1.72.0, we introduce the concept of fallback tools. Basically, it consists of a system script that “teaches” the LLM model about available tools and how to call them.
A tool example
Here is an example of a tool that generates a random number between 0 and 1.
- o1-mini trace (using GitHub Models)
- gemma2 model (using Ollama)
Activation
The fallback tool mode is automatically activated for known LLM models that don’t support tools natively. The list is not complete so open an issue if you stumble upon a model that should have fallback tools enabled.
It can also be activated manually (see documentation).