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
Move all secrets to env blocks instead of direct interpolation
Julio Quinteros Pro369edb2afbb7
diff --git a/.github/workflows/run_observatory_tests.yml b/.github/workflows/run_observatory_tests.ymlindex d74a7f1356d..25645242fd3 100644--- a/.github/workflows/run_observatory_tests.yml+++ b/.github/workflows/run_observatory_tests.yml@@ -49,14 +49,16 @@ jobs:- name: Start LiteLLM containerenv:TAG: ${{ inputs.tag }}+ AZURE_API_KEY: ${{ secrets.AZURE_API_KEY }}+ AZURE_API_BASE: ${{ secrets.AZURE_API_BASE }}run: |docker run -d \--name litellm-rc \-p 4000:4000 \- -v ${{ github.workspace }}/.github/observatory/litellm_config.yaml:/app/config.yaml \- -e LITELLM_MASTER_KEY="${{ env.LITELLM_MASTER_KEY }}" \- -e AZURE_API_KEY="${{ secrets.AZURE_API_KEY }}" \- -e AZURE_API_BASE="${{ secrets.AZURE_API_BASE }}" \+ -v "${{ github.workspace }}/.github/observatory/litellm_config.yaml:/app/config.yaml" \+ -e LITELLM_MASTER_KEY="${LITELLM_MASTER_KEY}" \+ -e AZURE_API_KEY="${AZURE_API_KEY}" \+ -e AZURE_API_BASE="${AZURE_API_BASE}" \"litellm/litellm:${TAG}" \--config /app/config.yaml --port 4000@@ -109,11 +111,13 @@ jobs:- name: Trigger observatory test runid: trigger+ env:+ OBSERVATORY_URL: ${{ secrets.OBSERVATORY_URL }}+ OBSERVATORY_API_KEY: ${{ secrets.OBSERVATORY_API_KEY }}run: |- OBSERVATORY_URL="${{ secrets.OBSERVATORY_URL }}"PAYLOAD=$(jq -n \- --arg url "${{ env.TUNNEL_URL }}" \- --arg key "${{ env.LITELLM_MASTER_KEY }}" \+ --arg url "${TUNNEL_URL}" \+ --arg key "${LITELLM_MASTER_KEY}" \'{deployment_url: $url,api_key: $key,@@ -122,7 +126,7 @@ jobs:}')RESPONSE=$(curl -s -w "\n%{http_code}" -X POST "${OBSERVATORY_URL}/run-test" \-H "Content-Type: application/json" \- -H "X-LiteLLM-Observatory-API-Key: ${{ secrets.OBSERVATORY_API_KEY }}" \+ -H "X-LiteLLM-Observatory-API-Key: ${OBSERVATORY_API_KEY}" \-d "$PAYLOAD")HTTP_CODE=$(echo "$RESPONSE" | tail -1)BODY=$(echo "$RESPONSE" | head -n -1)@@ -143,15 +147,17 @@ jobs:- name: Poll for test completionid: poll+ env:+ OBSERVATORY_URL: ${{ secrets.OBSERVATORY_URL }}+ OBSERVATORY_API_KEY: ${{ secrets.OBSERVATORY_API_KEY }}+ REQUEST_ID: ${{ steps.trigger.outputs.request_id }}run: |- OBSERVATORY_URL="${{ secrets.OBSERVATORY_URL }}"- REQUEST_ID="${{ steps.trigger.outputs.request_id }}"TIMEOUT=900 # 15 minutesINTERVAL=30ELAPSED=0while [ $ELAPSED -lt $TIMEOUT ]; doSTATUS=$(curl -s "${OBSERVATORY_URL}/run-status/${REQUEST_ID}" \- -H "X-LiteLLM-Observatory-API-Key: ${{ secrets.OBSERVATORY_API_KEY }}")+ -H "X-LiteLLM-Observatory-API-Key: ${OBSERVATORY_API_KEY}")RUN_STATUS=$(echo "$STATUS" | jq -r '.status')echo "Run status (${ELAPSED}s elapsed): $RUN_STATUS"