example(functions): Add OpenAI functions example (#767)

This commit is contained in:
Ettore Di Giacinto 2023-07-18 00:04:21 +02:00 committed by GitHub
parent 3c6b798522
commit 8379cce209
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 141 additions and 0 deletions

9
examples/functions/.env Normal file
View file

@ -0,0 +1,9 @@
OPENAI_API_KEY=sk---anystringhere
OPENAI_API_BASE=http://api:8080/v1
# Models to preload at start
# Here we configure gpt4all as gpt-3.5-turbo and bert as embeddings
PRELOAD_MODELS=[{"url": "github:go-skynet/model-gallery/openllama-7b-open-instruct.yaml", "name": "gpt-3.5-turbo"}]
## Change the default number of threads
#THREADS=14