Skip to content

Commit 9d13a33

Browse files
Merge branch 'BerriAI:main' into main
2 parents ced2c35 + 10a48f7 commit 9d13a33

2,399 files changed

Lines changed: 126366 additions & 43470 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.circleci/config.yml

Lines changed: 402 additions & 699 deletions
Large diffs are not rendered by default.

.circleci/requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ mcp==1.25.0 # for MCP server
1717
semantic_router==0.1.10 # for auto-routing with litellm
1818
fastuuid==0.12.0
1919
responses==0.25.7 # for proxy client tests
20-
pytest-retry==1.6.3 # for automatic test retries
20+
pytest-retry==1.6.3 # for automatic test retries
21+
litellm-proxy-extras # for prisma migrations

.github/codeql/codeql-config.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
11
name: "LiteLLM CodeQL config"
22

3-
# Exclude queries that produce result sets > 2 GiB on this codebase,
4-
# causing 49+ minute runs that fail and block CI resources.
3+
# Use security-extended suite instead of security-and-quality to avoid
4+
# result sets > 2 GiB on this codebase that cause fatal OOM failures.
5+
queries:
6+
- uses: security-extended
7+
8+
# These two queries are security queries included in security-extended that
9+
# individually produce result sets > 2 GiB on this codebase, causing fatal
10+
# OOM failures. Exclude them as a safety net until CI confirms they no longer
11+
# OOM; drop these exclusions in a follow-up once verified.
512
query-filters:
613
- exclude:
7-
id: py/clear-text-logging-sensitive-data # CWE-312/CleartextLogging.qlresult set > 2 GiB
14+
id: py/clear-text-logging-sensitive-data # CWE-312 — > 2 GiB result set
815
- exclude:
9-
id: py/polynomial-redos # CWE-730/PolynomialReDoS.qlresult set > 2 GiB
16+
id: py/polynomial-redos # CWE-730 — > 2 GiB result set
1017

1118
paths-ignore:
1219
- tests

.github/pull_request_template.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
- [ ] My PR's scope is as isolated as possible, it only solves 1 specific problem
1212
- [ ] I have requested a Greptile review by commenting `@greptileai` and received a **Confidence Score of at least 4/5** before requesting a maintainer review
1313

14+
## Delays in PR merge?
15+
16+
If you're seeing a delay in your PR being merged, ping the LiteLLM Team on [Slack (#pr-review)](https://join.slack.com/t/litellmossslack/shared_invite/zt-3o7nkuyfr-p_kbNJj8taRfXGgQI1~YyA).
17+
1418
## CI (LiteLLM team)
1519

1620
> **CI status guideline:**

.github/workflows/codeql.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ permissions:
1919

2020
jobs:
2121
analyze:
22+
if: github.event_name != 'schedule' || github.repository == 'BerriAI/litellm'
2223
name: Analyze (${{ matrix.language }})
2324
runs-on: ubuntu-latest
2425
timeout-minutes: 30

.github/workflows/codspeed.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: CodSpeed Benchmarks
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
# Allow CodSpeed to trigger backtest performance analysis
11+
# in order to generate initial data
12+
workflow_dispatch:
13+
14+
permissions:
15+
contents: read
16+
id-token: write
17+
18+
concurrency:
19+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
20+
cancel-in-progress: true
21+
22+
jobs:
23+
benchmarks:
24+
runs-on: ubuntu-latest
25+
timeout-minutes: 15
26+
27+
steps:
28+
- uses: actions/checkout@v4
29+
30+
- name: Set up Python
31+
uses: actions/setup-python@v5
32+
with:
33+
python-version: "3.12"
34+
35+
- name: Install dependencies
36+
run: |
37+
pip install -e "."
38+
pip install pytest pytest-codspeed==4.3.0
39+
40+
- name: Run benchmarks
41+
uses: CodSpeedHQ/action@v4
42+
with:
43+
mode: simulation
44+
run: pytest tests/benchmarks/ --codspeed

.github/workflows/create_daily_staging_branch.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77

88
jobs:
99
create-staging-branch:
10+
if: github.repository == 'BerriAI/litellm'
1011
runs-on: ubuntu-latest
1112

1213
steps:
@@ -41,3 +42,40 @@ jobs:
4142
git push origin $BRANCH_NAME
4243
echo "Successfully created and pushed branch: $BRANCH_NAME"
4344
fi
45+
46+
create-internal-dev-branch:
47+
if: github.repository == 'BerriAI/litellm'
48+
runs-on: ubuntu-latest
49+
50+
steps:
51+
- name: Checkout repository
52+
uses: actions/checkout@v3
53+
with:
54+
fetch-depth: 0
55+
56+
- name: Create internal dev branch
57+
env:
58+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59+
run: |
60+
# Configure Git user
61+
git config user.name "github-actions[bot]"
62+
git config user.email "github-actions[bot]@users.noreply.github.com"
63+
64+
# Generate branch name with MM_DD_YYYY format
65+
BRANCH_NAME="litellm_internal_dev_$(date +'%m_%d_%Y')"
66+
echo "Creating branch: $BRANCH_NAME"
67+
68+
# Fetch all branches
69+
git fetch --all
70+
71+
# Check if the branch already exists
72+
if git show-ref --verify --quiet refs/remotes/origin/$BRANCH_NAME; then
73+
echo "Branch $BRANCH_NAME already exists. Skipping creation."
74+
else
75+
echo "Creating new branch: $BRANCH_NAME"
76+
# Create the new branch from main
77+
git checkout -b $BRANCH_NAME origin/main
78+
# Push the new branch
79+
git push origin $BRANCH_NAME
80+
echo "Successfully created and pushed branch: $BRANCH_NAME"
81+
fi

0 commit comments

Comments
 (0)