Commit graph

36461 commits

Author SHA1 Message Date
maberguiga
e2a4bef3a9
ci(security): add workflow to block .pth files in PRs
Add a security gate workflow that scans pull requests for malicious .pth file additions or renames. .pth files are a known Python security risk as they allow arbitrary code execution at interpreter startup. The workflow will fail the check if any .pth files are detected, prompting the author to rename legitimate fixtures to .pth.txt.

chore: remove malicious.pth file

The file was identified as potentially harmful and has been deleted to maintain repository security.

ci: update actions/github-script to pinned version v7.0.1

Update the GitHub Actions workflow to use a pinned version tag instead of a commit hash for the `actions/github-script` action. This improves maintainability and security by using an official, versioned release.

docs: add security gate check to PR templates and improve scan

Update CONTRIBUTING.md and pull request template to document the new Critical Entry Point Scan requirement. Enhance the security-gate workflow with a warning for large PRs exceeding GitHub API limits and add configuration notes for branch protection.
2026-03-31 12:43:20 +02:00
Krrish Dholakia
08be1e52ae
Merge pull request #24839 from BerriAI/litellm_new_ci_cd_improvements
docs: cleanup docs
2026-03-30 22:05:03 -07:00
ishaan-berri
f0518c1d98
Merge pull request #24840 from BerriAI/litellm_version_bump_1_83_0
[Infra] Bump Version to 1.83.0
2026-03-30 22:00:22 -07:00
Yuneng Jiang
51830de709
update poetry.lock for version bump
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 21:58:53 -07:00
Yuneng Jiang
6a23fab43c
bump version to 1.83.0, litellm-proxy-extras to 0.4.62
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 21:56:27 -07:00
Krrish Dholakia
ee4116a450 docs: cleanup docs 2026-03-30 21:55:03 -07:00
Ishaan Jaffer
0ea05469bc test_completion_azure 2026-03-30 21:54:27 -07:00
Ishaan Jaffer
be553c7204 fix aporia 2026-03-30 21:49:31 -07:00
ishaan-berri
77e6546e55
Merge pull request #24837 from BerriAI/lllm_build_and_test_fail
[Test] Move test_add_and_delete_model to Mock Test
2026-03-30 21:41:28 -07:00
Ishaan Jaffer
d259892f69 test fix 2026-03-30 21:39:24 -07:00
Yuneng Jiang
e014dfb8e0
fix: mock encrypt_value_helper in lifecycle test
CI fails because LITELLM_MASTER_KEY is not set, causing
encrypt_value_helper to error on NoneType.encode(). Patch it
to pass through values unencrypted in the test.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 21:36:40 -07:00
Ishaan Jaffer
823e7b2a9d test_completion_azure 2026-03-30 21:36:35 -07:00
Ishaan Jaffer
3034ac26f7 fix 2026-03-30 21:33:47 -07:00
Yuneng Jiang
b48c037712
test: replace test_add_and_delete_models integration test with mock
Skip the integration test that requires a live proxy and OPENAI_API_KEY
(removed from CI/CD). Add deterministic mock test covering the same
add → delete → double-delete-fails lifecycle.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 21:30:57 -07:00
Ishaan Jaffer
669d2a6d8b test_router_init_azure_service_principal_with_secret_with_environment_variables 2026-03-30 21:15:53 -07:00
Ishaan Jaffer
8c6a67dae1 test_bedrock_embedding_cohere 2026-03-30 21:08:51 -07:00
Ishaan Jaffer
a7bfe0c540 test_completion_azure 2026-03-30 21:07:49 -07:00
Ishaan Jaffer
9b46d88371 test_completion_azure 2026-03-30 21:07:41 -07:00
Krrish Dholakia
cbd6253f9c test: skip chromium/firefox check - TODO: move to a dynamic db 2026-03-30 20:55:27 -07:00
Krrish Dholakia
1746d392ea fix: fix linting errors 2026-03-30 20:51:35 -07:00
ishaan-berri
360c4f47a9
Merge pull request #24829 from BerriAI/litellm_pin_axios
[Security] - Pin `axios=1.13.6`
2026-03-30 20:28:22 -07:00
Ishaan Jaffer
f636c3b3b7 pin axios 2026-03-30 20:20:23 -07:00
Ishaan Jaffer
81028b9682 use mock tests for assembly AI 2026-03-30 19:59:32 -07:00
Krrish Dholakia
5c1f2e04b2
Merge pull request #24828 from BerriAI/claude/infallible-mahavira
bump: litellm-proxy-extras 0.4.61 → 0.4.62 for schema changes
2026-03-30 19:52:52 -07:00
ishaan-berri
ead71c90ae
Merge pull request #24826 from BerriAI/litellm_/dazzling-jackson
[Fix] Failure callbacks silently skipped when customLogger not initialized
2026-03-30 19:50:33 -07:00
Krrish Dholakia
4f42e783e7 bump: litellm-proxy-extras 0.4.61 → 0.4.62 for schema changes
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-30 19:49:32 -07:00
Ishaan Jaffer
f1e7aa9dbb db_migration_disable_update_check 2026-03-30 19:46:18 -07:00
Ishaan Jaffer
3fbe7d1059 prisma_schema_sync 2026-03-30 19:40:25 -07:00
Krrish Dholakia
35742bc3f0
Merge pull request #24827 from BerriAI/litellm_use_dynamic_db
test: use dynamic db
2026-03-30 19:39:48 -07:00
Krrish Dholakia
5d6c76aa1a
Merge pull request #24823 from jaydns/fixes
chore: fixes
2026-03-30 19:35:40 -07:00
Krrish Dholakia
37440c28b7 test: use dynamic db 2026-03-30 19:33:52 -07:00
Yuneng Jiang
3308fb92cd
Merge remote-tracking branch 'origin/main' into litellm_/dazzling-jackson 2026-03-30 19:28:28 -07:00
Ishaan Jaffer
632beb0db0 fix new_budget 2026-03-30 19:25:33 -07:00
Yuneng Jiang
86dd36e12a
[Fix] Initialize customLogger in failure handlers to ensure callbacks fire
The sync and async failure handlers guarded plain-function callbacks with
`customLogger is not None`, but customLogger was only initialized in the
success handler path. If a request failed without any prior success in the
process, the failure callback was silently skipped.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 19:18:30 -07:00
Krrish Dholakia
0cf4b05991 test: remove bad e2e tests - e2e failing due to low rate limits on ci/cd 2026-03-30 19:18:10 -07:00
Krrish Dholakia
c6f1f8b6b3 fix: move to new vertex credentials 2026-03-30 19:16:05 -07:00
jayden
9ca1560501
chore: fix test 2026-03-30 19:14:01 -07:00
Krrish Dholakia
40074fffe1
Merge pull request #24824 from BerriAI/litellm_fix_test_redis_and_azure_mock
[Fix] Use correct Redis env vars and fix Azure AD token test mocking
2026-03-30 19:12:45 -07:00
Ishaan Jaffer
7954d1a11f test_azure_ai_model_router_streaming_cost_with_stream_options 2026-03-30 19:12:01 -07:00
Krrish Dholakia
89091e4f29 test: fix assemblyai passthrough transcription request format
Switch the passthrough e2e helper to direct HTTP transcript create/poll/delete calls so the request includes required speech_models and remains compatible with current AssemblyAI API behavior.

