Skip to content

Commit 1c317ac

Browse files
authored
Merge pull request #17145 from BerriAI/main
merge main
2 parents abcc2f0 + 3c2623e commit 1c317ac

File tree

687 files changed

+56549
-12586
lines changed

Some content is hidden

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

687 files changed

+56549
-12586
lines changed

.circleci/config.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1785,7 +1785,7 @@ jobs:
17851785
- audio_coverage
17861786
installing_litellm_on_python:
17871787
docker:
1788-
- image: circleci/python:3.8
1788+
- image: cimg/python:3.11
17891789
auth:
17901790
username: ${DOCKERHUB_USERNAME}
17911791
password: ${DOCKERHUB_PASSWORD}
@@ -3389,7 +3389,9 @@ jobs:
33893389
nvm use 20
33903390
33913391
cd ui/litellm-dashboard
3392-
npm ci || npm install
3392+
# Remove node_modules and package-lock to ensure clean install (fixes optional deps issue)
3393+
rm -rf node_modules package-lock.json
3394+
npm install
33933395
33943396
# CI run, with both LCOV (Codecov) and HTML (artifact you can click)
33953397
CI=true npm run test -- --run --coverage \

.github/workflows/test-litellm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- name: Setup litellm-enterprise as local package
3838
run: |
3939
cd enterprise
40-
python -m pip install -e .
40+
poetry run pip install -e .
4141
cd ..
4242
- name: Run tests
4343
run: |

AGENTS.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,25 @@ LiteLLM supports MCP for agent workflows:
9898

9999
Use `poetry run python script.py` to run Python scripts in the project environment (for non-test files).
100100

101+
## GITHUB TEMPLATES
102+
103+
When opening issues or pull requests, follow these templates:
104+
105+
### Bug Reports (`.github/ISSUE_TEMPLATE/bug_report.yml`)
106+
- Describe what happened vs. expected behavior
107+
- Include relevant log output
108+
- Specify LiteLLM version
109+
- Indicate if you're part of an ML Ops team (helps with prioritization)
110+
111+
### Feature Requests (`.github/ISSUE_TEMPLATE/feature_request.yml`)
112+
- Clearly describe the feature
113+
- Explain motivation and use case with concrete examples
114+
115+
### Pull Requests (`.github/pull_request_template.md`)
116+
- Add at least 1 test in `tests/litellm/`
117+
- Ensure `make test-unit` passes
118+
119+
101120
## TESTING CONSIDERATIONS
102121

103122
1. **Provider Tests**: Test against real provider APIs when possible

CLAUDE.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,22 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
2828
### Running Scripts
2929
- `poetry run python script.py` - Run Python scripts (use for non-test files)
3030

31+
### GitHub Issue & PR Templates
32+
When contributing to the project, use the appropriate templates:
33+
34+
**Bug Reports** (`.github/ISSUE_TEMPLATE/bug_report.yml`):
35+
- Describe what happened vs. what you expected
36+
- Include relevant log output
37+
- Specify your LiteLLM version
38+
39+
**Feature Requests** (`.github/ISSUE_TEMPLATE/feature_request.yml`):
40+
- Describe the feature clearly
41+
- Explain the motivation and use case
42+
43+
**Pull Requests** (`.github/pull_request_template.md`):
44+
- Add at least 1 test in `tests/litellm/`
45+
- Ensure `make test-unit` passes
46+
3147
## Architecture Overview
3248

3349
LiteLLM is a unified interface for 100+ LLM providers with two main components:

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ FROM $LITELLM_RUNTIME_IMAGE AS runtime
4848
USER root
4949

5050
# Install runtime dependencies
51-
RUN apk add --no-cache openssl tzdata
51+
RUN apk add --no-cache openssl tzdata nodejs npm
5252

5353
# Upgrade pip to fix CVE-2025-8869
5454
RUN pip install --upgrade pip>=24.3.1

GEMINI.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,25 @@ This file provides guidance to Gemini when working with code in this repository.
2525
- `poetry run pytest tests/path/to/test_file.py -v` - Run specific test file
2626
- `poetry run pytest tests/path/to/test_file.py::test_function -v` - Run specific test
2727

