Commit graph

29425 commits

Author SHA1 Message Date
Yuneng Jiang
f75f07608c
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 00:12:15 -07:00
Alexsander Hamir
26e7bfb3cc Revert test expectation change for groq/gemma-7b-it
- Restore original test expectation of True for groq/gemma-7b-it
- The proper fix would be to add the model to model_prices_and_context_window.json
- Reverting the workaround that changed the test expectation
2026-01-01 11:08:37 -08:00
Alexsander Hamir
33454f75d0 Fix three failing tests
1. Fix test_create_simple_string_input (Gemini and LiteLLM bridge):
   - Update usage token checks to support both old format (input_tokens/output_tokens)
     and new format (total_input_tokens/total_output_tokens)
   - The Interactions API returns total_input_tokens/total_output_tokens

2. Fix test_proxy_function_calling_support_consistency for groq/gemma-7b-it:
   - Change expected result from True to False
   - Model is not in model_prices_and_context_window.json, so supports_function_calling returns False
   - If the model should support function calling, it needs to be added to the JSON file
2026-01-01 11:03:26 -08:00
Alexsander Hamir
7d9e9cc506 Add minimax provider to models_by_provider
- Add minimax_models set to track minimax models
- Add handling in add_known_models() to populate minimax_models
- Add 'minimax' entry to models_by_provider dictionary
- Fixes test_models_by_provider assertion error where 'minimax' was missing
2026-01-01 10:56:35 -08:00
Alexsander Hamir
5c7815c4c2 Fix Databricks SDK test failures: Mock databricks.sdk module correctly
- Fix test_sdk_partner_registered: Use patch.dict to mock databricks.sdk module in sys.modules
- Fix test_sdk_fallback_when_no_credentials: Use patch.dict to mock databricks.sdk module in sys.modules
- The code imports 'from databricks.sdk import ...' inside functions, and the SDK is not installed in test environment
- Mocking sys.modules allows the import to succeed and tests still verify the correct behavior:
  * useragent.with_partner('litellm') is called
  * SDK fallback authentication works correctly
