Docker
How to install and run Glide via Docker
The easiest and quickest way to run Glide is via our demo repository and docker-compose.
Clone the demo repository
git clone https://github.com/EinStack/glide-demo.git
Init Configs
The demo repository comes with a basic config (learn more about configurations). Additionally, you need to init your secrets by running:
make init # from the demo root
This will create the secrets
directory with one .OPENAI_API_KEY
file that you need to put your key to.
Windows user should create the secrets
directory and the corresponding secrets/.OPENAI_API_KEY
file manually.
Start Glide
After that, just use docker compose via this command to start your demo environment:
make up
Windows users should simply run docker-compose up -d
Sample API Request to `/chat` endpoint
{
"message": {
"role": "user",
"content": "Where was it played?"
},
"messageHistory": [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Who won the world series in 2020?"},
{"role": "assistant", "content": "The Los Angeles Dodgers won the World Series in 2020."}
]
}
See API Reference for more details.
Was this page helpful?