28+
### Running Scripts
29+
- `poetry run python script.py` - Run Python scripts (use for non-test files)
30+
31+
### GitHub Issue & PR Templates
32+
When contributing to the project, use the appropriate templates:
33+
34+
**Bug Reports** (`.github/ISSUE_TEMPLATE/bug_report.yml`):
35+
- Describe what happened vs. what you expected
36+
- Include relevant log output
37+
- Specify your LiteLLM version
38+
39+
**Feature Requests** (`.github/ISSUE_TEMPLATE/feature_request.yml`):
40+
- Describe the feature clearly
41+
- Explain the motivation and use case
42+
43+
**Pull Requests** (`.github/pull_request_template.md`):
44+
- Add at least 1 test in `tests/litellm/`
45+
- Ensure `make test-unit` passes
46+
2847
## Architecture Overview
2948

3049
LiteLLM is a unified interface for 100+ LLM providers with two main components:

README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<p align="center">Call all LLM APIs using the OpenAI format [Bedrock, Huggingface, VertexAI, TogetherAI, Azure, OpenAI, Groq etc.]
1212
<br>
1313
</p>
14-
<h4 align="center"><a href="https://docs.litellm.ai/docs/simple_proxy" target="_blank">LiteLLM Proxy Server (LLM Gateway)</a> | <a href="https://docs.litellm.ai/docs/hosted" target="_blank"> Hosted Proxy (Preview)</a> | <a href="https://docs.litellm.ai/docs/enterprise"target="_blank">Enterprise Tier</a></h4>
14+
<h4 align="center"><a href="https://docs.litellm.ai/docs/simple_proxy" target="_blank">LiteLLM Proxy Server (LLM Gateway)</a> | <a href="https://docs.litellm.ai/docs/enterprise#hosted-litellm-proxy" target="_blank"> Hosted Proxy</a> | <a href="https://docs.litellm.ai/docs/enterprise"target="_blank">Enterprise Tier</a></h4>
1515
<h4 align="center">
1616
<a href="https://pypi.org/project/litellm/" target="_blank">
1717
<img src="https://img.shields.io/pypi/v/litellm.svg" alt="PyPI Version">
@@ -40,18 +40,14 @@ LiteLLM manages:
4040
LiteLLM Performance: **8ms P95 latency** at 1k RPS (See benchmarks [here](https://docs.litellm.ai/docs/benchmarks))
4141

4242
[**Jump to LiteLLM Proxy (LLM Gateway) Docs**](https://github.com/BerriAI/litellm?tab=readme-ov-file#litellm-proxy-server-llm-gateway---docs) <br>
43-
[**Jump to Supported LLM Providers**](https://github.com/BerriAI/litellm?tab=readme-ov-file#supported-providers-docs)
43+
[**Jump to Supported LLM Providers**](https://docs.litellm.ai/docs/providers)
4444

4545
🚨 **Stable Release:** Use docker images with the `-stable` tag. These have undergone 12 hour load tests, before being published. [More information about the release cycle here](https://docs.litellm.ai/docs/proxy/release_cycle)
4646

4747
Support for more providers. Missing a provider or LLM Platform, raise a [feature request](https://github.com/BerriAI/litellm/issues/new?assignees=&labels=enhancement&projects=&template=feature_request.yml&title=%5BFeature%5D%3A+).
4848

4949
# Usage ([**Docs**](https://docs.litellm.ai/docs/))
5050

51-
> [!IMPORTANT]
52-
> LiteLLM v1.0.0 now requires `openai>=1.0.0`. Migration guide [here](https://docs.litellm.ai/docs/migration)
53-
> LiteLLM v1.40.14+ now requires `pydantic>=2.0.0`. No changes required.
54-
5551
<a target="_blank" href="https://colab.research.google.com/github/BerriAI/litellm/blob/main/cookbook/liteLLM_Getting_Started.ipynb">
5652
<img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/>
5753
</a>
@@ -114,6 +110,8 @@ print(response)
114110
}
115111
```
116112

113+
> **Note:** LiteLLM also supports the [Responses API](https://docs.litellm.ai/docs/response_api) (`litellm.responses()`)
114+
117115
Call any model supported by a provider, with `model=<provider_name>/<model_name>`. There might be provider-specific details here, so refer to [provider docs for more information](https://docs.litellm.ai/docs/providers)
118116

119117
## Async ([Docs](https://docs.litellm.ai/docs/completion/stream#async-completion))
@@ -210,7 +208,7 @@ response = completion(model="openai/gpt-4o", messages=[{"role": "user", "content
210208

211209
Track spend + Load Balance across multiple projects
212210

213-
[Hosted Proxy (Preview)](https://docs.litellm.ai/docs/hosted)
211+
[Hosted Proxy](https://docs.litellm.ai/docs/enterprise#hosted-litellm-proxy)
214212

215213
The proxy provides:
216214

ci_cd/security_scans.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,13 @@ run_grype_scans() {
6969
# Allowlist of CVEs to be ignored in failure threshold/reporting
7070
# - CVE-2025-8869: Not applicable on Python >=3.13 (PEP 706 implemented); pip fallback unused; no OS-level fix
7171
# - GHSA-4xh5-x5gv-qwph: GitHub Security Advisory alias for CVE-2025-8869
72+
# - GHSA-5j98-mcp5-4vw2: glob CLI command injection via -c/--cmd; glob CLI is not used in the litellm runtime image,
73+
# and the vulnerable versions are pulled in only via OS-level/node tooling outside of our application code
7274
ALLOWED_CVES=(
7375
"CVE-2025-8869"
7476
"GHSA-4xh5-x5gv-qwph"
7577
"CVE-2025-8291" # no fix available as of Oct 11, 2025
78+
"GHSA-5j98-mcp5-4vw2"
7679
)
7780

7881
# Build JSON array of allowlisted CVE IDs for jq

cookbook/LiteLLM_HuggingFace.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
" {\n",
132132
" \"type\": \"image_url\",\n",
133133
" \"image_url\": {\n",
134-
" \"url\": \"https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg\",\n",
134+
" \"url\": \"https://awsmp-logos.s3.amazonaws.com/seller-xw5kijmvmzasy/c233c9ade2ccb5491072ae232c814942.png\",\n",
135135
" },\n",
136136
" },\n",
137137
" ],\n",

cookbook/misc/RELEASE_NOTES_GENERATION_INSTRUCTIONS.md

Lines changed: 50 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,14 @@ hide_table_of_contents: false
4343
## Key Highlights
4444
[3-5 bullet points of major features - prioritize MCP OAuth 2.0, scheduled key rotations, and major model updates]
4545

46+
## New Providers and Endpoints
47+
48+
### New Providers
49+
[Table with Provider, Supported Endpoints, Description columns]
50+
51+
### New LLM API Endpoints
52+
[Optional table for new endpoint additions with Endpoint, Method, Description, Documentation columns]
53+
4654
## New Models / Updated Models
4755
#### New Model Support
4856
[Model pricing table]
@@ -53,9 +61,6 @@ hide_table_of_contents: false
5361
### Bug Fixes
5462
[Provider-specific bug fixes organized by provider]
5563

56-
#### New Provider Support
57-
[New provider integrations]
58-
5964
## LLM API Endpoints
6065
#### Features
6166
[API-specific features organized by API type]
@@ -70,16 +75,20 @@ hide_table_of_contents: false
7075
#### Bugs
7176
[Management-related bug fixes]
7277

73-
## Logging / Guardrail / Prompt Management Integrations
74-
#### Features
75-
[Organized by integration provider with proper doc links]
78+
## AI Integrations
79+
80+
### Logging
81+
[Logging integrations organized by provider with proper doc links, includes General subsection]
7682

77-
#### Guardrails
83+
### Guardrails
7884
[Guardrail-specific features and fixes]
7985

80-
#### Prompt Management
86+
### Prompt Management
8187
[Prompt management integrations like BitBucket]
8288

89+
### Secret Managers
90+
[Secret manager integrations - AWS, HashiCorp Vault, CyberArk, etc.]
91+
8392
## Spend Tracking, Budgets and Rate Limiting
8493
[Cost tracking, service tier pricing, rate limiting improvements]
8594

@@ -149,26 +158,34 @@ hide_table_of_contents: false
149158
- Admin settings updates
150159
- Management routes and endpoints
151160

152-
**Logging / Guardrail / Prompt Management Integrations:**
161+
**AI Integrations:**
153162
- **Structure:**
154-
- `#### Features` - organized by integration provider with proper doc links
155-
- `#### Guardrails` - guardrail-specific features and fixes
156-
- `#### Prompt Management` - prompt management integrations
157-
- `#### New Integration` - major new integrations
158-
- **Integration Categories:**
163+
- `### Logging` - organized by integration provider with proper doc links, includes **General** subsection
164+
- `### Guardrails` - guardrail-specific features and fixes
165+
- `### Prompt Management` - prompt management integrations
166+
- `### Secret Managers` - secret manager integrations
167+
- **Logging Categories:**
159168
- **[DataDog](../../docs/proxy/logging#datadog)** - group all DataDog-related changes
160169
- **[Langfuse](../../docs/proxy/logging#langfuse)** - Langfuse-specific features
161170
- **[Prometheus](../../docs/proxy/logging#prometheus)** - monitoring improvements
162171
- **[PostHog](../../docs/observability/posthog)** - observability integration
163172
- **[SQS](../../docs/proxy/logging#sqs)** - SQS logging features
164173
- **[Opik](../../docs/proxy/logging#opik)** - Opik integration improvements
174+
- **[Arize Phoenix](../../docs/observability/arize_phoenix)** - Arize Phoenix integration
175+
- **General** - miscellaneous logging features like callback controls, sensitive data masking
165176
- Other logging providers with proper doc links
166177
- **Guardrail Categories:**
167-
- LakeraAI, Presidio, Noma, and other guardrail providers
178+
- LakeraAI, Presidio, Noma, Grayswan, IBM Guardrails, and other guardrail providers
168179
- **Prompt Management:**
169180
- BitBucket, GitHub, and other prompt management integrations
181+
- Prompt versioning, testing, and UI features
182+
- **Secret Managers:**
183+
- **[AWS Secrets Manager](../../docs/secret_managers)** - AWS secret manager features
184+
- **[HashiCorp Vault](../../docs/secret_managers)** - Vault integrations
185+
- **[CyberArk](../../docs/secret_managers)** - CyberArk integrations
186+
- **General** - cross-secret-manager features
170187
- Use bullet points under each provider for multiple features
171-
- Separate logging features from guardrails and prompt management clearly
188+
- Separate logging, guardrails, prompt management, and secret managers clearly
172189

173190
### 4. Documentation Linking Strategy
174191

@@ -232,6 +249,9 @@ From git diff analysis, create tables like:
232249
- **Cost breakdown in logging** → Spend Tracking section
233250
- **MCP configuration/OAuth** → MCP Gateway (NOT General Proxy Improvements)
234251
- **All documentation PRs** → Documentation Updates section for visibility
252+
- **Callback controls/logging features** → AI Integrations > Logging > General
253+
- **Secret manager features** → AI Integrations > Secret Managers
254+
- **Video generation tag-based routing** → LLM API Endpoints > Video Generation API
235255

236256
### 7. Writing Style Guidelines
237257

@@ -370,10 +390,20 @@ This release has a known issue...
370390
- **Virtual Keys** - Key rotation and management
371391
- **Models + Endpoints** - Provider and endpoint management
372392

373-
**Logging Section Expansion:**
374-
- Rename to "Logging / Guardrail / Prompt Management Integrations"
375-
- Add **Prompt Management** subsection for BitBucket, GitHub integrations
376-
- Keep guardrails separate from logging features
393+
**AI Integrations Section Expansion:**
394+
- Renamed from "Logging / Guardrail / Prompt Management Integrations" to "AI Integrations"
395+
- Structure with four main subsections:
396+
- **Logging** - with **General** subsection for miscellaneous logging features
397+
- **Guardrails** - separate from logging features
398+
- **Prompt Management** - BitBucket, GitHub integrations, versioning features
399+
- **Secret Managers** - AWS, HashiCorp Vault, CyberArk, etc.
400+
401+
**New Providers and Endpoints Section:**
402+
- Add section after Key Highlights and before New Models / Updated Models
403+
- Include tables for:
404+
- **New Providers** - Provider name, supported endpoints, description
405+
- **New LLM API Endpoints** (optional) - Endpoint, method, description, documentation link
406+
- Only include major new provider integrations, not minor provider updates
377407

378408
## Example Command Workflow
379409

0 commit comments

Comments
 (0)