Example of using LocalAI functions, see the OpenAI blog post.
# Clone LocalAI
git clone https://github.com/go-skynet/LocalAI
cd LocalAI/examples/functions
cp -rfv .env.example .env
# Edit the .env file to set a different model by editing `PRELOAD_MODELS`.
vim .env
docker-compose run --rm functionsNote: The example automatically downloads the openllama model as it is under a permissive license.