Commit Graph

28132 Commits

Author SHA1 Message Date
Xianzong Xie
56cbdde64d remove file 2025-12-04 17:53:51 -08:00
Xianzong Xie
a8a38778a3 fix: resolve provider from router for polling_via_cache
- Fix bug where model names without slash (e.g., 'gpt-5') couldn't
  match providers in polling_via_cache list
- Look up model in llm_router.model_name_to_deployment_indices
- Check ALL deployments for matching provider (supports load balancing)
- Check custom_llm_provider first, then extract from model string
- Add comprehensive tests for provider resolution logic

Committed-By-Agent: cursor
2025-12-04 17:47:30 -08:00
Xianzong Xie
748bb6d5f5 test: add tests for all ResponsesAPIResponse fields
- Add test_update_state_with_all_responses_api_fields to verify all fields
- Add test_update_state_preserves_existing_fields to verify partial updates

Committed-By-Agent: cursor
2025-12-04 14:15:06 -08:00
Xianzong Xie
9a0a37fffa feat: extract all ResponsesAPIResponse fields from response.completed
- Add support for all ResponsesAPIResponse fields in update_state
- Extract model, instructions, temperature, top_p, max_output_tokens,
  previous_response_id, text, truncation, parallel_tool_calls, user,
  store, and incomplete_details from response.completed event
- Pass all fields to final update_state call

Committed-By-Agent: cursor
2025-12-04 14:11:13 -08:00
Xianzong Xie
1c3c12bb1b refactor: move background_streaming_task to separate module
- Create new background_streaming.py in response_polling/
- Update endpoints.py to import from new location
- Update __init__.py to export background_streaming_task
- Add tests for module imports and structure

Committed-By-Agent: cursor
2025-12-03 22:50:26 -08:00
Xianzong Xie
c464af4c15 chore: add noqa for PLR0915 in _background_streaming_task
Committed-By-Agent: cursor
2025-12-03 21:57:56 -08:00
Xianzong Xie
2c252c9e92 chore: remove unused asyncio import from polling_handler
Committed-By-Agent: cursor
2025-12-03 21:42:02 -08:00
Xianzong Xie
901252fb78 chore: remove unused imports and variables
- Remove unused typing imports (Any, Dict)
- Remove unused output_index variable
- Fix comment to reflect actual key structure (item_id, content_index)

Committed-By-Agent: cursor
2025-12-03 21:39:49 -08:00
Xianzong Xie
540f14ef51 feat: improve polling via cache feature
- Add 150ms batched updates instead of per-event updates for better performance
- Handle response.output_text.delta events for text accumulation
- Add response.in_progress event handling for status updates
- Add response.completed event handling with reasoning, tools, tool_choice
- Remove unused output_item parameter from update_state
- Remove response.done event type (not valid in OpenAI spec)
- Remove documentation files
- Add comprehensive unit tests for ResponsePollingHandler

