Skip to content

Commit c18fc0b

Browse files
authored
Merge branch 'BerriAI:main' into main
2 parents 50cca29 + fe05e33 commit c18fc0b

File tree

125 files changed

+6517
-1655
lines changed

Some content is hidden

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

125 files changed

+6517
-1655
lines changed

.circleci/config.yml

Lines changed: 59 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3339,7 +3339,7 @@ jobs:
33393339
python -m build
33403340
twine upload --verbose dist/*
33413341
3342-
e2e_ui_testing:
3342+
ui_build:
33433343
machine:
33443344
image: ubuntu-2204:2023.10.1
33453345
resource_class: xlarge
@@ -3366,6 +3366,48 @@ jobs:
33663366
33673367
# Now source the build script
33683368
source ./build_ui.sh
3369+
- persist_to_workspace:
3370+
root: .
3371+
paths:
3372+
- litellm/proxy/_experimental/out
3373+
3374+
ui_unit_tests:
3375+
machine:
3376+
image: ubuntu-2204:2023.10.1
3377+
resource_class: xlarge
3378+
working_directory: ~/project
3379+
steps:
3380+
- checkout
3381+
- setup_google_dns
3382+
- run:
3383+
name: Run UI unit tests (Vitest)
3384+
command: |
3385+
# Use Node 20 (several deps require >=20)
3386+
export NVM_DIR="/opt/circleci/.nvm"
3387+
source "$NVM_DIR/nvm.sh"
3388+
nvm install 20
3389+
nvm use 20
3390+
3391+
cd ui/litellm-dashboard
3392+
npm ci || npm install
3393+
3394+
# CI run, with both LCOV (Codecov) and HTML (artifact you can click)
3395+
CI=true npm run test -- --run --coverage \
3396+
--coverage.provider=v8 \
3397+
--coverage.reporter=lcov \
3398+
--coverage.reporter=html \
3399+
--coverage.reportsDirectory=coverage/html
3400+
3401+
e2e_ui_testing:
3402+
machine:
3403+
image: ubuntu-2204:2023.10.1
3404+
resource_class: xlarge
3405+
working_directory: ~/project
3406+
steps:
3407+
- checkout
3408+
- setup_google_dns
3409+
- attach_workspace:
3410+
at: ~/project
33693411
- run:
33703412
name: Upgrade Docker to v24.x (API 1.44+)
33713413
command: |
@@ -3411,24 +3453,6 @@ jobs:
34113453
name: Install Playwright Browsers
34123454
command: |
34133455
npx playwright install
3414-
- run:
3415-
name: Run UI unit tests (Vitest)
3416-
command: |
3417-
# Use Node 20 (several deps require >=20)
3418-
export NVM_DIR="/opt/circleci/.nvm"
3419-
source "$NVM_DIR/nvm.sh"
3420-
nvm install 20
3421-
nvm use 20
3422-
3423-
cd ui/litellm-dashboard
3424-
npm ci || npm install
3425-
3426-
# CI run, with both LCOV (Codecov) and HTML (artifact you can click)
3427-
CI=true npm run test -- --run --coverage \
3428-
--coverage.provider=v8 \
3429-
--coverage.reporter=lcov \
3430-
--coverage.reporter=html \
3431-
--coverage.reportsDirectory=coverage/html
34323456
34333457
- run:
34343458
name: Build Docker image
@@ -3633,13 +3657,29 @@ workflows:
36333657
only:
36343658
- main
36353659
- /litellm_.*/
3660+
- ui_build:
3661+
filters:
3662+
branches:
3663+
only:
3664+
- main
3665+
- /litellm_.*/
3666+
- ui_unit_tests:
3667+
requires:
3668+
- ui_build
3669+
filters:
3670+
branches:
3671+
only:
3672+
- main
3673+
- /litellm_.*/
36363674
- auth_ui_unit_tests:
36373675
filters:
36383676
branches:
36393677
only:
36403678
- main
36413679
- /litellm_.*/
36423680
- e2e_ui_testing:
3681+
requires:
3682+
- ui_build
36433683
filters:
36443684
branches:
36453685
only:

AGENTS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ LiteLLM supports MCP for agent workflows:
9494
- Support for external MCP servers (Zapier, Jira, Linear, etc.)
9595
- See `litellm/experimental_mcp_client/` and `litellm/proxy/_experimental/mcp_server/`
9696

97+
## RUNNING SCRIPTS
98+
99+
Use `poetry run python script.py` to run Python scripts in the project environment (for non-test files).
100+
97101
## TESTING CONSIDERATIONS
98102

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

CLAUDE.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
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+
2831
## Architecture Overview
2932

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

VERTEX_ENV_SETUP.md

Lines changed: 0 additions & 261 deletions
This file was deleted.

0 commit comments

Comments
 (0)