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]

chore(ci): retire daily OSS branches in favor of litellm_internal_staging

Yuneng Jiang8a0bb4cc5606
diff --git a/.github/workflows/create_daily_oss_branch.yml b/.github/workflows/create_daily_oss_branch.yml
deleted file mode 100644
index 43de4a0e75f..00000000000
--- a/.github/workflows/create_daily_oss_branch.yml
+++ /dev/null
@@ -1,61 +0,0 @@
-name: Create Daily OSS Branch
-
-on:
- schedule:
- - cron: "0 16 * * 1-5" # 9am PT during daylight saving time, weekdays.
- workflow_dispatch:
- inputs:
- date:
- description: "Branch date in YYYY_MM_DD format. Defaults to today's UTC date."
- required: false
- type: string
-
-permissions:
- contents: write
-
-jobs:
- create-oss-branch:
- if: github.repository == 'BerriAI/litellm'
- runs-on: ubuntu-latest
- timeout-minutes: 10
-
- steps:
- - name: Checkout repository
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
- with:
- fetch-depth: 0
- persist-credentials: false
-
- - name: Create dated OSS branch
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- REQUESTED_DATE: ${{ inputs.date }}
- run: |
- set -euo pipefail
-
- if [ -n "${REQUESTED_DATE}" ]; then
- if ! echo "${REQUESTED_DATE}" | grep -Eq '^[0-9]{4}_[0-9]{2}_[0-9]{2}$'; then
- echo "::error::date must use YYYY_MM_DD format, got '${REQUESTED_DATE}'"
- exit 1
- fi
- BRANCH_DATE="${REQUESTED_DATE}"
- else
- BRANCH_DATE="$(date -u +'%Y_%m_%d')"
- fi
-
- BRANCH_NAME="litellm_oss_daily_${BRANCH_DATE}"
- echo "Creating branch: ${BRANCH_NAME}"
-
- git config user.name "github-actions[bot]"
- git config user.email "github-actions[bot]@users.noreply.github.com"
-
- git fetch origin main "${BRANCH_NAME}" || true
-
- if git show-ref --verify --quiet "refs/remotes/origin/${BRANCH_NAME}"; then
- echo "Branch ${BRANCH_NAME} already exists. Skipping creation."
- exit 0
- fi
-
- git checkout -b "${BRANCH_NAME}" origin/main
- git push "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" "${BRANCH_NAME}"
- echo "Successfully created and pushed branch: ${BRANCH_NAME}"
diff --git a/.github/workflows/guard-main-branch.yml b/.github/workflows/guard-main-branch.yml
index aa4968f0c1e..5bc561c6441 100644
--- a/.github/workflows/guard-main-branch.yml
+++ b/.github/workflows/guard-main-branch.yml
@@ -31,12 +31,12 @@ jobs:
echo "PR head repo: $HEAD_REPO"
echo "PR head branch: $HEAD_REF"
if [ "$HEAD_REPO" != "$BASE_REPO" ]; then
- echo "::error::PRs to main must originate from the canonical repository ($BASE_REPO), not a fork ($HEAD_REPO). External contributors should open PRs against the current daily OSS branch (named litellm_oss_daily_YYYY_MM_DD; a fresh one is cut each weekday, so target the most recent) instead."
+ echo "::error::PRs to main must originate from the canonical repository ($BASE_REPO), not a fork ($HEAD_REPO). External contributors should open PRs against 'litellm_internal_staging' instead."
exit 1
fi
if [ "$HEAD_REF" = "litellm_internal_staging" ] || [[ "$HEAD_REF" == litellm_hotfix_?* ]]; then
echo "Allowed source branch."
exit 0
fi
- echo "::error::PRs to main must originate from 'litellm_internal_staging' or a 'litellm_hotfix_*' branch. Got: '$HEAD_REF'. If this is a contribution, retarget the PR against the current daily OSS branch (named litellm_oss_daily_YYYY_MM_DD; a fresh one is cut each weekday, so target the most recent) instead."
+ echo "::error::PRs to main must originate from 'litellm_internal_staging' or a 'litellm_hotfix_*' branch. Got: '$HEAD_REF'. If this is a contribution, retarget the PR against 'litellm_internal_staging' instead."
exit 1
diff --git a/.github/workflows/oss_daily_guardrails.yml b/.github/workflows/oss_daily_guardrails.yml
deleted file mode 100644
index f9dc746ee05..00000000000
--- a/.github/workflows/oss_daily_guardrails.yml
+++ /dev/null
@@ -1,50 +0,0 @@
-name: OSS Daily Guardrails
-
-on:
- push:
- branches:
- - "litellm_oss_daily_20*"
- pull_request:
- branches:
- - "litellm_oss_daily_20*"
- - litellm_internal_staging
-
-permissions:
- contents: read
-
-concurrency:
- group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
- cancel-in-progress: true
-
-jobs:
- oss-safe-checks:
- name: Run OSS daily safe checks
- if: startsWith(github.ref_name, 'litellm_oss_daily_20') || startsWith(github.head_ref, 'litellm_oss_daily_20') || startsWith(github.base_ref, 'litellm_oss_daily_20')
- runs-on: ubuntu-latest
- timeout-minutes: 10
-
- steps:
- - name: Checkout repository
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
- with:
- persist-credentials: false
-
- - name: Set up Python
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
- with:
- python-version: "3.12"
-
- - name: Set up uv
- uses: ./.github/actions/setup-uv-with-retries
- with:
- version: "0.10.9"
-
- - name: Run secret scan test
- run: |
- uv run --frozen --with 'pytest==9.0.2' pytest tests/litellm/test_no_hardcoded_secrets.py -v
-
- - name: Run Ruff
- run: |
- uv sync --frozen
- cd litellm
- uv run --no-sync ruff check .
diff --git a/CLAUDE.md b/CLAUDE.md
index 9f708716c6d..1a4826d51e9 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -19,7 +19,7 @@ Same thing for bug fixes. The tests should make it so that this specific bug can
End-to-end tests belong in `tests/e2e/` and must follow the harness conventions documented in that directory's `CLAUDE.md`
-When creating PRs, don't set base to `main`. `litellm_internal_staging` serves that purpose for internal contributors; external / OSS contributions target the current daily OSS branch instead, named `litellm_oss_daily_YYYY_MM_DD` (a fresh one is cut each weekday, so use the most recent)
+When creating PRs, don't set base to `main`. `litellm_internal_staging` is the default base branch and serves that purpose for both internal and external / OSS contributions
When writing a PR body, treat the comments and imperative instructions inside @.github/pull_request_template.md as rules to follow, not just layout. Agent harnesses may strip HTML comments from copies of that file injected into context, so read .github/pull_request_template.md from disk before writing a PR body to make sure you see every comment rule
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 0202965ec4b..d995ddcc87e 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -322,7 +322,7 @@ npm run build
## Submitting Your PR
1. **Push your branch**: `git push origin your-feature-branch`
-2. **Create a PR**: Go to GitHub and open a pull request against the current daily OSS branch, named `litellm_oss_daily_YYYY_MM_DD`. A fresh one is cut each weekday, so pick the most recent from the [branch list](https://github.com/BerriAI/litellm/branches/all?query=litellm_oss_daily). Do not target `main`.
+2. **Create a PR**: Go to GitHub and open a pull request against [`litellm_internal_staging`](https://github.com/BerriAI/litellm/tree/litellm_internal_staging), which is the default base branch. Do not target `main`.
3. **Fill out the PR template**: Provide clear description of changes
4. **Wait for review**: Maintainers will review and provide feedback
5. **Address feedback**: Make requested changes and push updates