Committed-By-Agent: cursor
2025-12-03 18:37:28 -08:00
Xianzong Xie
fc30b92167 add polling via cache feature 2025-12-03 18:37:28 -08:00
yuneng-jiang
e29acb2f64
Merge pull request #16850 from BerriAI/litellm_user_info_404
[Fix] Return 404 when a user is not found on /user/info
2025-12-03 17:15:55 -08:00
yuneng-jiang
224c012e14
Merge pull request #17383 from BerriAI/litellm_vertex_api_base
[Fix] Change labeling around Vertex Fields
2025-12-03 17:14:14 -08:00
yuneng-jiang
73824c278a
Merge pull request #17443 from BerriAI/litellm_v2_login
[Feature] New Login Page
2025-12-03 16:23:47 -08:00
yuneng-jiang
c5670839b6
Merge pull request #17399 from BerriAI/litellm_ui_config_add_sso
[Feature] Add auto_redirect_to_sso to UI Config
2025-12-03 15:59:06 -08:00
yuneng-jiang
37c598441f Change is_sso_configured to auto_redirect_to_sso 2025-12-03 15:48:50 -08:00
yuneng-jiang
8a1cf104e0 Merge remote-tracking branch 'origin' into litellm_ui_config_add_sso 2025-12-03 15:36:33 -08:00
yuneng-jiang
ee63105e16
Merge pull request #17446 from BerriAI/litellm_ui_e2e_cicd_fix
[Fix] Change e2e test to look for Virtual Keys instead of API Keys
2025-12-03 15:35:22 -08:00
yuneng-jiang
de4b79851f Change e2e test to look for Virtual Keys instead of API Keys 2025-12-03 15:26:25 -08:00
dependabot[bot]
462d423d86
Bump mcp from 1.10.1 to 1.23.0 in /.circleci (#17363)
Bumps [mcp](https://github.com/modelcontextprotocol/python-sdk) from 1.10.1 to 1.23.0.
- [Release notes](https://github.com/modelcontextprotocol/python-sdk/releases)
- [Changelog](https://github.com/modelcontextprotocol/python-sdk/blob/main/RELEASE.md)
- [Commits](https://github.com/modelcontextprotocol/python-sdk/compare/v1.10.1...v1.23.0)

---
updated-dependencies:
- dependency-name: mcp
  dependency-version: 1.23.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-03 15:19:34 -08:00
yuneng-jiang
43da0793d3 Fixed typo 2025-12-03 15:13:19 -08:00
yuneng-jiang
b14b4a7112 New login screen using v2/login 2025-12-03 15:05:29 -08:00
Ishaan Jaff
100cfc11ac
[Bug Fix] Parallel Request Limiter with /messages (#17426)
* fix: use standard_logging_object for parallel request limiter

* fix test parallel request limtier
2025-12-03 14:13:28 -08:00
Ishaan Jaffer
9b3d8302cf docs fix stable 2025-12-03 14:12:50 -08:00
yuneng-jiang
5f43e7a2d2 New login page WIP 2025-12-03 13:18:33 -08:00
yuneng-jiang
9bb292f478 V2 login route 2025-12-03 12:41:45 -08:00
yuneng-jiang
8aa939dd67
Merge pull request #17317 from BerriAI/litellm_ui_cred_refresh
[Feature] Delete Credential Enhancements
2025-12-03 12:20:55 -08:00
yuneng-jiang
857614d586
Merge pull request #17436 from BerriAI/litellm_ui_model_page_scrollbars
[Fix] Remove second scrollbar when sidebar is expanded + tooltip z index
2025-12-03 12:20:00 -08:00
yuneng-jiang
9783f0ff6c Remove second scrollbar when sidebar is expanded + tooltip z index 2025-12-03 12:14:48 -08:00
Alexsander Hamir
56328e6535
[Refactor#2] litellm/init – Lazy-load utils to reduce memory + import time (#17171)
* fix: lazy load utils.py imports

Lazy-load most functions and response types from utils.py to avoid loading
tiktoken and other heavy dependencies at import time. This significantly
reduces memory usage when importing completion from litellm.
2025-12-03 11:40:16 -08:00
yuneng-jiang
dcb7552b79
Merge pull request #17379 from BerriAI/litellm_login_route_refactor
[Refactor] /login route
2025-12-03 11:32:16 -08:00
Felipe Garé
82a8134d7a
fixing optional parameter default value (#17434) 2025-12-03 11:24:32 -08:00
yuneng-jiang
8df8a7ef95 Merge remote-tracking branch 'origin' into litellm_ui_cred_refresh 2025-12-03 11:04:09 -08:00
yuneng-jiang
457840afed Merge remote-tracking branch 'origin' into litellm_user_info_404 2025-12-03 11:02:23 -08:00
yuneng-jiang
e6620fcdad Ruff checks 2025-12-03 11:01:10 -08:00
Felipe Garé
5ecebe2a57
adding status parameter as optinal for FileObject (#17431) 2025-12-03 11:00:18 -08:00
Alexsander Hamir
0a7602bb7c
fix: prevent memory leak in aiohttp connection pooling (#17388)
* fix: prevent memory leak in aiohttp connection pooling

Add connection limits to aiohttp TCPConnector to prevent unbounded
connection growth that causes memory leaks. Without these limits,
aiohttp's _wrap_create_connection can accumulate connections
indefinitely in long-running processes.

Changes:
- Set default limit of 300 total connections and 50 per host
- Apply limits to shared proxy session initialization
- Apply limits to HTTP handler transport creation
- Configurable via AIOHTTP_CONNECTOR_LIMIT and
  AIOHTTP_CONNECTOR_LIMIT_PER_HOST environment variables
- Set to 0 for unlimited (not recommended for production)

This fix covers:
- All standard LLM provider API calls (OpenAI, Anthropic, etc.)
- Proxy server shared session
- Most guardrail HTTP calls

Impact: Prevents memory exhaustion in high-traffic deployments and
long-running proxy servers that make thousands of API calls.

Testing: Verified connection limits are applied correctly and
existing functionality remains unchanged.
2025-12-03 10:43:27 -08:00
yuneng-jiang
b3c0ea5414 Merge remote-tracking branch 'origin' into litellm_login_route_refactor 2025-12-03 10:40:11 -08:00
Cesar Garcia
5e791464af
docs: add Microsoft Agent Lightning to projects (#17422)
Add Agent Lightning, Microsoft's open-source framework for training
AI agents with RL, APO, and SFT. Uses LiteLLM Proxy for LLM routing
and trace collection.
2025-12-03 09:07:02 -08:00
Krrish Dholakia
be5dd234bf docs: fix list 2025-12-03 08:01:26 -08:00
Sameer Kankute
ece1e49fda
Merge pull request #17414 from BerriAI/litellm_ragflow_vector_store
Add vector store support for ragflow
2025-12-03 20:48:52 +05:30
Sameer Kankute
fcc2855baa
Merge pull request #17403 from BerriAI/litellm_streaming_gemini_3_fix
Fix gemini 3 last chunk thinking block
2025-12-03 20:48:13 +05:30
Sameer Kankute
7967da77c0
Merge pull request #17419 from BerriAI/litellm_fix_bedrock_models_model_map
Fix bedrock models in model map
2025-12-03 20:45:45 +05:30
Sameer Kankute
7e9c1ffb33
Merge pull request #17407 from BerriAI/litellm_enforce_enforce_user_param
Enforce support of enforce_user_param to openai post endpoints
2025-12-03 20:45:21 +05:30
Sameer Kankute
1fbe310444
Merge pull request #17405 from BerriAI/litellm_gemini_thought_sig_tool_beta
Make thought sign in tool call id as a beta feat
2025-12-03 20:43:53 +05:30
Sameer Kankute
c9c7823f43 Fix bedrock models in model map 2025-12-03 17:31:20 +05:30
Sameer Kankute
dad0b2c111 Fix unused imports 2025-12-03 15:32:42 +05:30
Sameer Kankute
8eaabb4ad7 Add vector store support for ragflow 2025-12-03 15:29:47 +05:30
Sameer Kankute
52090c3f3e
Merge pull request #17350 from BerriAI/litellm_rag_chat_completion_api
Add ragflow support for chat completions API
2025-12-03 13:29:32 +05:30
Krish Dholakia
8edcc4ecc3
Guardrails API - add streaming support (#17400)
* fix(initial-commit): adding a way to get the right response type based on the api route

* feat(unified_guardrail.py): support streaming guardrails

* test: update tests

* fix: fix linting errors

* test: update tests
2025-12-02 22:52:09 -08:00
Krish Dholakia
74ba18df55
Litellm chainguard fixes 12 02 2025 p1 (#17406)
* build: update dockerfile non root

* build: update build

* build: update non root

* build: dockerfile fixes

* build: ensure dockerfile + dockerfile.database also work
2025-12-02 22:50:13 -08:00