Commit graph

29501 commits

Author SHA1 Message Date
Yuneng Jiang
4280b88464
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:08:38 -07:00
Alexsander Hamir
e5a7405c10 fix: remove duplicate get_llm_provider type stub to resolve mypy error
- Remove get_llm_provider from TYPE_CHECKING Protocol class
- Function is already imported from main.py via 'from .main import *'
- Fixes mypy error: Name 'get_llm_provider' already defined (possibly by an import)
2026-01-02 13:16:52 -08:00
Alexsander Hamir
a5fed1d67f feat: Add lazy loading for get_llm_provider to reduce import time
- Add get_llm_provider to lazy import registry system
- Remove eager import from __init__.py
- Fix circular import by updating internal modules to import directly from source:
  - realtime_api/main.py
  - router_utils/pattern_match_deployments.py
- Add type stub for get_llm_provider in TYPE_CHECKING block
- Add tests for lazy loading of LLM provider logic functions

This reduces initial import time and memory usage by deferring the import
of get_llm_provider until it's actually accessed.
2026-01-02 12:55:08 -08:00
Alexsander Hamir
e2f3eaefab
Add UnboundedDataStructurePattern to memory test detector (#18590) 2026-01-02 11:49:32 -08:00
Small
05a78fb0cf
add dimensions for ollama embedding (#18536) 2026-01-03 00:58:27 +05:30
Alexsander Hamir
b732710ed0
Add memory pattern detection test and fix bad memory patterns (#18589) 2026-01-02 10:52:25 -08:00
Harshit Jain
cc659b8702
fix(logging_worker): handle event loop changes in multiprocessing by checking bound_loop (#18423) 2026-01-03 00:19:14 +05:30
Daniel Yudelevich
af27c7d7ff
fix: add deprecation_date for discontinued Google models (#18550)
Add deprecation dates for Google models that have been discontinued
per https://ai.google.dev/gemini-api/docs/changelog:

- Gemini 1.5 Flash/Pro models: 2025-09-29
- imagen-3.0-generate-002: 2025-11-10
- veo-3.0 preview models: 2025-11-12
- gemini-2.0-flash image generation: 2025-11-14
- gemini-2.5-flash preview models: 2025-11-18
- gemini-2.0-flash-thinking-exp, pro previews: 2025-12-02
- gemini-2.0-flash-live-001: 2025-12-09
- text-embedding-004: 2026-01-14
- gemini-2.5-flash-image-preview: 2026-01-15

Co-authored-by: Daniel Yudelevich <yudelevi@users.noreply.github.com>
2026-01-03 00:12:58 +05:30
Alex Gertz
3bd309f808
fix: return empty data array instead of 500 when no models configured (#18556)
- /v2/model/info now returns {"data": []} when llm_router is None or model_list is empty
- /model_group/info now returns {"data": []} when llm_model_list is None or empty
- Fixes UI crash on fresh installs with STORE_MODEL_IN_DB=True
- Added 4 unit tests for empty model list scenarios
2026-01-02 23:36:05 +05:30
Chetan Choudhary
687adc6024
Add log_format parameter to GenericAPILogger (#18587)
Adds log_format parameter supporting json_array (default), ndjson, and single formats. NDJSON format enables webhook integrations like Sumo Logic to parse individual log records at ingest time. Defaults to json_array for backward compatibility.
2026-01-02 23:28:30 +05:30
Cesar Garcia
c8950a5ba2
fix(cost_calculator): correct gpt-image-1 cost calculation using token-based pricing (#17906)
* fix(cost_calculator): correct gpt-image-1 cost calculation using token-based pricing (#13847)

gpt-image-1 uses token-based pricing (like chat models), not pixel-based pricing
like DALL-E. The old code was calculating incorrect costs by treating it as DALL-E.

Changes:
- Update model pricing JSON with correct token-based costs for gpt-image-1
- Add dedicated cost calculator for OpenAI gpt-image models
- Route gpt-image-1 to token-based calculator in cost router
- Add comprehensive tests for the new calculator

* refactor: simplify gpt-image-1 cost calculator using responses API helper

Reuse _transform_response_api_usage_to_chat_usage and generic_cost_per_token
for gpt-image-1 cost calculation since ImageUsage has the same spec as
ResponseAPIUsage.
2026-01-02 23:08:52 +05:30
Sameer Kankute
c380ad70d5
Merge pull request #18588 from BerriAI/litellm_fix_sameer_cicd
fix background cost tracking tests
2026-01-02 21:52:44 +05:30
Sameer Kankute
5ed83756eb
Merge pull request #18583 from BerriAI/litellm_block_negative_budget
Add validation for negative budget
2026-01-02 21:52:15 +05:30
Sameer Kankute
233ba9d4b8 fix mock tests 2026-01-02 21:40:27 +05:30
Sameer Kankute
ed59a9b376 fix background cost tracking tests 2026-01-02 21:12:25 +05:30
Sameer Kankute
c8bb92afdc
Merge pull request #18579 from BerriAI/litellm_remove_prompt_chaching_header
Remove prompt caching headers as the support has been removed
2026-01-02 21:01:50 +05:30
Sameer Kankute
973f850cf3
Merge pull request #18581 from BerriAI/litellm_gemini_non_tool_call_thought_sign
Add thought signature for non tool call requests
2026-01-02 21:01:07 +05:30
Sameer Kankute
7512b327d4
Merge pull request #18585 from BerriAI/litellm_gemini_system_instructions
Preserve system instructions for gemini
2026-01-02 20:59:44 +05:30
Sameer Kankute
ecbc678771
Merge pull request #18586 from BerriAI/litellm_fix_image_cost_track
Add all resolution for gpt-image-1.5
2026-01-02 20:58:59 +05:30
Sameer Kankute
05e37e0600 fix ruff check 2026-01-02 20:55:35 +05:30
Sameer Kankute
0543ab5e77 Update the logic to work with GET request 2026-01-02 20:49:12 +05:30
Sameer Kankute
bbb883ffa9
Merge pull request #18483 from yurekami/fix/deepseek-v3p2-pricing
fix: correct deepseek-v3p2 pricing for Fireworks AI
2026-01-02 17:09:12 +05:30
Sameer Kankute
bfbe13bbd4
Merge pull request #18190 from RensDimmendaal/add-gemini-img-tool-result-support
Fix Gemini 3 imgs in tool response
2026-01-02 17:06:51 +05:30
Sameer Kankute
ec1403ada0
Merge pull request #18496 from Chesars/feat/add-minimax-provider-ui
feat: Add MiniMax provider support to UI dashboard
2026-01-02 16:53:24 +05:30
Sameer Kankute
ccdbe921e1
Merge pull request #18514 from xuan07t2/fix/vertex-ai-tools-one-type-per-object
fix(vertex_ai): separate Tool objects for each tool type per API spec
2026-01-02 16:21:17 +05:30
Sameer Kankute
6e91364004 Add all sizes and resolution for gpt-image-1.5 to model map 2026-01-02 15:40:52 +05:30
Sameer Kankute
9aa280fde9 Add all sizes and resolution for gpt-image-1.5 to model map 2026-01-02 15:40:13 +05:30
Sameer Kankute
65e60a16d3
Merge pull request #18497 from DevajMody/fix/vertex-ai-anthropic-image-urls
fix(vertex_ai): convert image URLs to base64 for Vertex AI Anthropic
2026-01-02 14:50:04 +05:30
Sameer Kankute
81cbd7a8d8 Preserve system instructions for gemini 2026-01-02 14:39:25 +05:30
YutaSaito
e9365c496d
Merge pull request #18580 from BerriAI/litellm_feat_support_metaurl_on_ui
feat: add UI support for configuring meta URLs
2026-01-02 17:54:26 +09:00
YutaSaito
26c733b361
Merge pull request #18578 from BerriAI/litellm_feat_select_mcp_server_to_playground
add selectable mcp servers to the playground
2026-01-02 17:42:18 +09:00
Yuta Saito
7107da2fb7 fix: test mock 2026-01-02 17:38:52 +09:00
YutaSaito
4b131a77a0
Merge pull request #18573 from BerriAI/litellm_fix_normalize-model-name
fix: unify model names to provider-defined names
2026-01-02 17:37:28 +09:00
Lukas de Boer
edc8413f1e
Add Kubernetes ServiceAccount JWT authentication support (#18055)
* Allow get_nested_value dot notation to support escaping for Kubernetes JWT Support

* Add support for team and org alias fields, add docs, tests

* Fix lint issue with max statements in handle jwt logic
2026-01-02 14:02:31 +05:30
Yuta Saito
84944320a4 fix: npm run build error 2026-01-02 17:20:26 +09:00
Yuta Saito
0e01d225ff fix: test_edit_mcp_server_redacts_credentials error 2026-01-02 17:13:31 +09:00
Yuta Saito
0b16482cec fix: npm build 2026-01-02 16:39:22 +09:00
Yuta Saito
89ce8091bb fix: test 2026-01-02 16:32:33 +09:00
Sameer Kankute
57c373c5d8 Add validation for negative budget 2026-01-02 12:57:39 +05:30
Yuta Saito
2ea4d9a2f8 fix: test error 2026-01-02 16:25:37 +09:00
Sameer Kankute
dd96f91254 Add thought signature for non tool call requests 2026-01-02 12:31:31 +05:30
Yuta Saito
3ae38c2a6d fix: test_langfuse_logging_completion_with_bedrock_llm_response 2026-01-02 15:55:02 +09:00
Yuta Saito
35f9a75d55 feat: add UI support for configuring meta URLs 2026-01-02 15:07:37 +09:00
Sameer Kankute
ca94990307 remove prompt caching headers as the support has been removed 2026-01-02 11:08:35 +05:30
Sameer Kankute
7ba14a30ed
Merge pull request #18500 from systec-dk/fix_anthropic
fix authentication errors at messages API via azure_ai
2026-01-02 09:22:12 +05:30
Yuta Saito
df4eb84498 chore: add test 2026-01-02 11:55:55 +09:00
Yuta Saito
9815b00deb feat: add selectable mcp servers to the playground 2026-01-02 11:47:17 +09:00
yuneng-jiang
8a8f5b36af
Merge pull request #18577 from BerriAI/litellm_ui_react_query_tests
[Refactor] UI - Test for React Query Hooks
2026-01-01 18:34:42 -08:00
yuneng-jiang
a0eb22ca6c
Merge pull request #18576 from BerriAI/litellm_ui_budget_2
[Fix] UI - Change Budget page to Have Tabs
2026-01-01 18:27:17 -08:00
yuneng-jiang
a1200a8427 tests for react query hooks 2026-01-01 18:26:46 -08:00