LocalAI/examples/functions
2023-07-18 00:04:21 +02:00
..
.env example(functions): Add OpenAI functions example (#767) 2023-07-18 00:04:21 +02:00
docker-compose.yaml example(functions): Add OpenAI functions example (#767) 2023-07-18 00:04:21 +02:00
Dockerfile example(functions): Add OpenAI functions example (#767) 2023-07-18 00:04:21 +02:00
functions-openai.py example(functions): Add OpenAI functions example (#767) 2023-07-18 00:04:21 +02:00
README.md example(functions): Add OpenAI functions example (#767) 2023-07-18 00:04:21 +02:00
requirements.txt example(functions): Add OpenAI functions example (#767) 2023-07-18 00:04:21 +02:00

LocalAI functions

Example of using LocalAI functions, see the OpenAI blog post.

Run

# Clone LocalAI
git clone https://github.com/go-skynet/LocalAI

cd LocalAI/examples/functions

docker-compose run --rm functions

Note: The example automatically downloads the openllama model as it is under a permissive license.

See the .env configuration file to set a different model with the model-gallery by editing PRELOAD_MODELS.