LocalAI/examples/functions
dependabot[bot] 923e4cce85
chore(deps): Bump openai from 1.42.0 to 1.43.0 in /examples/functions (#3452)
Bumps [openai](https://github.com/openai/openai-python) from 1.42.0 to 1.43.0.
- [Release notes](https://github.com/openai/openai-python/releases)
- [Changelog](https://github.com/openai/openai-python/blob/main/CHANGELOG.md)
- [Commits](https://github.com/openai/openai-python/compare/v1.42.0...v1.43.0)

---
updated-dependencies:
- dependency-name: openai
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-03 04:26:08 +00: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 chore(deps): Update Dependencies (#2538) 2024-07-12 19:54:08 +00: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 chore(deps): Bump openai from 1.42.0 to 1.43.0 in /examples/functions (#3452) 2024-09-03 04:26:08 +00: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.