Skip to main content

Creating Route


curl -X POST -H "Content-Type: application/json" -H "x-api-key: $JAVELIN_API_KEY" -d '{
"name": "test_route_1",
"type": "chat",
"enabled": true,
"models": [
{
"name": "gpt-3.5-turbo",
"provider": "openai",
"suffix": "/chat/completions"
}
],
"config": {
"rate_limit": 3,
"retries": 3,
"archive": true,
"retention": 7,
"budget": {
"enabled": true,
"annual": 100000,
"currency": "USD"
},
"dlp": {
"enabled": false
}
}
}' "https://api.javelin.live/v1/admin/routes/test_route_1"