Made-with: Cursor
2026-03-30 18:49:04 -07:00
Yuneng Jiang
e69dfbc07d
Merge main and resolve conflict in test_router_client_init.py
Keep both AZURE_AI_API_KEY (renamed on main) and AZURE_OPENAI_API_KEY
(added in this branch) env var cleanup.
2026-03-30 18:44:33 -07:00
Ishaan Jaffer
7e93256da4 test_bedrock_document_understanding 2026-03-30 18:39:20 -07:00
jayden
57c05459ae
chore: fixes 2026-03-30 18:36:58 -07:00
Yuneng Jiang
05ecfa3470
[Fix] Use correct Redis env vars and fix Azure AD token test mocking
- test_caching_router: Use REDIS_HOST/PORT/PASSWORD/SSL instead of
  non-existent REDIS_HOST_2 variants
- test_router_init_azure_service_principal: Use monkeypatch.setenv instead
  of patching the os module in only one file, so both common_utils._resolve_env_var
  and get_azure_ad_token_provider see the mocked credentials. Also clear
  AZURE_OPENAI_API_KEY to prevent it from short-circuiting the token provider path.
2026-03-30 18:32:04 -07:00
ishaan-berri
7cc997bd75
Merge pull request #24822 from BerriAI/litellm_/romantic-galileo
[Test] Move Snowflake Mocked Tests to Unit Test Directory
2026-03-30 18:25:03 -07:00
Ishaan Jaffer
0298c1f58d test_basic_s3_v2_logging 2026-03-30 18:17:52 -07:00
Krrish Dholakia
e17acd6b69 test: make tests smarter 2026-03-30 18:14:44 -07:00
Ishaan Jaffer
83dc158a2a test fix 2026-03-30 18:08:57 -07:00
Krrish Dholakia
74008e3220 test: cleanup test impacted by deployment name change 2026-03-30 18:07:50 -07:00
Yuneng Jiang
2b374a2abf
Merge main and resolve Snowflake test conflict
Main rewrote the same tests we moved. Resolution: keep the tests only
in the unit test directory, adopting main's improved patterns (AsyncMock,
assert_called_once, stronger content assertions on streaming).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 18:06:37 -07:00