Are you sure you want to delete this access key?
sidebar_label | description |
---|---|
LocalAI | Run self-hosted OpenAI-compatible APIs locally with LocalAI for private, offline LLM deployment and testing environments |
LocalAI is an API wrapper for open-source LLMs that is compatible with OpenAI. You can run LocalAI for compatibility with Llama, Alpaca, Vicuna, GPT4All, RedPajama, and many other models compatible with the ggml format.
View all compatible models here.
Once you have LocalAI up and running, specify one of the following based on the model you have selected:
localai:chat:<model name>
, which invokes models using the
LocalAI chat completion endpointlocalai:completion:<model name>
, which invokes models using the
LocalAI completion endpointlocalai:<model name>
, which defaults to chat-type modellocalai:embeddings:<model name>
, which invokes models using the
LocalAI embeddings endpointThe model name is typically the filename of the .bin
file that you downloaded to set up the model in LocalAI. For example, ggml-vic13b-uncensored-q5_1.bin
. LocalAI also has a /models
endpoint to list models, which can be queried with curl http://localhost:8080/v1/models
.
You can set parameters like temperature
and apiBaseUrl
(full list here). For example, using LocalAI's lunademo:
providers:
- id: localai:lunademo
config:
temperature: 0.5
Supported environment variables:
LOCALAI_BASE_URL
- defaults to http://localhost:8080/v1
REQUEST_TIMEOUT_MS
- maximum request time, in milliseconds. Defaults to 60000.Press p or to see the previous file or, n or to see the next file
Browsing data directories saved to S3 is possible with DAGsHub. Let's configure your repository to easily display your data in the context of any commit!
promptfoo is now integrated with AWS S3!
Are you sure you want to delete this access key?
Browsing data directories saved to Google Cloud Storage is possible with DAGsHub. Let's configure your repository to easily display your data in the context of any commit!
promptfoo is now integrated with Google Cloud Storage!
Are you sure you want to delete this access key?
Browsing data directories saved to Azure Cloud Storage is possible with DAGsHub. Let's configure your repository to easily display your data in the context of any commit!
promptfoo is now integrated with Azure Cloud Storage!
Are you sure you want to delete this access key?
Browsing data directories saved to S3 compatible storage is possible with DAGsHub. Let's configure your repository to easily display your data in the context of any commit!
promptfoo is now integrated with your S3 compatible storage!
Are you sure you want to delete this access key?