Skip to content
Merged
Show file tree
Hide file tree
Changes from 31 commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
5d7b7e7
fix(realtime): register /openai/v1/realtime as websocket route
May 6, 2026
32b031a
Flush virtual-key model max budget increments to Redis after success …
milan-berri May 6, 2026
fa4c7a2
Add unit tests for virtual-key model max budget Redis flush.
milan-berri May 6, 2026
581ae14
honor OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT
May 7, 2026
492118d
Fix OTEL false content capture mode
cursoragent May 7, 2026
f58f892
feat(guardrails): optional skip tool message in unified guardrail inputs
shivamrawat1 May 8, 2026
bdb2b0e
feat(dashboard): skip_tool_message_in_guardrail in guardrail UI
shivamrawat1 May 8, 2026
144279e
fix(ui): URL-encode team_id in teamInfoCall to handle special charact…
SHARP155 May 8, 2026
ae67cec
Allow team admins to test model connections (#27487)
oss-agent-shin May 8, 2026
f2e9738
Add OpenRouter Qwen 3.6 Plus metadata (#27486)
oss-agent-shin May 8, 2026
13a1933
feat(sso): show full IdP claims in /sso/debug/callback (#27498)
ryan-crabbe-berri May 9, 2026
4f3608b
fix(proxy): point /metrics 401 at the opt-out flag
yuneng-berri May 9, 2026
0824c4c
Merge pull request #27403 from BerriAI/litellm_otelGenaiCaptureMessag…
yuneng-berri May 9, 2026
0bcff02
Merge pull request #27502 from BerriAI/litellm_/trusting-hoover-2bbbc8
yuneng-berri May 9, 2026
adc41ad
fix(proxy): bound budget reservation per request instead of pinning t…
yuneng-berri May 9, 2026
b5d3a5f
feat: add read-replica routing for Prisma DB via DATABASE_URL_READ_RE…
yassin-berriai May 9, 2026
4901ecc
Merge remote-tracking branch 'origin/litellm_internal_staging' into l…
yuneng-berri May 9, 2026
0d551ac
fix(proxy): reserve per-image cost for image-generation requests
yuneng-berri May 9, 2026
963cb46
fix(proxy): gate image-gen reservation strictly on model mode
yuneng-berri May 9, 2026
0f11b3e
[UI] Rename "Default" key type to "Full Access" and reorder dropdown …
ryan-crabbe-berri May 9, 2026
5332356
Merge pull request #27334 from BerriAI/litellm_fix_model_max_budget_r…
yuneng-berri May 9, 2026
f69521a
Merge pull request #27323 from BerriAI/litellm_realtimePrometheusMetrics
yuneng-berri May 9, 2026
7057d53
fix(ui-tests): add Typography to antd mock in create_key_button test
yuneng-berri May 9, 2026
e01c8a7
Merge pull request #27509 from BerriAI/litellm_/elegant-franklin-038d44
yuneng-berri May 9, 2026
96f23c2
Merge pull request #27537 from BerriAI/litellm_/hardcore-goldstine-ba…
yuneng-berri May 9, 2026
9380940
fix(mcp): forward extra_headers for OpenAPI MCP tools (#27383)
milan-berri May 9, 2026
3d1127a
Merge pull request #27441 from BerriAI/litellm_remove_tool_call_from_…
shivamrawat1 May 9, 2026
8686001
build(packaging): raise jinja2 floor to 3.1.6
yuneng-berri May 9, 2026
fa5eae8
chore: remove legacy deployment artifacts and litellm-js packages (#2…
yassin-berriai May 9, 2026
936ada2
Merge pull request #27552 from BerriAI/litellm_/charming-sammet-8d77c3
yuneng-berri May 9, 2026
d67dfca
Fix proxy auth status code tests (#27555)
May 9, 2026
b888177
fix: reset proxy budget when initial reset duration is null then upda…
Michael-RZ-Berri May 9, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,27 @@ When opening issues or pull requests, follow these templates:

### Running the proxy server

Start the proxy with a config file:
Create a minimal config file and start the proxy:

```yaml
# config.yaml
model_list:
- model_name: fake-openai-endpoint
litellm_params:
model: openai/fake-model
api_key: fake-key
api_base: https://fake-api.example.com

general_settings:
master_key: sk-1234

litellm_settings:
drop_params: True
telemetry: False
```

```bash
uv run litellm --config dev_config.yaml --port 4000
uv run litellm --config config.yaml --port 4000
```

The proxy takes ~15-20 seconds to fully start (it runs Prisma migrations on boot). Wait for `/health` to return before sending requests. Without a PostgreSQL `DATABASE_URL`, the proxy connects to a default Neon dev database embedded in the `litellm-proxy-extras` package.
Expand Down
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ LiteLLM is a unified interface for 100+ LLM providers with two main components:
- **Bound large result sets.** Prisma materializes full results in memory. For results over ~10 MB, paginate with `take`/`skip` or `cursor`/`take`, always with an explicit `order`. Prefer cursor-based pagination (`skip` is O(n)). Don't paginate naturally small result sets.
- **Limit fetched columns on wide tables.** Use `select` to fetch only needed fields — returns a partial object, so downstream code must not access unselected fields.
- **Check index coverage.** For new or modified queries, check `schema.prisma` for a supporting index. Prefer extending an existing index (e.g. `@@index([a])` → `@@index([a, b])`) over adding a new one, unless it's a `@@unique`. Only add indexes for large/frequent queries.
- **Keep schema files in sync.** Apply schema changes to all `schema.prisma` copies (`schema.prisma`, `litellm/proxy/`, `litellm-proxy-extras/`, `litellm-js/spend-logs/` for SpendLogs) with a migration under `litellm-proxy-extras/litellm_proxy_extras/migrations/`.
- **Keep schema files in sync.** Apply schema changes to all `schema.prisma` copies (`schema.prisma`, `litellm/proxy/`, `litellm-proxy-extras/`) with a migration under `litellm-proxy-extras/litellm_proxy_extras/migrations/`.

### Setup Wizard (`litellm/setup_wizard.py`)
- The wizard is implemented as a single `SetupWizard` class with `@staticmethod` methods — keep it that way. No module-level functions except `run_setup_wizard()` (the public entrypoint) and pure helpers (color, ANSI).
Expand Down
18 changes: 0 additions & 18 deletions deploy/Dockerfile.ghcr_base

This file was deleted.

10 changes: 10 additions & 0 deletions deploy/charts/litellm-helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,16 @@ spec:
- name: DATABASE_URL
value: {{ .Values.db.url | quote }}
{{- end }}
{{- if and .Values.db.useExisting .Values.db.secret.readReplicaUrlKey }}
- name: DATABASE_URL_READ_REPLICA
valueFrom:
secretKeyRef:
name: {{ .Values.db.secret.name }}
key: {{ .Values.db.secret.readReplicaUrlKey }}
{{- else if .Values.db.readReplicaUrl }}
- name: DATABASE_URL_READ_REPLICA
value: {{ .Values.db.readReplicaUrl | quote }}
{{- end }}
- name: PROXY_MASTER_KEY
valueFrom:
secretKeyRef:
Expand Down
20 changes: 20 additions & 0 deletions deploy/charts/litellm-helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,26 @@ db:
passwordKey: password
# Optional: when set, DATABASE_HOST will be sourced from this secret key instead of db.endpoint
endpointKey: ""
# Optional: when set, DATABASE_URL_READ_REPLICA will be sourced from this
# secret key instead of db.readReplicaUrl. Prefer this over the plain
# value: read-replica URLs typically embed credentials, and a value
# written to db.readReplicaUrl ends up visible in the rendered pod spec
# and the Helm release secret.
readReplicaUrlKey: ""

# Optional read-replica routing. When set, the proxy sends read-only
# queries (find_*, count, group_by, query_raw/_first) to this URL while
# writes continue to go to db.url. Useful for Aurora-style clusters with
# separate reader/writer endpoints. Leave empty to keep single-DB behavior.
# When IAM_TOKEN_DB_AUTH is enabled, the reader URL is auto-refreshed
# alongside the writer (host/port/user/db are parsed from this URL once
# at startup; only the IAM token rotates).
#
# If the URL embeds credentials, prefer db.secret.readReplicaUrlKey over
# this field — the plain value is rendered into the pod spec and the
# Helm release secret. This field is intended for credential-less URLs
# only (e.g. when IAM_TOKEN_DB_AUTH supplies the token at runtime).
readReplicaUrl: ""

# Use the Stackgres Helm chart to deploy an instance of a Stackgres cluster.
# The Stackgres Operator must already be installed within the target
Expand Down
56 changes: 0 additions & 56 deletions deploy/kubernetes/kub.yaml

This file was deleted.

12 changes: 0 additions & 12 deletions deploy/kubernetes/service.yaml

This file was deleted.

13 changes: 0 additions & 13 deletions dev_config.yaml

This file was deleted.

5 changes: 5 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ services:
- "4000:4000" # Map the container port to the host, change the host port if necessary
environment:
DATABASE_URL: "postgresql://llmproxy:dbpassword9090@db:5432/litellm"
# Optional: route read-only queries (find_*, count, group_by, query_raw/_first)
# to a separate reader endpoint, e.g. an Aurora reader. Leave unset for
# single-DB deployments. With IAM_TOKEN_DB_AUTH enabled, the reader URL
# is auto-refreshed alongside the writer.
# DATABASE_URL_READ_REPLICA: "postgresql://llmproxy:dbpassword9090@db-reader:5432/litellm"
STORE_MODEL_IN_DB: "True" # allows adding models to proxy via UI
env_file:
- .env # Load local .env file
Expand Down
68 changes: 0 additions & 68 deletions docker/Dockerfile.alpine

This file was deleted.

86 changes: 0 additions & 86 deletions docker/Dockerfile.custom_ui

This file was deleted.

Loading
Loading