Julio Quinteros Pro
9672a1f015
Fix Langfuse test isolation to prevent flaky failures
...
Fixes test_log_langfuse_v2_handles_null_usage_values flaky test failure
by properly cleaning up sys.modules['langfuse'] in tearDown.
Changes:
- Store original langfuse module in setUp before mocking
- Restore original or remove mock in tearDown to prevent state pollution
- Remove invalid print_verbose parameter from log_event_on_langfuse
Root Cause:
The tearDown method was not cleaning up sys.modules['langfuse'] after
each test, causing mock state to leak between tests. This caused
intermittent failures in CI, especially when tests run in parallel or
in different orders.
Impact:
This test has a long history of flakiness with multiple attempted fixes
(#20475 , #17599 , #17594 , #17591 , #17588 ). The missing sys.modules cleanup
was the underlying issue causing continued failures despite those patches.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-15 12:26:02 -03:00
jquinter
b2eade11a4
Merge pull request #21104 from BerriAI/chore/add-claude-to-gitignore
...
chore: add .claude directory to gitignore
2026-02-15 12:12:32 -03:00
jquinter
e642d5d9b0
Merge pull request #21103 from jquinter/fix/responses-reasoning-type-clean
...
fix: use None instead of Reasoning() for reasoning parameter
2026-02-15 12:11:34 -03:00
jquinter
5bd16a302b
Merge branch 'main' into fix/responses-reasoning-type-clean
2026-02-15 12:11:19 -03:00
Shivam Rawat
2d9508ec96
Update litellm/proxy/common_utils/reset_budget_job.py
...
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2026-02-14 19:09:26 -08:00
Shivam Rawat
ea87dd2162
Update litellm/proxy/common_utils/reset_budget_job.py
...
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2026-02-14 19:01:35 -08:00
Harshit Jain
56b53cb502
Merge branch 'main' into litellm_fix-virtual-key-grace-period
2026-02-15 08:09:13 +05:30
Harshit Jain
2c654bd7dd
Update litellm/proxy/utils.py
...
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2026-02-15 08:05:44 +05:30
yuneng-jiang
caf6db972f
Merge pull request #21237 from BerriAI/litellm_ui_access_groups
...
[Infra] UI - Unit Tests: Increase timeout on Long Running Tests
2026-02-14 18:16:43 -08:00
yuneng-jiang
ac648af78e
add timeout to long running tests
2026-02-14 18:05:27 -08:00
yuneng-jiang
e92b7274c9
Merge pull request #21236 from BerriAI/litellm_ui_access_groups
...
[Docs] Access Group Docs
2026-02-14 18:01:11 -08:00
yuneng-jiang
227b3551a6
access groups docs
2026-02-14 18:00:22 -08:00
yuneng-jiang
58c430eaf8
Merge pull request #21235 from BerriAI/litellm_ui_access_groups
...
[Infra] Fixes + UI Build
2026-02-14 17:34:37 -08:00
yuneng-jiang
dd604dbf61
chore: update Next.js build artifacts (2026-02-15 01:33 UTC, node v22.16.0)
2026-02-14 17:33:10 -08:00
Ryan Crabbe
f5e36066ab
fix: add debug logging to stream cleanup, improve tests
2026-02-14 17:31:39 -08:00
yuneng-jiang
1c1807df45
defensive checks for null
2026-02-14 17:30:58 -08:00
Shivam Rawat
47048d103f
Merge pull request #20684 from BerriAI/litellm_preserver_team_key_alias_after_key_regeneration_and_deletion
...
[Fix] Preserve key_alias and team_id metadata in /user/daily/activity/aggregated after key deletion or regeneration
2026-02-14 17:10:32 -08:00
Ishaan Jaffer
45235ce5d5
docs
2026-02-14 17:09:13 -08:00
Ishaan Jaffer
8a341ebd5d
docs fix
2026-02-14 17:09:13 -08:00
yuneng-jiang
801fc22d6e
Merge pull request #21234 from BerriAI/litellm_ui_access_groups
...
[Feature] UI - Keys/Teams: Add Access Group Selector to Create and Edit Flow
2026-02-14 17:08:13 -08:00
yuneng-jiang
b3fd76a713
adding access groups on keys and teams
2026-02-14 17:01:29 -08:00
Shivam Rawat
db9b98caf3
Merge branch 'main' into litellm_preserver_team_key_alias_after_key_regeneration_and_deletion
2026-02-14 16:59:52 -08:00
Ishaan Jaffer
74a9900fe6
docs fix
2026-02-14 16:58:00 -08:00
Ishaan Jaffer
c93e0dcf9f
docs
2026-02-14 16:56:38 -08:00
Chesars
f5e46f621a
feat: support per-request enable_json_schema_validation for thread safety
...
Allow passing enable_json_schema_validation as a parameter to completion()
and acompletion() instead of only relying on the global
litellm.enable_json_schema_validation flag. The per-request value takes
priority when provided; otherwise falls back to the global (backward
compatible). This makes JSON schema validation safe for concurrent usage
in FastAPI and other multi-threaded environments.
2026-02-14 21:51:08 -03:00
Ishaan Jaffer
ff502e8b91
DEFAULT_ACCESS_GROUP_CACHE_TTL
2026-02-14 16:48:57 -08:00
shivam
88a631d32a
fixed ruff
2026-02-14 16:48:46 -08:00
Ishaan Jaffer
d24869c7ce
docs fix
2026-02-14 16:47:01 -08:00
Ephrim Stanley
a5626768a3
Add comments
2026-02-14 19:46:56 -05:00
Ishaan Jaffer
9e7dde508f
docs fix
2026-02-14 16:45:57 -08:00
Ishaan Jaff
eb432bf911
Litellm notes 181 12 ( #21231 )
...
* docs
* docs
* docs
* docs
* fix SCHEMA
* LiteLLM_PolicyTable
* litellm-proxy-extras = {version = "0.4.39",
2026-02-14 16:39:22 -08:00
shivam
6f49261651
fix failing test and lint
2026-02-14 16:36:01 -08:00
yuneng-jiang
27fe16be4b
Merge remote-tracking branch 'origin/main' into litellm_ui_access_groups
2026-02-14 16:33:44 -08:00
yuneng-jiang
3e97c0d5d6
temp commit for merge
2026-02-14 16:33:35 -08:00
yuneng-jiang
55f169aa69
Merge pull request #21190 from BerriAI/litellm_access_groups_inte
...
[Feature] Access Group Checks
2026-02-14 16:28:09 -08:00
Ryan Crabbe
2253f92f09
test: update streaming cleanup tests for review findings
2026-02-14 16:25:15 -08:00
Ryan Crabbe
81be07aaeb
fix: remove StreamingResponse monkey-patch, bump uvicorn >=0.32.1
...
Uvicorn 0.31.x falsely advertised ASGI spec_version "2.4" without
implementing send() raising OSError on disconnect. Starlette trusted
this and skipped its disconnect listener, causing generators to run
forever. Uvicorn 0.32.1 corrected this to "2.3", restoring native
disconnect detection. The monkey-patch is no longer needed.
Also adds fallback_response cleanup in stream_with_fallbacks and
moves inline import anyio to module level in streaming_handler.
2026-02-14 16:24:40 -08:00
Ephrim Stanley
4d87cb8fe3
Fix deleted managed files returning 403 instead of 404
2026-02-14 19:12:03 -05:00
yuneng-jiang
da5fbfe17c
Merge pull request #21230 from BerriAI/litellm_e2e_tab_tests
...
[Fix] UI - E2E Tests: Injecting localStorage Values to Hide Usage Indicator
2026-02-14 16:00:04 -08:00
yuneng-jiang
ff646c154d
fixing linting
2026-02-14 15:58:42 -08:00
Ishaan Jaffer
62d3cab965
test fixes
2026-02-14 15:54:20 -08:00
yuneng-jiang
0d6fcee23e
injecting localstorage values to hide usageIndicator, prompts, and new badges
2026-02-14 15:49:27 -08:00
Ishaan Jaffer
0b1a9f6623
litellm_mapped_tests_proxy_part2
2026-02-14 15:37:18 -08:00
Ishaan Jaffer
9ce7871d8a
test_queue_flush_limit
2026-02-14 15:34:45 -08:00
Ishaan Jaffer
0d697e6c3e
litellm_mapped_tests_mcps
2026-02-14 15:20:25 -08:00
Ryan Crabbe
e684af8976
revert: remove unrelated timeout default change
2026-02-14 15:05:37 -08:00
Ishaan Jaffer
d5824d871c
access_group_ids
2026-02-14 14:43:03 -08:00
Shivam Rawat
f79a8f7809
Update litellm/proxy/common_utils/reset_budget_job.py
...
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2026-02-14 14:42:17 -08:00
yuneng-jiang
ee088992f5
Merge pull request #21224 from BerriAI/litellm_ui_gh_build
...
[Infra] New Github Workflow For UI Build on Every PR
2026-02-14 13:56:32 -08:00
yuneng-jiang
6e70e59346
adding timeout
2026-02-14 13:53:21 -08:00