🤖 Self-hosted, community-driven, local OpenAI-compatible API with Keycloak Auth Flak app as frontend. 🏠
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
FlaskAI/examples/functions
Ettore Di Giacinto 8379cce209
example(functions): Add OpenAI functions example (#767)
1 year ago
..
.env example(functions): Add OpenAI functions example (#767) 1 year ago
Dockerfile example(functions): Add OpenAI functions example (#767) 1 year ago
README.md example(functions): Add OpenAI functions example (#767) 1 year ago
docker-compose.yaml example(functions): Add OpenAI functions example (#767) 1 year ago
functions-openai.py example(functions): Add OpenAI functions example (#767) 1 year ago
requirements.txt example(functions): Add OpenAI functions example (#767) 1 year ago

README.md

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.