2026-01-01 10:47:54 -08:00
Alexsander Hamir
22a2dacd9c Fix failing tests: route path, auth dependencies, cost_breakdown, and TTL test
- Fix test_mcp_connection_requires_auth_dependency: Use correct route path /mcp-rest/test/connection
- Fix test_update_ui_settings tests: Use app.dependency_overrides instead of monkeypatch for FastAPI dependencies
- Fix test_spend_logs_payload tests: Add metadata.cost_breakdown to ignored_keys (optional field)
- Improve test_async_increment_tokens_with_ttl_preservation: Increase wait time and add debug logging
2026-01-01 10:42:13 -08:00
Alexsander Hamir
e07f330773 fix: correct SDK patch paths in databricks tests - patch databricks.sdk directly instead of module attributes 2026-01-01 10:33:57 -08:00
Alexsander Hamir
0e756959a2 docs: add missing environment variables to documentation - DATABRICKS_CLIENT_ID, DATABRICKS_CLIENT_SECRET, DATABRICKS_USER_AGENT, LITELLM_USER_AGENT 2026-01-01 10:29:10 -08:00
Alexsander Hamir
58041f3635 fix: fix databricks partner integration tests - update test token to match pattern, fix SDK patch paths 2026-01-01 10:26:13 -08:00
Alexsander Hamir
98ba9760ab fix: resolve linting errors - remove unused imports, suppress complexity warning, ignore __getattr__ in recursive detector 2026-01-01 10:20:54 -08:00
Alexsander Hamir
4f6633192f refactor: remove unused import & silence function complexity warning 2026-01-01 10:15:39 -08:00
yuneng-jiang
9be2173d5b
Merge pull request #18557 from BerriAI/litellm_deactivate_other_ui_token
[Feature] Expire Previous UI Session Tokens on Login
2026-01-01 09:11:17 -08:00
yuneng-jiang
e2586424cc remove print 2025-12-31 19:35:59 -08:00
yuneng-jiang
269bc5b26b Expire Previous UI Session Tokens 2025-12-31 19:26:59 -08:00
YutaSaito
faf58dc351
Merge pull request #18553 from BerriAI/litellm_fix_ends_parent_span_in_otel
fix: prevent LiteLLM from closing external OTEL spans
2026-01-01 11:49:12 +09:00
yuneng-jiang
037b1821d7
Merge pull request #18555 from BerriAI/litellm_ui_usage_budget
[Fix] UI - Usage Page User Max Budget
2025-12-31 17:50:05 -08:00
yuneng-jiang
222ff15a77 Show user budget on usage 2025-12-31 17:33:29 -08:00
yuneng-jiang
ee338195d5 Show user budget on usage 2025-12-31 17:27:58 -08:00
Yuta Saito
9795a3d8e5 fix: close spans only when proxy-created span 2026-01-01 09:25:46 +09:00
Yuta Saito
b343d15157 fix: prevent LiteLLM from closing external OTEL spans 2026-01-01 08:28:48 +09:00
yuneng-jiang
e4dabc274c
Merge pull request #18552 from BerriAI/litellm_ui_model_loading
[Refactor] UI - Remove Model Analytics From Model Page
2025-12-31 15:02:01 -08:00
yuneng-jiang
16f17fc1b8 tests and build 2025-12-31 14:53:52 -08:00
yuneng-jiang
e20254b4c8 Model Page refactor, pending tests/build 2025-12-31 14:33:22 -08:00
yuneng-jiang
7b41686375
Merge pull request #18548 from BerriAI/litellm_ui_testing_coverage
[Infra] UI - Unit Testing Coverage With v8
2025-12-31 12:51:35 -08:00
yuneng-jiang
81c78931d8 Testing coverage with v8 2025-12-31 12:24:01 -08:00
yuneng-jiang
0c0a5e5464
Merge pull request #18547 from BerriAI/litellm_ui_turn_off_new_badges
[Feauture] UI - Hide New Badges
2025-12-31 11:19:07 -08:00
yuneng-jiang
a17980c744 feat: hide new badges 2025-12-31 10:42:34 -08:00
yuneng-jiang
3d024b7a89
Merge pull request #18537 from BerriAI/litellm_ui_antd_input_css
[Feature] UI - New Badge Reusable Component + Update New bade for features
2025-12-30 19:21:06 -08:00
yuneng-jiang
316a498965 New badge reusable component 2025-12-30 18:36:26 -08:00
yuneng-jiang
9cdc356e85
Merge pull request #18533 from BerriAI/litellm_ui_e2e_2
[Refactor] UI - E2E Tests: Parity With Legacy Tests
2025-12-30 17:31:42 -08:00
yuneng-jiang
b35e0d5f83 Adding timeout for flaky test 2025-12-30 17:18:06 -08:00
yuneng-jiang
2abd0941be E2E Parity 2025-12-30 16:44:31 -08:00
yuneng-jiang
e5257db930
Merge pull request #18532 from BerriAI/litellm_ui_add_model_team_admin
[Feature] UI - Add Model Clearer Flow For Team Admins
2025-12-30 15:18:31 -08:00
yuneng-jiang
3723a71462 Adding tests 2025-12-30 15:07:34 -08:00
YutaSaito
cc8e310736
Merge pull request #18530 from BerriAI/litellm_refactor_mcp_health_check
feat: optimize MCP server listing by separating health checks
2025-12-31 08:03:12 +09:00
yuneng-jiang
ac798b7c92 Team admin view for add models 2025-12-30 14:53:15 -08:00
Yuta Saito
0dc8c1441f fix: npm build error 2025-12-31 07:26:49 +09:00
Yuta Saito
7fdea85b5c feat: optimize MCP server listing by separating health checks 2025-12-31 06:55:47 +09:00
yuneng-jiang
16f663778d Add Model Form Refactor 2025-12-30 13:30:54 -08:00
yuneng-jiang
04989d2a18
Merge pull request #18528 from BerriAI/litellm_ui_e2e
[Refactor] UI - E2E Tests: Sidebar Navigation
2025-12-30 12:38:32 -08:00
yuneng-jiang
c049f6a073 Adding e2e tests for sidebar 2025-12-30 12:19:25 -08:00
yuneng-jiang
d630820ac0
Merge pull request #18527 from BerriAI/litellm_ui_keys_loading
[Feature] UI - Key Table Loading Skeleton
2025-12-30 11:25:08 -08:00
yuneng-jiang
b1dd8bf3e1 Adding tests 2025-12-30 10:43:27 -08:00
yuneng-jiang
42e437a418 Loading state for Keys table 2025-12-30 10:35:25 -08:00
yuneng-jiang
c7734cb8bd
Merge pull request #18501 from BerriAI/litellm_ui_e2e_login_session
[Infra] UI - E2E Tests Setup
2025-12-29 20:57:41 -08:00
yuneng-jiang
46ce68619c attempt fix 3 2025-12-29 20:49:24 -08:00
yuneng-jiang
554830d2e2 reverting 2025-12-29 20:33:46 -08:00
yuneng-jiang
a4341c6e5b test removing python install step 2025-12-29 19:56:44 -08:00
yuneng-jiang
52a1dbfee8
Merge pull request #18506 from BerriAI/litellm_ui_keys_react_query
[Infra] UI - Virtual Keys Table to use React Query
2025-12-29 19:51:31 -08:00
yuneng-jiang
c79db9121d Fixing build 2025-12-29 19:42:38 -08:00