Commit Graph

8132 Commits

Author SHA1 Message Date
Krrish Dholakia
c6f1f8b6b3 fix: move to new vertex credentials 2026-03-30 19:16:05 -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
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
Yuneng Jiang
19f8b58046
[Test] Move mocked Snowflake chat completion tests to unit test directory
Move test_chat_completion_snowflake and test_chat_completion_snowflake_stream
from tests/llm_translation/ to tests/test_litellm/llms/snowflake/chat/ so
they run as part of `make test-unit` without requiring API credentials.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 18:03:00 -07:00
Krrish Dholakia
949a395b01 test: use env var azure model router api base 2026-03-30 18:02:43 -07:00
Ishaan Jaffer
facb230fee test_create_vertex_fine_tune_jobs_mocked 2026-03-30 18:01:23 -07:00
Krrish Dholakia
5596728cae
Merge pull request #24753 from BerriAI/litellm_dev_03_27_2026_p1
Fix returned model when batch completions is used - return picked model, not comma-separated list
2026-03-30 17:53:48 -07:00
Ishaan Jaffer
7844571d36 test GCS BUCKET 2026-03-30 17:53:26 -07:00
Krrish Dholakia
ee4ded4c44
Merge pull request #24445 from quora/fix/missing-content-part-added
fix(responses): emit content_part.added event for non-OpenAI models
2026-03-30 17:52:40 -07:00
Ishaan Jaffer
9d4090bc5a test fix - remove tests that were skipped 2026-03-30 17:48:54 -07:00
Krrish Dholakia
13b7c2e602 test: update testing 2026-03-30 17:48:25 -07:00
Ishaan Jaffer
6c3de43fcf test_enterprise_custom_auth_returns_string 2026-03-30 17:43:58 -07:00
Krrish Dholakia
770f5ce721 test: fix test assertion 2026-03-30 17:35:11 -07:00
Krrish Dholakia
c2aec08a1b test: fix test 2026-03-30 17:15:19 -07:00
Krrish Dholakia
aa061d026f fix: fix test 2026-03-30 17:12:54 -07:00
Ishaan Jaffer
443566d4f5 test fixes 2026-03-30 16:59:27 -07:00
Ishaan Jaffer
28afbc152f test_async_gcs_pub_sub_v1 2026-03-30 16:52:56 -07:00
Ishaan Jaffer
42efaa597e test fix 2026-03-30 16:43:49 -07:00
Ishaan Jaffer
a449e322c0 test_completion_cloudflare 2026-03-30 16:40:37 -07:00
Ishaan Jaffer
3a0ebda867 test snowflake 2026-03-30 16:39:06 -07:00
Ishaan Jaffer
98de60e741 test_completion_gpt4_turbo 2026-03-30 16:35:31 -07:00
Ishaan Jaffer
37bcc3252f test_completion_gpt4_turbo 2026-03-30 16:35:10 -07:00
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