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
pin github scripts + remove unused
Yuneng Jiangf86b240d7efd
diff --git a/.github/workflows/auto_update_price_and_context_window.yml b/.github/workflows/auto_update_price_and_context_window.ymlindex 98b9d868e68..4cea6325972 100644--- a/.github/workflows/auto_update_price_and_context_window.yml+++ b/.github/workflows/auto_update_price_and_context_window.yml@@ -2,7 +2,7 @@ name: Updates model_prices_and_context_window.json and Create Pull Requeston:schedule:- - cron: "0 0 * * 0" # Run every Sundays at midnight+ - cron: "0 0 * * 0" # Run every Sundays at midnight#- cron: "0 0 * * *" # Run daily at midnightjobs:@@ -10,7 +10,7 @@ jobs:if: github.repository == 'BerriAI/litellm'runs-on: ubuntu-lateststeps:- - uses: actions/checkout@v3+ - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0- name: Install Dependenciesrun: |pip install aiohttp@@ -26,4 +26,4 @@ jobs:--head auto-update-price-and-context-window-$(date +'%Y-%m-%d') \--base mainenv:- GH_TOKEN: ${{ secrets.GH_TOKEN }}\ No newline at end of file+ GH_TOKEN: ${{ secrets.GH_TOKEN }}diff --git a/.github/workflows/check_duplicate_issues.yml b/.github/workflows/check_duplicate_issues.ymlindex 6d11ce573eb..539290bfeaf 100644--- a/.github/workflows/check_duplicate_issues.yml+++ b/.github/workflows/check_duplicate_issues.yml@@ -12,7 +12,7 @@ jobs:contents: readsteps:- name: Check for potential duplicates- uses: wow-actions/potential-duplicates@v1+ uses: wow-actions/potential-duplicates@4d4ea0352e0383859279938e255179dd1dbb67b5 # v1.1.0with:GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}label: potential-duplicate@@ -30,13 +30,13 @@ jobs:- name: Checkout close scriptif: github.event.action == 'opened'- uses: actions/checkout@v4+ uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0with:sparse-checkout: .github/scripts- name: Set up Pythonif: github.event.action == 'opened'- uses: actions/setup-python@v5+ uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0with:python-version: "3.11"diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.ymlindex 91b88b66a1f..25ff5261ccd 100644--- a/.github/workflows/codeql.yml+++ b/.github/workflows/codeql.yml@@ -38,16 +38,16 @@ jobs:steps:- name: Checkout repository- uses: actions/checkout@v4+ uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0- name: Initialize CodeQL- uses: github/codeql-action/init@v3+ uses: github/codeql-action/init@ebcb5b36ded6beda4ceefea6a8bc4cc885255bb3 # v3with:languages: ${{ matrix.language }}build-mode: ${{ matrix.build-mode }}config-file: ./.github/codeql/codeql-config.yml- name: Perform CodeQL Analysis- uses: github/codeql-action/analyze@v3+ uses: github/codeql-action/analyze@@ebcb5b36ded6beda4ceefea6a8bc4cc885255bb3 # v3with:category: "/language:${{ matrix.language }}"diff --git a/.github/workflows/codspeed.yml b/.github/workflows/codspeed.ymlindex 385b95fdaf5..749242b1cd6 100644--- a/.github/workflows/codspeed.yml+++ b/.github/workflows/codspeed.yml@@ -25,10 +25,10 @@ jobs:timeout-minutes: 15steps:- - uses: actions/checkout@v4+ - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0- name: Set up Python- uses: actions/setup-python@v5+ uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0with:python-version: "3.12"@@ -38,7 +38,7 @@ jobs:pip install pytest pytest-codspeed==4.3.0- name: Run benchmarks- uses: CodSpeedHQ/action@v4+ uses: CodSpeedHQ/action@1c8ae4843586d3ba879736b7f6b7b0c990757fab # v4.12.1with:mode: simulationrun: pytest tests/benchmarks/ --codspeeddiff --git a/.github/workflows/create_daily_staging_branch.yml b/.github/workflows/create_daily_staging_branch.ymlindex ec27aaad8ac..0df5f4f92ea 100644--- a/.github/workflows/create_daily_staging_branch.yml+++ b/.github/workflows/create_daily_staging_branch.yml@@ -2,8 +2,8 @@ name: Create Daily Staging Branchon:schedule:- - cron: '0 0,12 * * *' # Runs every 12 hours at midnight and noon UTC- workflow_dispatch: # Allow manual trigger+ - cron: "0 0,12 * * *" # Runs every 12 hours at midnight and noon UTC+ workflow_dispatch: # Allow manual triggerjobs:create-staging-branch:@@ -12,7 +12,7 @@ jobs:steps:- name: Checkout repository- uses: actions/checkout@v3+ uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0with:fetch-depth: 0@@ -49,7 +49,7 @@ jobs:steps:- name: Checkout repository- uses: actions/checkout@v3+ uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0with:fetch-depth: 0diff --git a/.github/workflows/helm_unit_test.yml b/.github/workflows/helm_unit_test.ymldeleted file mode 100644index c4b83af70a1..00000000000--- a/.github/workflows/helm_unit_test.yml+++ /dev/null@@ -1,27 +0,0 @@-name: Helm unit test--on:- pull_request:- push:- branches:- - main--jobs:- unit-test:- runs-on: ubuntu-latest- steps:- - name: Checkout- uses: actions/checkout@v2-- - name: Set up Helm 3.11.1- uses: azure/setup-helm@v1- with:- version: '3.11.1'-- - name: Install Helm Unit Test Plugin- run: |- helm plugin install https://github.com/helm-unittest/helm-unittest --version v0.4.4-- - name: Run unit tests- run:- helm unittest -f 'tests/*.yaml' deploy/charts/litellm-helm\ No newline at end of filediff --git a/.github/workflows/issue-keyword-labeler.yml b/.github/workflows/issue-keyword-labeler.ymlindex 936f90f747f..59b8fd9cf9f 100644--- a/.github/workflows/issue-keyword-labeler.yml+++ b/.github/workflows/issue-keyword-labeler.yml@@ -2,8 +2,8 @@ name: Issue Keyword Labeleron:issues:- types:- - opened+ types:+ - openedjobs:scan-and-label:@@ -13,7 +13,7 @@ jobs:contents: readsteps:- name: Checkout code- uses: actions/checkout@v4+ uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0- name: Scan for provider keywordsid: scan@@ -24,7 +24,7 @@ jobs:- name: Ensure label existsif: steps.scan.outputs.found == 'true'- uses: actions/github-script@v7+ uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.1.0with:github-token: ${{ secrets.GITHUB_TOKEN }}script: |@@ -51,7 +51,7 @@ jobs:- name: Add label to the issueif: steps.scan.outputs.found == 'true'- uses: actions/github-script@v7+ uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.1.0with:github-token: ${{ secrets.GITHUB_TOKEN }}script: |@@ -61,4 +61,3 @@ jobs:issue_number: context.issue.number,labels: ['llm translation']});-diff --git a/.github/workflows/label-component.yml b/.github/workflows/label-component.ymlindex fd079fce6c1..e0c2fa94d8c 100644--- a/.github/workflows/label-component.yml+++ b/.github/workflows/label-component.yml@@ -12,7 +12,7 @@ jobs:issues: writesteps:- name: Add component labels- uses: actions/github-script@v7+ uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.1.0with:github-token: ${{ secrets.GITHUB_TOKEN }}script: |