Commit graph

29979 commits

Author SHA1 Message Date
Yuneng Jiang
adea4a8e47
chore: fixes
Some checks failed
Unit Tests: Caching (Redis) / caching-redis (push) Has been cancelled
Unit Tests: Proxy DB Operations / proxy-db (auth-checks, tests/proxy_unit_tests/test_auth_checks.py tests/proxy_unit_tests/test_user_api_key_auth.py, 20, 8) (push) Has been cancelled
Unit Tests: Proxy DB Operations / proxy-db (key-generation, tests/proxy_unit_tests/test_key_generate_prisma.py, 30, 0) (push) Has been cancelled
Unit Tests: Proxy DB Operations / proxy-db (remaining, tests/proxy_unit_tests --ignore=tests/proxy_unit_tests/test_key_generate_prisma.py --ignore=tests/proxy_unit_tests/test_auth_checks.py --ignore=tests/proxy_unit_tests/test_user_api_key_auth.py, 20, 8) (push) Has been cancelled
Unit Tests: Security / security (push) Has been cancelled
2026-04-05 01:12:27 -07:00
Alexsander Hamir
dadadf777d add 1 million request memory leak tests for extreme scale validation
- Add test_memory_baseline_1m for router (1,000,000 requests)
- Add test_proxy_memory_baseline_1m for proxy (1,000,000 requests)
- Add clarifying comment: high-volume tests verify memory limit strictness
- These extreme scale tests help detect very gradual leaks (~1-2 KB per 1000 requests)
- Estimated runtime: router ~15-20 min, proxy ~50-60 min
- For manual execution only, not included in CI
- Run with: pytest tests/load_tests/test_*_memory_growth.py::test_*_1m -v
2026-01-10 17:43:53 -08:00
Alexsander Hamir
d0444c7287 reduce memory limits to 45 MB for more accurate CI testing
- Router: 60 MB -> 45 MB
- Proxy: 170 MB -> 45 MB
- CI environment provides cleaner memory measurements without:
  - IDE/debugger overhead holding references
  - Development tool memory fragmentation
  - Local process competition
