mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-24 12:35:00 +00:00
example(functions): Add OpenAI functions example (#767)
This commit is contained in:
parent
3c6b798522
commit
8379cce209
7 changed files with 141 additions and 0 deletions
9
examples/functions/.env
Normal file
9
examples/functions/.env
Normal 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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue