Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
207 commits
Select commit Hold shift + click to select a range
a5dd01d
added bedrock guardrail API exception
kothamah Mar 19, 2026
ead822b
Added test cases for the null type handling
kothamah Mar 19, 2026
168b0a0
added changes based on the feedback
kothamah Apr 7, 2026
a02ec3b
fix(ui): delete policy attachments via controlled modal
Lucas-Song-Dev Apr 8, 2026
727a6f2
Update ui/litellm-dashboard/src/components/policies/index.tsx
Lucas-Song-Dev Apr 8, 2026
6621c40
feat(health-check): add BACKGROUND_HEALTH_CHECK_MAX_TOKENS env var
Sameerlite Mar 30, 2026
d8598ab
Fix code qa
Sameerlite Apr 8, 2026
b08e058
Fix greptile reviews
Sameerlite Apr 8, 2026
0ba8adf
fix(ui): use mutation for attachment delete
Lucas-Song-Dev Apr 9, 2026
e079ee7
fix: harden CORS, create_views exception handling, and spend log clea…
ATR-3 Apr 11, 2026
519095b
test: add structural proxy_server CORS invariant test (Greptile revie…
ATR-3 Apr 11, 2026
e01fe01
fix: address Greptile P1 review comments
ATR-3 Apr 11, 2026
f686d33
refactor: extract _get_cors_config() for testability, fix no-op CORS …
ATR-3 Apr 11, 2026
75438ac
docs: add LITELLM_CORS_ORIGINS and LITELLM_CORS_ALLOW_CREDENTIALS to …
ATR-3 Apr 11, 2026
5e830e0
docs(troubleshoot): add cost discrepancy debugging guide
Sameerlite Apr 13, 2026
639135e
Update docs/my-website/blog/debug_cost_discrepancy/index.md
Sameerlite Apr 13, 2026
8549774
fix(caching): add Responses API params to cache key allow-list
michelligabriele Apr 14, 2026
c7f7708
feat(anthropic): retry /v1/messages after invalid thinking signature
Sameerlite Apr 14, 2026
b0a40fd
Merge pull request #25559 from shreyescodes/fix/cors-and-db-safety-bugs
yuneng-berri Apr 14, 2026
0f453cc
Fic code qa
Sameerlite Apr 14, 2026
5670f6c
fix(anthropic): tighten thinking-signature retry (Greptile)
Sameerlite Apr 14, 2026
63281e8
fix(azure/passthrough): populate standard_logging_object via logging …
michelligabriele Apr 14, 2026
b9cd32b
fix(proxy): enforce team membership in team-scoped key management checks
milan-berri Apr 14, 2026
96ed00e
feat(mcp): gateway InitializeResult.instructions from upstream or YAML
milan-berri Apr 14, 2026
8c2ebee
refactor(mcp): reuse existing sessions for initialize instructions
milan-berri Apr 14, 2026
7e656f4
test: add unit tests for MCP initialize instructions feature
milan-berri Apr 14, 2026
e7c630e
refactor: inline get_upstream_initialize_instructions
milan-berri Apr 14, 2026
15ef3fa
Merge pull request #25679 from michelligabriele/fix/azure-passthrough…
Apr 14, 2026
d479234
Merge pull request #25694 from milan-berri/feat/mcp-initialize-instru…
Apr 14, 2026
f6058bd
Merge pull request #25673 from michelligabriele/fix/responses-api-cac…
Apr 14, 2026
53828dd
refactor: migrate policy attachment deletion to useMutation hook with…
Lucas-Song-Dev Apr 14, 2026
ef774a1
Merge remote-tracking branch 'origin/main' into fix-ui-policy-attachm…
Lucas-Song-Dev Apr 14, 2026
9810a1b
Merge pull request #25344 from BerriAI/litellm_Sameerlite/healthcheck…
Apr 14, 2026
977245c
fix(ui): rename test file to tsx and remove unused useMutation import
Lucas-Song-Dev Apr 14, 2026
9c86973
fix(ui): remove unused useMutation import and add React import to test
Lucas-Song-Dev Apr 14, 2026
693c846
Merge pull request #25674 from BerriAI/litellm_anthropic-messages-thi…
Apr 14, 2026
e20c114
fix(mcp): set instructions=None in SigV4BuildFromTable test mocks
ishaanj-berri Apr 14, 2026
8c50563
chore: sync uv.lock with pyproject.toml (v1.83.6 -> v1.83.7)
ishaanj-berri Apr 14, 2026
3f3760b
Merge pull request #25324 from Lucas-Song-Dev/fix-ui-policy-attachmen…
yuneng-berri Apr 14, 2026
25c444c
Merge pull request #25686 from milan-berri/fix/key-update-cross-team-…
yuneng-berri Apr 14, 2026
92a5ed4
fix(mcp): set instructions=None in test_add_update_server_fallback_to…
ishaanj-berri Apr 14, 2026
2b5eb79
fix(mcp): set instructions=None in test_add_update_server_with_alias …
ishaanj-berri Apr 14, 2026
6126b47
fix(mcp): set instructions=None in test_add_update_server_without_ali…
ishaanj-berri Apr 14, 2026
25f93be
security: prevent API key leaks in error tracebacks, logs, and alerts
stuxf Apr 3, 2026
74f55b0
fix: apply mask_sensitive_info to async streaming error body
stuxf Apr 3, 2026
b16d0b1
test: add coverage for credential leak prevention changes
stuxf Apr 4, 2026
abb8d8d
ci: trigger CI re-run for codecov
stuxf Apr 4, 2026
f521e27
test(gemini): align API key expectations
stuxf Apr 14, 2026
b1bc3c1
test(prompts): isolate in-memory version tests
stuxf Apr 14, 2026
2911d99
test(gemini): stub API key for format param tests
stuxf Apr 15, 2026
d20c70f
Optimize database query which fetches latest model_id, model_name pai…
harish876 Apr 15, 2026
d805fe7
test(bedrock): add unit tests for cache token billing with prompt cac…
ishaanj-berri Apr 14, 2026
c1dcfa7
feat(types): add cache_read_cost and cache_creation_cost fields to Co…
ishaanj-berri Apr 15, 2026
5c056ca
fix(anthropic): store raw text_tokens in PromptTokensDetailsWrapper b…
ishaanj-berri Apr 15, 2026
c84597e
fix(bedrock/converse): capture raw input_tokens as text_tokens before…
ishaanj-berri Apr 15, 2026
b5a4c26
feat(logging): pass cache_read_cost and cache_creation_cost through s…
ishaanj-berri Apr 15, 2026
781fc63
feat(cost-calculator): compute and store per-type cache costs in Cost…
ishaanj-berri Apr 15, 2026
6b1dc11
fix(ui/usage): subtract cache tokens from Input Tokens summary card t…
ishaanj-berri Apr 15, 2026
0148eff
feat(ui/cost-breakdown): show separate Input / Cache Read / Cache Wri…
ishaanj-berri Apr 15, 2026
e0a988e
feat(ui/log-details): pass rawInputTokens, cacheReadTokens, cacheCrea…
ishaanj-berri Apr 15, 2026
e20d9df
remove test file
ishaanj-berri Apr 15, 2026
84c507b
fix(mypy): use explicit None check for cache rate values to satisfy t…
ishaanj-berri Apr 15, 2026
b3c413a
add a composite index on the model_name, model_id and checked_at key …
harish876 Apr 15, 2026
4a73e94
Merge pull request #25747 from BerriAI/main
shin-berri Apr 15, 2026
6426bc4
Merge remote-tracking branch 'origin/litellm_internal_staging' into l…
yuneng-berri Apr 15, 2026
277be4c
Add input + output tokens for anthropic message type
Sameerlite Apr 15, 2026
3fdd67f
Delete docs/my-website/blog/debug_cost_discrepancy/index.md
Sameerlite Apr 15, 2026
f27bf8e
fix(ui): pre-select backend default for boolean guardrail provider fi…
ryan-crabbe-berri Apr 14, 2026
27484c4
fix: isolate logs team filter dropdown from root teams state bleed
ryan-crabbe-berri Apr 14, 2026
a23408d
test(ui): add getCookie to cookieUtils mock in user_dashboard test
ryan-crabbe-berri Apr 14, 2026
719f4ca
[Docs] Add release notes for v1.83.3-stable and v1.83.7.rc.1
yuneng-berri Apr 14, 2026
d92e65c
[Fix] Correct pip install versions for v1.83.3-stable and v1.83.7.rc.…
yuneng-berri Apr 14, 2026
c94f5d5
[Docs] Add missed content PRs to v1.83.7.rc.1 and update runbook
yuneng-berri Apr 14, 2026
8837138
[Docs] Use GitHub avatar for Ryan Crabbe in release notes
ryan-crabbe-berri Apr 14, 2026
3b8f651
fix: default invite user modal global role to least-privilege
ryan-crabbe-berri Apr 14, 2026
81e3849
[Docs] Regenerate v1.83.3-stable release notes from v1.82.3-stable ba…
yuneng-berri Apr 15, 2026
dbe7008
Remove Chat UI link from Swagger docs message
yuneng-berri Apr 15, 2026
641a377
[Fix] Test - Together AI: replace deprecated Mixtral with serverless …
yuneng-berri Apr 15, 2026
2933b21
fallbacks image
shivamrawat1 Apr 15, 2026
19070d3
update
shivamrawat1 Apr 15, 2026
be9053d
[Test] mark bedrock gpt-oss function-calling stream test flaky
yuneng-berri Apr 15, 2026
c8a94ff
[Test] stub flaky bedrock gpt-oss function-calling stream test
yuneng-berri Apr 15, 2026
1e50925
[Test] add request-body mock test for bedrock gpt-oss tool schema
yuneng-berri Apr 15, 2026
5af74b6
docs update
shivamrawat1 Apr 15, 2026
213b1ea
fix: remove non-existent litellm_mcps_tests_coverage from coverage co…
joereyna Apr 15, 2026
571faae
fix(ci): increase test-server-root-path timeout to 30m
joereyna Apr 15, 2026
557accb
bump: version 1.83.7 → 1.83.8
yuneng-berri Apr 15, 2026
a305eb8
[Infra] Guard main branch with PR source-branch check
yuneng-berri Apr 15, 2026
d9b89bc
Also reject PRs from forks, not just non-allowlisted branches
yuneng-berri Apr 15, 2026
ff5bd43
Point contributors toward litellm_oss_branch in guard error messages
yuneng-berri Apr 15, 2026
922c617
Merge remote-tracking branch 'origin/litellm_internal_staging' into l…
yuneng-berri Apr 15, 2026
b599c8b
refactor(ui): reduce Tremor usage in Guardrails Monitor layout
ryan-crabbe-berri Apr 15, 2026
645e0a7
Merge pull request #25735 from BerriAI/litellm_bedrock_cache_cost_bre…
Apr 15, 2026
31fd681
build(ui): rebuild dashboard for cache token cost breakdown changes
ishaanj-berri Apr 15, 2026
fb245b7
Merge pull request #25801 from BerriAI/litellm_rebuild_ui_cache_break…
Apr 15, 2026
fbd15a0
fix(types): add missing x_ratelimit_reset_* fields to StandardLogging…
ishaanj-berri Apr 15, 2026
5270830
fix(logging): preserve all provider response headers in StandardLoggi…
ishaanj-berri Apr 15, 2026
cc6a33c
test(logging): add tests for get_additional_headers header preservation
ishaanj-berri Apr 15, 2026
48aa776
refactor(ui): use antd grid for guardrails monitor metrics
ryan-crabbe-berri Apr 15, 2026
f04a5e7
fix(ui): render guardrail optional_params bool defaults in Select
ryan-crabbe-berri Apr 15, 2026
98c2d90
fix(logging): update test_get_additional_headers to reflect provider …
ishaanj-berri Apr 15, 2026
f9bffbb
Merge pull request #25803 from BerriAI/litellm_guardrails-monitor-ant…
ryan-crabbe-berri Apr 15, 2026
35559c4
fix(ui): use antd Select for MCP ToolTestPanel bool inputs
ryan-crabbe-berri Apr 15, 2026
aaf169c
resolve merge conflicts: keep null-safety tests + add L3 regression t…
ishaanj-berri Apr 15, 2026
c8496a2
fix(ui): invalidate organization queries after team mutations
ryan-crabbe-berri Apr 15, 2026
6e9cbba
refactor(ui): migrate organization view to useOrganization hook
ryan-crabbe-berri Apr 15, 2026
18afe6a
test(ui): update organization_view tests for useOrganization hook
ryan-crabbe-berri Apr 15, 2026
d8ceeb8
Merge pull request #25810 from BerriAI/litellm_bedrock_api_response_n…
Apr 15, 2026
de7aad9
[Feature] UI - Deleted Keys/Teams: Add Enterprise notice banner
yuneng-berri Apr 15, 2026
0a1b442
fix(guardrails): replace custom_code sandbox with RestrictedPython
jaydns Apr 15, 2026
fc9852c
fix(guardrails): move test_custom_code_security.py to correct location
jaydns Apr 15, 2026
aff4717
[Infra] Expand CI branch filters for non-main PR targets
yuneng-berri Apr 15, 2026
469045b
fix(guardrails): provide _inplacevar_ to sandbox
jaydns Apr 15, 2026
bf1c528
Merge pull request #25819 from BerriAI/litellm_expandCiBranchFilters
yuneng-berri Apr 15, 2026
5f99e52
Added concurrent index creation. Added necessary disclaimers to index…
harish876 Apr 15, 2026
dabf8ea
Merge remote-tracking branch 'origin/litellm_internal_staging' into l…
yuneng-berri Apr 15, 2026
42ab3f9
Merge remote-tracking branch 'origin/litellm_internal_staging' into l…
yuneng-berri Apr 15, 2026
814fa20
Merge pull request #25814 from BerriAI/litellm_/elastic-zhukovsky
yuneng-berri Apr 15, 2026
55f2a89
[Infra] Remove unused publish_proxy_extras and prisma_schema_sync jobs
yuneng-berri Apr 15, 2026
3f3bfdb
Merge pull request #25117 from stuxf/fix/credential-leak-prevention
yuneng-berri Apr 15, 2026
93faf32
Merge pull request #25818 from jaydns/fix/custom-code-guardrail-restr…
yuneng-berri Apr 15, 2026
2f72eb6
Merge pull request #25821 from BerriAI/litellm_/funny-meninsky
yuneng-berri Apr 15, 2026
3914226
Merge pull request #25796 from BerriAI/litellm_yj_apr14
yuneng-berri Apr 16, 2026
f92490c
fix: make PodLockManager.release_lock atomic compare-and-delete (re-l…
joereyna Apr 16, 2026
cb8fc48
Merge pull request #25732 from harish876/health-check-oom
Apr 16, 2026
9114b0d
fix(ci): sync uv.lock with pyproject.toml
ishaanj-berri Apr 16, 2026
c3dbd78
style: black format llm_http_handler.py
ishaanj-berri Apr 16, 2026
563e05e
style: black format _types.py
ishaanj-berri Apr 16, 2026
d8dbb46
style: black format mcp_server_manager.py
ishaanj-berri Apr 16, 2026
65061b1
style: black format mcp server.py
ishaanj-berri Apr 16, 2026
0acd052
style: black format health_check.py
ishaanj-berri Apr 16, 2026
e5adafc
style: black format anthropic_messages transformation.py
ishaanj-berri Apr 16, 2026
107003a
style: black format model_param_helper.py
ishaanj-berri Apr 16, 2026
13952b0
style: black format types/mcp_server/mcp_server_manager.py
ishaanj-berri Apr 16, 2026
3847a59
style: black format test_model_param_helper.py
ishaanj-berri Apr 16, 2026
f2a1dbe
style: black format test_health_check_max_tokens.py
ishaanj-berri Apr 16, 2026
93a90a5
style: black format test_mcp_client.py
ishaanj-berri Apr 16, 2026
c8a0fe1
style: black format test_unit_test_caching.py
ishaanj-berri Apr 16, 2026
9a154a3
style: black format test_mcp_sigv4_auth.py
ishaanj-berri Apr 16, 2026
f768946
style: black format test_anthropic_common_utils.py
ishaanj-berri Apr 16, 2026
fcd71e0
style: black format test_mcp_server_manager.py
ishaanj-berri Apr 16, 2026
537e72c
style: black format test_mcp_server.py
ishaanj-berri Apr 16, 2026
7a6b7ad
Merge pull request #25807 from BerriAI/litellm_fix_provider_headers_i…
Apr 16, 2026
1013137
Merge pull request #25813 from BerriAI/litellm_ishaan_april15
Apr 16, 2026
9977e63
Merge remote-tracking branch 'origin/main' into worktree-foamy-jumpin…
ishaanj-berri Apr 16, 2026
47214be
fix(proxy): harden request parameter handling
stuxf Apr 16, 2026
a588f76
Litellm ishaan april15 2 (#25828)
Apr 16, 2026
ae2aba0
Merge pull request #25622 from Sameerlite/litellm_docs_cost_discrepan…
Apr 16, 2026
2613670
chore: trigger CI re-evaluation
ishaanj-berri Apr 16, 2026
def9c4e
chore: merge litellm_internal_staging, resolve uv.lock conflict
ishaanj-berri Apr 16, 2026
0b73352
Merge pull request #25699 from BerriAI/litellm_ishaan_april14
Apr 16, 2026
9691649
fix(proxy): add shared path utilities, prevent directory traversal
stuxf Apr 16, 2026
278e3f4
refactor: harden path utils, move imports to module level
stuxf Apr 16, 2026
c2b3b62
test: add unit tests for path_utils safe_join and safe_filename
stuxf Apr 16, 2026
a44c4d0
style: fix import ordering in prompt_endpoints
stuxf Apr 16, 2026
a4faace
style: move import os to module level, fix import ordering
stuxf Apr 16, 2026
0c8b83c
Merge pull request #25827 from stuxf/fix/outbound-host-validation
yuneng-berri Apr 16, 2026
be1b802
Merge pull request #25834 from stuxf/fix/path-traversal-guardrail-yaml
yuneng-berri Apr 16, 2026
fdeeed6
fix(ci): resolve mypy and ruff lint failures
yuneng-berri Apr 16, 2026
070374d
fix(ci): authorize RestrictedPython in liccheck.ini
yuneng-berri Apr 16, 2026
f639769
fix(proxy): use flat soft_budget field for virtual key projected-spen…
ryan-crabbe-berri Apr 16, 2026
c8cfc5d
fix(httpx): set response.request and strip content-encoding in Masked…
yuneng-berri Apr 16, 2026
2dd060b
Merge pull request #25838 from BerriAI/litellm_fix-virtual-key-projec…
ryan-crabbe-berri Apr 16, 2026
bbf204e
Merge remote-tracking branch 'origin/litellm_internal_staging' into l…
ryan-crabbe-berri Apr 16, 2026
83095c2
Merge remote-tracking branch 'origin/litellm_internal_staging' into l…
ryan-crabbe-berri Apr 16, 2026
96415a5
Merge remote-tracking branch 'origin/litellm_internal_staging' into l…
ryan-crabbe-berri Apr 16, 2026
cf4f051
Merge pull request #25806 from BerriAI/litellm_fix_guardrail_optional…
ryan-crabbe-berri Apr 16, 2026
18c93e0
Merge pull request #25809 from BerriAI/litellm_fix_tool_test_panel_bo…
ryan-crabbe-berri Apr 16, 2026
ed0138b
Merge pull request #25812 from BerriAI/litellm_fix-invalidate-orgs-on…
ryan-crabbe-berri Apr 16, 2026
6b2973b
fix(vertex): strip version suffix from model name in count_tokens req…
dkindlund Apr 16, 2026
3cbb36a
fix(ollama): propagate done_reason='length' as finish_reason for max_…
jarsever Apr 16, 2026
265a960
fix(noma-v2): fall back to key_alias for application_id in Noma dashb…
bse-ai Apr 16, 2026
dd4a419
fix(utils): allowed_openai_params must not forward unset params as No…
xr843 Apr 16, 2026
d9a8a8a
fix(credentials): sync in-memory credential_list after update (#25758)
kuun993 Apr 16, 2026
baf19b4
Fix import error
Sameerlite Apr 16, 2026
4b5c86b
Fix code qa
Sameerlite Apr 16, 2026
26937a2
Merge pull request #25831 from BerriAI/litellm_oss_staging_04_15_2026_p1
Sameerlite Apr 16, 2026
0868a82
Add support for opus 4.7 with new effort levels
Sameerlite Apr 16, 2026
fb33daa
opus 4.7 doesn't support tool search
Sameerlite Apr 16, 2026
607412d
feat(bedrock): inject thinking for clear_thinking context_management …
Sameerlite Apr 16, 2026
a9ff4c6
Fix add leagcy support for claude code
Sameerlite Apr 16, 2026
b3d5ff5
Fix tests + add docs
Sameerlite Apr 16, 2026
dafa1bf
Merge remote-tracking branch 'origin/litellm_internal_staging' into l…
yuneng-berri Apr 16, 2026
f94c8dd
Fix model names
Sameerlite Apr 16, 2026
07d863b
Remove max support for opus 4.7
Sameerlite Apr 16, 2026
c294bbe
fix(deps): pin langgraph-prebuilt==1.0.8 to avoid broken 1.0.9
yuneng-berri Apr 16, 2026
b26f858
fix(ci): authorize langgraph-prebuilt in liccheck.ini
yuneng-berri Apr 16, 2026
44c9924
Merge pull request #25867 from BerriAI/litellm_day_0_opus_4.7_support
Apr 16, 2026
b80bd9d
bump: version 1.83.8 → 1.83.9
yuneng-berri Apr 16, 2026
0736851
bump: version 0.4.65 → 0.4.66
yuneng-berri Apr 16, 2026
13522ff
Fix version in docs
Sameerlite Apr 16, 2026
21c0718
Merge pull request #25871 from BerriAI/litellm_yj_apr15
yuneng-berri Apr 16, 2026
c6c970c
Merge pull request #25875 from BerriAI/litellm_docs_opus_4.7
Sameerlite Apr 16, 2026
72ba880
[Infra] Bump llm_translation_testing resource class to xlarge
yuneng-berri Apr 16, 2026
65717ad
Merge pull request #25887 from BerriAI/litellm_/vigilant-cannon
shin-berri Apr 16, 2026
ebac729
[Infra] CI: reduce llm_translation_testing parallelism and tolerate w…
yuneng-berri Apr 16, 2026
7279dca
Merge pull request #25898 from BerriAI/litellm_llmTranslationOomMitig…
shin-berri Apr 16, 2026
72ff989
[Test] Remove dead Bedrock clear_thinking interleaved-thinking-beta a…
yuneng-berri Apr 16, 2026
13108f3
Add docs announcement bar for Trivy compromise resolution (#25870)
krrish-berri-2 Apr 16, 2026
66f0d14
Merge pull request #25913 from BerriAI/litellm_dropDeadBedrockThinkin…
yuneng-berri Apr 16, 2026
35a186a
[Test] Mock live Bedrock Moonshot tests in llm_translation
yuneng-berri Apr 16, 2026
e1da27d
Merge remote-tracking branch 'origin/litellm_internal_staging' into l…
yuneng-berri Apr 16, 2026
95e1bab
[Fix] TogetherAIConfig.get_supported_openai_params recursion
yuneng-berri Apr 17, 2026
00bac08
[Test] Mock remaining live Bedrock Moonshot tests
yuneng-berri Apr 17, 2026
724926f
Merge pull request #25920 from BerriAI/litellm_/amazing-almeida
yuneng-berri Apr 17, 2026
f07aadc
Merge pull request #25873 from BerriAI/yj_extras_bump_apr16
yuneng-berri Apr 17, 2026
bf7b7f7
Merge pull request #25872 from BerriAI/yj_bump_apr16_2
yuneng-berri Apr 17, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
156 changes: 2 additions & 154 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ jobs:
username: ${DOCKERHUB_USERNAME}
password: ${DOCKERHUB_PASSWORD}
working_directory: ~/project
resource_class: large
resource_class: xlarge

steps:
- checkout
Expand Down Expand Up @@ -682,7 +682,7 @@ jobs:
for dir in "${IGNORE_DIRS[@]}"; do
IGNORE_ARGS="$IGNORE_ARGS --ignore=$dir"
done
uv run --no-sync python -m pytest -v tests/llm_translation $IGNORE_ARGS --junitxml=test-results/junit.xml --durations=20 -n 8 --timeout=120 --timeout_method=thread --retries 2 --retry-delay 5
uv run --no-sync python -m pytest -v tests/llm_translation $IGNORE_ARGS --junitxml=test-results/junit.xml --durations=20 -n 4 --timeout=120 --timeout_method=thread --retries 2 --retry-delay 5 --max-worker-restart=5
no_output_timeout: 15m

# Store test results
Expand Down Expand Up @@ -2916,90 +2916,6 @@ jobs:
- codecov/upload:
file: ./coverage.xml

publish_proxy_extras:
docker:
- image: cimg/python:3.12
working_directory: ~/project/litellm-proxy-extras
environment:
TWINE_USERNAME: __token__

steps:
- checkout:
path: ~/project

- run:
name: Check if litellm-proxy-extras dir or pyproject.toml was modified
command: |
curl -LsSf -o /tmp/uv-install.sh https://astral.sh/uv/0.10.9/install.sh
echo "7fc46e39cb97290b57169c0c813a17970585ac519139f19006453c99b5f2f45f /tmp/uv-install.sh" | sha256sum -c -
env UV_NO_MODIFY_PATH=1 sh /tmp/uv-install.sh
rm -f /tmp/uv-install.sh
echo 'export PATH="$HOME/.local/bin:$PATH"' >> "$BASH_ENV"
echo 'export PATH="$HOME/.local/bin:$PATH"' >> "$BASH_ENV"
export PATH="$HOME/.local/bin:$PATH"
# Get current version from pyproject.toml
CURRENT_VERSION=$(python -c 'import tomllib; from pathlib import Path; data = tomllib.loads(Path("pyproject.toml").read_text()); print(data["project"]["version"])')

# Get last published version from PyPI
LAST_VERSION=$(curl -s https://pypi.org/pypi/litellm-proxy-extras/json | python -c "import json, sys; print(json.load(sys.stdin)['info']['version'])")

echo "Current version: $CURRENT_VERSION"
echo "Last published version: $LAST_VERSION"

# Compare versions using Python's packaging.version
VERSION_COMPARE=$(uv run --with 'packaging==25.0' python -c "from packaging import version; print(1 if version.parse('$CURRENT_VERSION') < version.parse('$LAST_VERSION') else 0)")

echo "Version compare: $VERSION_COMPARE"
if [ "$VERSION_COMPARE" = "1" ]; then
echo "Error: Current version ($CURRENT_VERSION) is less than last published version ($LAST_VERSION)"
exit 1
fi

# If versions are equal or current is greater, compare against the published package contents.
EXTRACTED_DIR=$(uv run --with "litellm-proxy-extras==$LAST_VERSION" python -c 'import importlib.util; from pathlib import Path; spec = importlib.util.find_spec("litellm_proxy_extras"); assert spec is not None and spec.origin is not None, "litellm_proxy_extras not found in uv-run environment"; print(Path(spec.origin).resolve().parent)')

# Compare contents
if ! diff -r "$EXTRACTED_DIR" ./litellm_proxy_extras; then
if [ "$CURRENT_VERSION" = "$LAST_VERSION" ]; then
echo "Error: Changes detected in litellm-proxy-extras but version was not bumped"
echo "Current version: $CURRENT_VERSION"
echo "Last published version: $LAST_VERSION"
echo "Changes:"
diff -r "$EXTRACTED_DIR" ./litellm_proxy_extras
exit 1
fi
else
echo "No changes detected in litellm-proxy-extras. Skipping PyPI publish."
circleci step halt
fi

- run:
name: Get new version
command: |
NEW_VERSION=$(python -c 'import tomllib; from pathlib import Path; data = tomllib.loads(Path("pyproject.toml").read_text()); print(data["project"]["version"])')
echo "export NEW_VERSION=$NEW_VERSION" >> $BASH_ENV

- run:
name: Check if versions match
command: |
cd ~/project
# Check pyproject.toml
CURRENT_VERSION=$(uv run --with 'packaging==25.0' python -c 'import tomllib; from packaging.requirements import Requirement; from pathlib import Path; data = tomllib.loads(Path("pyproject.toml").read_text()); matches = [spec.version for requirement in data["project"]["optional-dependencies"]["proxy"] for parsed in [Requirement(requirement)] if parsed.name == "litellm-proxy-extras" and parsed.specifier for spec in parsed.specifier if spec.operator == "=="]; print(matches[0] if matches else (_ for _ in ()).throw(SystemExit("Could not find exact litellm-proxy-extras pin in project.optional-dependencies.proxy")))')
if [ "$CURRENT_VERSION" != "$NEW_VERSION" ]; then
echo "Error: Version in pyproject.toml ($CURRENT_VERSION) doesn't match new version ($NEW_VERSION)"
exit 1
fi

- run:
name: Publish to PyPI
command: |
echo -e "[pypi]\nusername = $PYPI_PUBLISH_USERNAME\npassword = $PYPI_PUBLISH_PASSWORD" > ~/.pypirc
echo 'export PATH="$HOME/.local/bin:$PATH"' >> "$BASH_ENV"
export PATH="$HOME/.local/bin:$PATH"
rm -rf build dist
uv build
uv tool run --from 'twine==6.2.0' twine upload --verbose dist/*

ui_build:
docker:
- image: cimg/node:20.19
Expand Down Expand Up @@ -3214,60 +3130,6 @@ jobs:
- litellm-docker-database.tar.zst


prisma_schema_sync:
machine:
image: ubuntu-2204:2023.10.1
resource_class: medium
working_directory: ~/project
steps:
- checkout
- setup_google_dns
- attach_workspace:
at: ~/project
- run:
name: Start PostgreSQL Database
command: |
docker run -d \
--name postgres-db \
-e POSTGRES_USER=postgres \
-e POSTGRES_PASSWORD=postgres \
-e POSTGRES_DB=litellm_schema_sync \
-p 5432:5432 \
postgres:14
- wait_for_service:
url: tcp://localhost:5432
timeout: "60"
- run:
name: Load Docker Database Image
command: |
zstd -d litellm-docker-database.tar.zst --stdout | docker load
docker images | grep litellm-docker-database
- run:
name: Run schema sync via prisma db push
command: |
docker run -d \
-p 4000:4000 \
-e DATABASE_URL="postgresql://postgres:postgres@host.docker.internal:5432/litellm_schema_sync" \
-e LITELLM_MASTER_KEY="sk-1234" \
--name schema-sync \
--add-host=host.docker.internal:host-gateway \
-v $(pwd)/litellm/proxy/example_config_yaml/simple_config.yaml:/app/config.yaml \
litellm-docker-database:ci \
--config /app/config.yaml \
--port 4000 \
--use_prisma_db_push
- run:
name: Start outputting logs
command: docker logs -f schema-sync
background: true
- wait_for_service:
url: http://localhost:4000
timeout: "300"
- run:
name: Stop schema sync container
command: docker stop schema-sync


test_bad_database_url:
machine:
image: ubuntu-2204:2023.10.1
Expand Down Expand Up @@ -3421,14 +3283,6 @@ workflows:
only:
- main
- /litellm_.*/
- prisma_schema_sync:
requires:
- build_docker_database_image
filters:
branches:
only:
- main
- /litellm_.*/
- e2e_ui_testing:
filters:
branches:
Expand Down Expand Up @@ -3688,9 +3542,3 @@ workflows:
only:
- main
- /litellm_.*/
- publish_proxy_extras:
filters:
branches:
only:
- main
- /litellm_release_day_.*/
6 changes: 5 additions & 1 deletion .github/workflows/test-linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ name: LiteLLM Linting

on:
pull_request:
branches: [main]
branches:
- main
- litellm_internal_staging
- litellm_oss_branch
- "litellm_**"

permissions:
contents: read
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/test-litellm-ui-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ permissions:

on:
pull_request:
branches: [main]
branches:
- main
- litellm_internal_staging
- litellm_oss_branch
- "litellm_**"

jobs:
build-ui:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/test-mcp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ name: LiteLLM MCP Tests (folder - tests/mcp_tests)

on:
pull_request:
branches: [main]
branches:
- main
- litellm_internal_staging
- litellm_oss_branch
- "litellm_**"

permissions:
contents: read
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/test-model-map.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ name: Validate model_prices_and_context_window.json

on:
pull_request:
branches: [main]
branches:
- main
- litellm_internal_staging
- litellm_oss_branch
- "litellm_**"

permissions:
contents: read
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/test-unit-core-utils.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ name: "Unit Tests: Core Utilities"

on:
pull_request:
branches: [main]
branches:
- main
- litellm_internal_staging
- litellm_oss_branch
- "litellm_**"

permissions:
contents: read
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/test-unit-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ name: "Unit Tests: Documentation Validation"

on:
pull_request:
branches: [main]
branches:
- main
- litellm_internal_staging
- litellm_oss_branch
- "litellm_**"

permissions:
contents: read
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/test-unit-enterprise-routing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ name: "Unit Tests: Enterprise, Google GenAI & Routing"

on:
pull_request:
branches: [main]
branches:
- main
- litellm_internal_staging
- litellm_oss_branch
- "litellm_**"

permissions:
contents: read
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/test-unit-integrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ name: "Unit Tests: Integrations (Callbacks & Logging)"

on:
pull_request:
branches: [main]
branches:
- main
- litellm_internal_staging
- litellm_oss_branch
- "litellm_**"

permissions:
contents: read
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/test-unit-llm-providers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ name: "Unit Tests: LLM Provider Transformations"

on:
pull_request:
branches: [main]
branches:
- main
- litellm_internal_staging
- litellm_oss_branch
- "litellm_**"

permissions:
contents: read
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/test-unit-misc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ name: "Unit Tests: MCP, Secrets, Containers & Misc"

on:
pull_request:
branches: [main]
branches:
- main
- litellm_internal_staging
- litellm_oss_branch
- "litellm_**"

permissions:
contents: read
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/test-unit-proxy-auth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ name: "Unit Tests: Proxy Auth & Key Management"

on:
pull_request:
branches: [main]
branches:
- main
- litellm_internal_staging
- litellm_oss_branch
- "litellm_**"

permissions:
contents: read
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-unit-proxy-db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: "Unit Tests: Proxy DB Operations"
# Uses DATABASE_URL secret — only runs on trusted branches, not PRs.
on:
push:
branches: [main, "litellm_*"]
branches: [main, "litellm_**"]

permissions:
contents: read
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/test-unit-proxy-endpoints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ name: "Unit Tests: Proxy API Endpoints"

on:
pull_request:
branches: [main]
branches:
- main
- litellm_internal_staging
- litellm_oss_branch
- "litellm_**"

permissions:
contents: read
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/test-unit-proxy-infra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ name: "Unit Tests: Proxy Infrastructure"

on:
pull_request:
branches: [main]
branches:
- main
- litellm_internal_staging
- litellm_oss_branch
- "litellm_**"

permissions:
contents: read
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/test-unit-proxy-legacy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ name: "Unit Tests: Proxy Legacy Tests"

on:
pull_request:
branches: [main]
branches:
- main
- litellm_internal_staging
- litellm_oss_branch
- "litellm_**"

permissions:
contents: read
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/test-unit-responses-caching-types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ name: "Unit Tests: Responses, Caching & Types"

on:
pull_request:
branches: [main]
branches:
- main
- litellm_internal_staging
- litellm_oss_branch
- "litellm_**"

permissions:
contents: read
Expand Down
Loading
Loading