- 45 MB limit reflects true router/proxy memory usage
- Stricter CI limits help catch real memory leaks more reliably
2026-01-10 17:36:30 -08:00
Alexsander Hamir
e868a5702e add 500k memory leak tests for comprehensive analysis
- Add test_memory_baseline_500k for router (500,000 requests)
- Add test_proxy_memory_baseline_500k for proxy (500,000 requests)
- These high-volume tests are designed for manual execution and deep memory leak analysis
- Not included in CI due to long runtime (~15-30 minutes each)
- Useful for detecting very gradual memory accumulation patterns
- Run individually with: pytest tests/load_tests/test_*_memory_growth.py::test_*_500k -v
2026-01-10 17:23:49 -08:00
Alexsander Hamir
f0d5c0b1d1 Merge branch 'main' into litellm_oom_tests_002 2026-01-10 17:16:06 -08:00
Alexsander Hamir
1cce3822c5 reduce max memory tests from 100k/250k to 50k for faster CI
- Rename test_memory_baseline_100k to test_memory_baseline_50k (router)
- Rename test_proxy_memory_baseline_250k to test_proxy_memory_baseline_50k (proxy)
- Update CI configuration to use new 50k test names
- Reduces test time while still providing comprehensive scale testing
- Router 50k test: ~90 seconds vs 3-4 minutes for 100k
- Proxy 50k test: ~2.5 minutes vs 16 minutes for 250k
2026-01-10 17:05:00 -08:00
Alexsander Hamir
3fe36cee72 add 100k router memory test to CI
- Add test_memory_baseline_100k to router memory tests in CI
- Test runs after 30k test with same 30m timeout
- Provides comprehensive scale testing up to 100k requests
2026-01-10 16:54:25 -08:00
Alexsander Hamir
a56f1c0e48 add aggressive cleanup routine to router memory tests
- Add multi-generation garbage collection (3 generations)
- Add 5 full GC passes to catch circular references
- Check for uncollectable objects (memory leak detection)
- Add 0.5s wait for OS memory stabilization
- Add final GC pass after wait
- Add detailed logging of cleanup results
- Match cleanup routine used in proxy tests
- Reports actual memory usage vs test artifacts separately
2026-01-10 16:52:10 -08:00
Alexsander Hamir
d5a35efe50 add 100k router memory test and increase memory limit to 60 MB
- Add test_memory_baseline_100k for testing at scale (100,000 requests)
- Increase MEMORY_LIMIT from 50 MB to 60 MB for all router tests
- Memory limit adjustment accounts for observed usage patterns in 30k test
2026-01-10 16:36:11 -08:00
Alexsander Hamir
02c4d009b3 optimize router memory tests for 5x speed improvement
- Increase batch size from 20 to 100 requests (matches proxy test pattern)
- Add memory tracking and detailed logging throughout test execution
- Add periodic memory checks every 10 batches
- Direct task creation without intermediate validation for maximum speed
- Explicit cleanup of responses after each batch
- Average 300-400 req/s (was ~50-100 req/s before)
- Increase memory limit from 40 MB to 50 MB to account for larger batch size
- 1k test now completes in ~6.5 seconds (was ~20+ seconds)
2026-01-10 16:30:49 -08:00
Alexsander Hamir
e81f2f7fc1 add 30k and 250k memory leak tests to CI
- Add test_memory_baseline_30k to Router tests
- Add test_proxy_memory_baseline_30k and test_proxy_memory_baseline_250k to Proxy tests
- Increase proxy tests timeout from 30m to 45m to accommodate 250k test (~16 min runtime)
2026-01-10 16:17:45 -08:00
Alexsander Hamir
c01be17a50 update CI to use renamed memory leak tests and add proxy server tests
- Update memory_leak_tests job to use test_router_acompletion_memory_growth.py (renamed)
- Add new step to run proxy server memory growth tests
- Test both Router (1k, 2k, 4k, 10k) and Proxy (1k, 10k, 20k) in CI
- Reduce timeout from 60m to 30m per section for faster feedback
- Remove 30k router test from CI to keep runtime reasonable
2026-01-10 16:14:06 -08:00
Alexsander Hamir
ff94e23cb3 improve memory leak detection tests with diagnostics and parallel support
- Rename test_linear_memory_growth.py to test_router_acompletion_memory_growth.py for clarity
- Add new test_proxy_chat_completions_memory_growth.py to test full proxy server memory usage
- Implement dynamic port allocation (18888-18919) in mock_server fixture for parallel test execution
- Add httpx client diagnostics to differentiate test artifacts from actual proxy memory growth
- Increase MEMORY_LIMIT to 170 MB based on empirical testing showing ~174 MB stable usage at scale
- Add aggressive cleanup routines with detailed logging to ensure accurate memory measurements
- Fix Windows Unicode compatibility by removing emoji characters from test output
- Tests now properly detect slow memory accumulation (~170 KB per 1000 requests) in proxy server
2026-01-10 16:11:11 -08:00
Ishaan Jaffer
58bc308d47 docs levo ai 2026-01-10 15:07:58 -08:00
Ishaan Jaffer
451d240a41 fix 2026-01-10 15:05:38 -08:00
Ishaan Jaffer
64d029bce7 docs fix 2026-01-10 15:04:06 -08:00
Ishaan Jaffer
a4758ab532 QA release notes 2026-01-10 14:57:16 -08:00
Ishaan Jaffer
17995c5192 rc1 writeup 2026-01-10 14:51:56 -08:00
Ishaan Jaffer
9b4f3308fc docs fix 2026-01-10 14:45:55 -08:00
Shivam Rawat
ab37a9872c
fixed _organization_max_budget_check so tests works (#18908) 2026-01-10 14:26:08 -08:00
akraines
7e6d0d7691
fix: Support batch requests with comma-separated models in validate_model_access (#18909)
This fixes a breaking change where batch completion requests with comma-separated
model strings (e.g., 'gpt-3.5-turbo,fake-openai-endpoint') were failing validation.

The validate_model_access function now:
- Detects comma-separated model strings
- Validates each model individually
- Provides clear error messages for inaccessible models in batch requests
- Maintains backward compatibility for single model validation

Fixes test_batch_chat_completions test failure.
2026-01-10 14:23:45 -08:00
Ishaan Jaffer
46cbf673b6 fix code QA 2026-01-10 14:16:55 -08:00
Ishaan Jaffer
3223554905 bump 2026-01-10 14:15:28 -08:00
Ishaan Jaffer
abeec38ada fix manus 2026-01-10 14:14:40 -08:00
Ishaan Jaffer
6a9041e67d Revert "aws fix base"
This reverts commit 225f411abc.
2026-01-10 14:08:11 -08:00
Ishaan Jaffer
f37ccca19c docs fix 2026-01-10 14:04:47 -08:00
Ishaan Jaffer
69aaad5e69 Revert "added extraction of top level metadata for custom lables in prometheus callbacks (#18087)"
This reverts commit 14a4a9c031.
2026-01-10 14:00:54 -08:00
Ishaan Jaffer
6b7f114847 test_lists_with_sensitive_keys_are_masked 2026-01-10 13:55:11 -08:00
Ishaan Jaffer
35c636ba97 test_health_check_not_called_when_disabled 2026-01-10 13:55:11 -08:00
Ishaan Jaff
b1c122056f
Revert "fix: Improve error messages and validation for wildcard routing with multiple credentials" (#18907) 2026-01-10 13:49:43 -08:00
Ishaan Jaffer
ff8e9aeb5c Revert "Add support for Vertex AI API keys"
This reverts commit ad501048f3.
2026-01-10 13:39:49 -08:00
Ishaan Jaff
c0cf8bc27d
[Feat] Manus FILES API - Add File upload, get, delete, list (#18904)
* add MANUS get response

* init TwoStepFileUploadRequest

* init TwoStepFileUploadConfig

* add async_create_file to handle 2 step uploads

* init ManusFilesConfig

* add add get_provider_files_config MANUS

* fix validate_environment

* test_manus_files_api_e2e_all_methods

* aws fix base

* init files API MANUS

* test_manus_responses_api_with_file_upload

* mypy lint fixes

* fix BedrockFilesConfig

* manus docs

* docs manus

* mypy lint

* add add fix resposne api utils MANUS
2026-01-10 13:27:54 -08:00
Ishaan Jaffer
3c3ed3bcfb fix resposne api utils 2026-01-10 13:25:31 -08:00
Ishaan Jaffer
e3fe02148d _mask_sequence 2026-01-10 13:20:43 -08:00
yuneng-jiang
7209b55dab
Merge pull request #18906 from BerriAI/v1.80.13-rc_doc
[Docs] v1.80.13.rc.1 Docs
2026-01-10 13:16:29 -08:00
yuneng-jiang
5c46053307 Adding image 2026-01-10 13:15:23 -08:00
yuneng-jiang
ff938e7c27 v1.80.13 docs work in progress 2026-01-10 13:04:11 -08:00
Ishaan Jaff
f19cce950c
add MANUS get response (#18900) 2026-01-10 12:21:45 -08:00
yuneng-jiang
1d614a8e85
Merge pull request #18901 from BerriAI/litellm_publih_proxy_extras_yj
[Infra] Proxy Extras CI/CD Fix
2026-01-10 12:04:31 -08:00
yuneng-jiang
0d2010813d Adding proxy extras build 2026-01-10 12:00:45 -08:00
yuneng-jiang
369b1fae69 bump: version 0.4.20 → 0.4.21 2026-01-10 12:00:03 -08:00
Elkhan Eminov
062f5892da
update OpenRouter docs to include embedding support (#18874) 2026-01-10 11:42:02 -08:00
Ishaan Jaff
ab50fea663
[Fix] turn_off_message_logging Does Not Redact Request Messages in proxy_server_request Field When Stored to Database (#18897)
* update _get_proxy_server_request_for_spend_logs_payload

* test_spend_logs_redacts_request_and_response_when_turn_off_message_logging_enabled
2026-01-10 11:28:21 -08:00
Ishaan Jaffer
29254d9071 _get_bedrock_client_ssl_verify 2026-01-10 11:28:04 -08:00
Ishaan Jaffer
fef5b0f471 ci/cd new release 2026-01-10 10:05:21 -08:00
yuneng-jiang
81789cc5a2
Merge pull request #18894 from BerriAI/litellm_ui_build_0077
[Infra] Building UI for QA Testing
2026-01-10 09:57:04 -08:00
yuneng-jiang
ffd3e40aec Building UI for testing 2026-01-10 09:48:20 -08:00
yuneng-jiang
b7a61d469c
Merge pull request #18798 from BerriAI/litellm_ui_endpoint_usage
[Feature] UI - Endpoint Activity in Usage
2026-01-10 09:42:21 -08:00
yuneng-jiang
cac9d862a1 fixing test 2026-01-10 09:34:41 -08:00
yuneng-jiang
227ad58c16 Removing mock data and adding tabs 2026-01-10 09:27:44 -08:00