Commit Graph

36388 Commits

Author SHA1 Message Date
Krrish Dholakia
c7e2bfc577 fix: cleanup tests 2026-03-30 16:24:35 -07:00
Krrish Dholakia
7b532fda66 test: cleanup tests 2026-03-30 16:20:01 -07:00
Ishaan Jaffer
899b5710d1 TestAzureAIFlux2ImageEdit 2026-03-30 16:15:03 -07:00
Krrish Dholakia
4c00a14ce0 fix: fix ci/cd + handle oidc jwt tokens 2026-03-30 16:12:58 -07:00
Ishaan Jaffer
e8c860d450 test fix 2026-03-30 16:05:03 -07:00
Ishaan Jaffer
bae3dcde13 test_get_credentials_from_env 2026-03-30 16:02:14 -07:00
Ishaan Jaffer
431782c3fe test azure blob storage 2026-03-30 15:54:07 -07:00
yuneng-jiang
c569d1f867
Merge pull request #24820 from BerriAI/litellm_fix_test_kwarg_name
[Fix] Correct kwarg name in test_user_api_key_auth tests
2026-03-30 15:37:27 -07:00
Ishaan Jaffer
dd75434bbe remove - outdated test 2026-03-30 15:29:57 -07:00
Ishaan Jaffer
87debe6254 test_litellm_overhead_non_streaming 2026-03-30 15:20:53 -07:00
Yuneng Jiang
6522d282b5
[Fix] Correct kwarg name in test_user_api_key_auth tests
PR #24755 renamed `azure_api_key_header` to `AZURE_AI_API_KEY_header` in
the test file but did not update the actual function signatures of
`get_api_key()` and `_user_api_key_auth_builder()`, causing TypeError
on all affected test cases.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 14:51:09 -07:00
yuneng-jiang
f2deefe453
Merge pull request #24814 from BerriAI/litellm_/agitated-montalcini
[Fix] WatsonX Tests Failing on CI Due to Missing Env Vars
2026-03-30 14:35:51 -07:00
yuneng-jiang
4332a0bf0a
Merge pull request #24812 from BerriAI/litellm_/objective-mendel
[Fix] Router code coverage CI failure for health check filter tests
2026-03-30 14:11:53 -07:00
yuneng-jiang
bcfa5355ac
Merge pull request #24817 from BerriAI/litellm_/strange-jackson
[Fix] Update gemini-2.0-flash to gemini-2.5-flash in test_gemini
2026-03-30 14:05:23 -07:00
Yuneng Jiang
b39748daf2
[Fix] Update gemini-2.0-flash to gemini-2.5-flash in test_gemini integration tests
gemini-2.0-flash is no longer available to new users, causing 404 errors
in llm_translation_testing tests.
2026-03-30 13:53:38 -07:00
Yuneng Jiang
123052ecf8
[Fix] WatsonX tests failing on CI due to missing env vars
Tests are fully mocked but require WATSONX_URL and WATSONX_PROJECT_ID
to pass provider validation before reaching the mocked HTTP client.
Add an autouse fixture with dummy values and clear WATSONX_ZENAPIKEY/
WATSONX_TOKEN to prevent env leakage from dotenv.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 13:27:03 -07:00
Yuneng Jiang
4f03273285
Merge remote-tracking branch 'origin/main' into litellm_/objective-mendel 2026-03-30 13:16:15 -07:00
Yuneng Jiang
fc32f91ffd
[Fix] Rename test file so router code coverage check detects it
The router_code_coverage.py script only scans test files with "router" in the filename.
test_health_check_routing.py was invisible to this check, causing _async_filter_health_check_unhealthy_deployments
and _filter_health_check_unhealthy_deployments to appear untested.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 13:13:41 -07:00
yuneng-jiang
1757e1dc4a
Merge pull request #24803 from BerriAI/litellm_/affectionate-gauss
[Fix] Mypy Type Errors in Responses Transformation, Spend Tracking, and PagerDuty
2026-03-30 13:01:02 -07:00
yuneng-jiang
5cec43cbb6
Merge pull request #24802 from BerriAI/litellm_/modest-easley
[Refactor] Extract helper methods in guardrail handlers to fix PLR0915
2026-03-30 11:42:12 -07:00
yuneng-jiang
0ccaff8ed9
Merge pull request #24805 from BerriAI/litellm_/compassionate-kirch
[Test] Mock DeepInfra completion tests to avoid real API calls
2026-03-30 11:42:00 -07:00
Yuneng Jiang
310d61ba70
[Fix] Replace cast with proper typing for reasoning_items
Add reasoning_items field to ChatCompletionAssistantMessage TypedDict
and extract a typed _get_reasoning_items helper instead of using cast.
Also widen _reasoning_item_to_response_input to accept ChatCompletionReasoningItem.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 11:33:26 -07:00
Yuneng Jiang
868468db14
[Test] Mock DeepInfra completion tests to avoid real API calls
The DeepInfra tests were making real API calls and failing with AuthenticationError.
Mock the HTTP layer to verify request shape instead.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 11:07:34 -07:00
Yuneng Jiang
0f785f988b
[Fix] Add missing user_api_key_project_alias to failed-response PagerDuty event
The hanging-response constructor was fixed but the sibling failed-response
constructor at line 104 was still missing this field.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 11:07:04 -07:00
Yuneng Jiang
f08d281641
[Fix] Resolve mypy type errors across 3 files
Add missing `user_api_key_project_alias` key to SpendLogsMetadata and
PagerDutyInternalEvent constructors, and cast `reasoning_items` to list
for safe iteration in responses transformation.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 10:56:54 -07:00
Yuneng Jiang
92e7aaa001
[Refactor] Extract helper methods in guardrail handlers to fix PLR0915
Ruff flagged `process_output_streaming_response` (A2A) and
`process_output_response` (Anthropic) for exceeding 50 statements.
Extract inline logic into private helpers to bring both under the limit.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 10:41:45 -07:00
Krrish Dholakia
a278933f18 docs: cleanup 2026-03-30 09:41:09 -07:00
Krrish Dholakia
c154d5668b
Merge pull request #24792 from BerriAI/ossf-scorecord
adopt OpenSSF Scorecard (https://scorecard.dev/)
2026-03-30 09:37:34 -07:00
Krrish Dholakia
1eaf8ed2d5
Merge pull request #24800 from BerriAI/litellm_vanta_announcement
Litellm vanta announcement
2026-03-30 09:27:55 -07:00
Krrish Dholakia
0128925281 docs: cleanup image 2026-03-30 09:26:46 -07:00
Krrish Dholakia
bc89ad28ab docs: cleanup 2026-03-30 09:19:48 -07:00
Krrish Dholakia
5671baaadf fix: fix setup wizard 2026-03-30 09:06:31 -07:00
Krrish Dholakia
05134fc70b
Create scorecard.yml 2026-03-30 07:47:06 -07:00
Krrish Dholakia
58120537af
Merge pull request #24756 from BerriAI/litellm_/pensive-sinoussi
[Fix] Remove NLP_CLOUD_API_KEY requirement from test_exceptions
2026-03-28 22:04:49 -07:00
Krrish Dholakia
a671083596
Merge pull request #24755 from BerriAI/litellm_test_cleanup
Litellm test cleanup
2026-03-28 22:04:26 -07:00
Krrish Dholakia
85cc7bc433 refactor: make unit test 2026-03-28 21:44:46 -07:00
Krrish Dholakia
1ba109079d test: update tests 2026-03-28 21:22:04 -07:00
Krrish Dholakia
9e070143fb test: update key names 2026-03-28 21:13:16 -07:00
Krrish Dholakia
25f2baad71 test: cleanup dead tests 2026-03-28 20:49:02 -07:00
Yuneng Jiang
14095ee144
[Fix] Remove NLP_CLOUD_API_KEY requirement from test_exceptions.py
The test only needs a bad key to verify AuthenticationError handling.
No other tests use this env var, and it's not provisioned in CI.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-28 20:38:54 -07:00
Krrish Dholakia
a92b31a636 test: remove dead tests 2026-03-28 20:36:08 -07:00
Krrish Dholakia
fe379fd738 test: rename env var 2026-03-28 20:27:39 -07:00
Krrish Dholakia
0fef88d67c test: remove dead tests 2026-03-28 20:23:44 -07:00
yuneng-jiang
c27114470e
Merge pull request #24754 from BerriAI/litellm_gha_p3b
[Infra] Remove CircleCI jobs now covered by GitHub Actions
2026-03-28 20:23:27 -07:00
Krrish Dholakia
1fb677702d test: update to new vertex ai keys 2026-03-28 20:19:05 -07:00
Krrish Dholakia
92db2df2f6
Merge pull request #23794 from ndgigliotti/feat/bedrock-structured-output-cost-json
Bedrock: move native structured output model list to cost JSON, add Sonnet 4.6
2026-03-28 20:04:47 -07:00
Krrish Dholakia
ce26dd4101 test: update tests 2026-03-28 19:42:14 -07:00
Krrish Dholakia
cdcab8a243 refactor: cleanup deprecated models 2026-03-28 19:39:11 -07:00
Krrish Dholakia
bc829d51f2 test: test 2026-03-28 19:17:38 -07:00
Yuneng Jiang
7aec9101f5
[Infra] Remove CircleCI jobs now covered by GitHub Actions
Removes 10 CircleCI jobs that are fully duplicated by GHA workflows:
- caching_unit_tests → test-unit-caching-redis.yml
- litellm_security_tests → test-unit-security.yml
- litellm_proxy_unit_testing_{key_generation,part1,part2} → test-unit-proxy-db.yml + test-unit-proxy-legacy.yml
- litellm_mapped_tests_{llms,core,litellm_core_utils,mcps,integrations} → test-unit-*.yml workflows

Also cleans up upload-coverage requires and workflow entries.

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