The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
ci: migrate to db in pipeline
Krrish Dholakia88aed06bbb9f
diff --git a/.circleci/config.yml b/.circleci/config.ymlindex 7af20dfe648..a25007bed06 100644--- a/.circleci/config.yml+++ b/.circleci/config.yml@@ -1617,6 +1617,25 @@ jobs:pip install "PyGithub==1.59.1"pip install "openai==1.81.0"# Run pytest and generate JUnit XML report+ - run:+ name: Install dockerize+ command: |+ wget https://github.com/jwilder/dockerize/releases/download/v0.6.1/dockerize-linux-amd64-v0.6.1.tar.gz+ sudo tar -C /usr/local/bin -xzvf dockerize-linux-amd64-v0.6.1.tar.gz+ rm dockerize-linux-amd64-v0.6.1.tar.gz+ - run:+ name: Start PostgreSQL Database+ command: |+ docker run -d \+ --name postgres-db \+ -e POSTGRES_USER=postgres \+ -e POSTGRES_PASSWORD=postgres \+ -e POSTGRES_DB=circle_test \+ -p 5432:5432 \+ postgres:14+ - run:+ name: Wait for PostgreSQL to be ready+ command: dockerize -wait tcp://localhost:5432 -timeout 1m- run:name: Build Docker imagecommand: docker build -t my-app:latest -f ./docker/Dockerfile.database .@@ -1625,7 +1644,7 @@ jobs:command: |docker run -d \-p 4000:4000 \- -e DATABASE_URL=$PROXY_DATABASE_URL \+ -e DATABASE_URL=postgresql://postgres:[email protected]:5432/circle_test \-e AZURE_API_KEY=$AZURE_BATCHES_API_KEY \-e AZURE_API_BASE=$AZURE_BATCHES_API_BASE \-e AZURE_API_VERSION="2024-05-01-preview" \@@ -1651,6 +1670,7 @@ jobs:-e LANGFUSE_PROJECT2_PUBLIC=$LANGFUSE_PROJECT2_PUBLIC \-e LANGFUSE_PROJECT1_SECRET=$LANGFUSE_PROJECT1_SECRET \-e LANGFUSE_PROJECT2_SECRET=$LANGFUSE_PROJECT2_SECRET \+ --add-host host.docker.internal:host-gateway \--name my-app \-v $(pwd)/litellm/proxy/example_config_yaml/oai_misc_config.yaml:/app/config.yaml \my-app:latest \@@ -1658,13 +1678,10 @@ jobs:--port 4000 \--detailed_debug \- run:- name: Install curl and dockerize+ name: Install curlcommand: |sudo apt-get updatesudo apt-get install -y curl- sudo wget https://github.com/jwilder/dockerize/releases/download/v0.6.1/dockerize-linux-amd64-v0.6.1.tar.gz- sudo tar -C /usr/local/bin -xzvf dockerize-linux-amd64-v0.6.1.tar.gz- sudo rm dockerize-linux-amd64-v0.6.1.tar.gz- run:name: Start outputting logscommand: docker logs -f my-app