Skip to content

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]

ci(build_and_test): seed the routing strategy through /config/update

mateo-berri8005856411ae
diff --git a/.circleci/config.yml b/.circleci/config.yml
index df17a9e4402..87f1ee604cf 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -1785,6 +1785,12 @@ jobs:
- wait_for_service:
url: http://localhost:4000
timeout: "300"
+ - run:
+ name: Seed the routing strategy through /config/update
+ command: |
+ curl --noproxy '*' -sSf -X POST http://localhost:4000/config/update \
+ -H 'Authorization: Bearer sk-1234' -H 'Content-Type: application/json' \
+ -d '{"router_settings": {"routing_strategy": "usage-based-routing-v2"}}'
- run:
name: Run tests
command: |
diff --git a/proxy_server_config.yaml b/proxy_server_config.yaml
index 73990153227..703d56bc0cd 100644
--- a/proxy_server_config.yaml
+++ b/proxy_server_config.yaml
@@ -213,7 +213,6 @@ files_settings:
api_key: os.environ/OPENAI_API_KEY
router_settings:
- routing_strategy: usage-based-routing-v2
redis_host: os.environ/REDIS_HOST
redis_password: os.environ/REDIS_PASSWORD
redis_port: os.environ/REDIS_PORT