Getting Started
Run LangDB AI Gateway locally.
Last updated
Was this helpful?
Run LangDB AI Gateway locally.
Last updated
Was this helpful?
Was this helpful?
docker run -it \
-p 8080:8080 \
langdb/ai-gateway logindocker run -it \
-p 8080:8080 \
langdb/ai-gateway serve# Chat completion with GPT-4
curl http://localhost:8080/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4o-mini",
"messages": [{"role": "user", "content": "What is the capital of France?"}]
}'
# Or try Claude
curl http://localhost:8080/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "claude-3-opus",
"messages": [
{"role": "user", "content": "What is the capital of France?"}
]
}'curl -sL https://raw.githubusercontent.com/langdb/ai-gateway/main/config.sample.yaml -o config.sample.yaml
cp config.sample.yaml config.yaml