LocalAI/examples/functions
James Braza e34b5f0119
Cleaning up examples/ models and starter .env files (#1124)
Closes https://github.com/go-skynet/LocalAI/issues/1066 and
https://github.com/go-skynet/LocalAI/issues/1065

Standardizes all `examples/`:
- Models in one place (other than `rwkv`, which was one-offy)
- Env files as `.env.example` with `cp`
    - Also standardizes comments and links docs
2023-10-02 18:14:10 +02:00
..
.env.example Cleaning up examples/ models and starter .env files (#1124) 2023-10-02 18:14:10 +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 Cleaning up examples/ models and starter .env files (#1124) 2023-10-02 18:14:10 +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

cp -rfv .env.example .env

# Edit the .env file to set a different model by editing `PRELOAD_MODELS`.
vim .env

docker-compose run --rm functions

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