mirror of
https://github.com/elijah-potter/ofc.git
synced 2025-03-03 09:37:02 +03:00
master
Ollama Function Caller (ofc)
The Ollama function caller, otherwise known as ofc, is a command-line tool for prompting Ollama models locally on your system.
There are other programs out there that do similar things, but they either don't support streaming or don't give me access to important settings, like context length or temperature.
In order to use ofc, you need to have Ollama on your system. You may install it from the Ollama website.
Installation
ofc is installable from either crates.io or this repository.
cargo install ofc --locked
# Or...
cargo install --git https://github.com/elijah-potter/ofc --locked
Usage
It's pretty simple. Just call ofc with the user prompt of your desire.
ofc "What is the meaning of life?"
You may can change the model from the default (phi4) and control context size and temperature.
ofc --context 8192 --temperature 0.3 --model tinyllama "What is the best pizza?"
Previous Art
ofc was inspired by ooo.
Description
Languages
Rust
100%