Commit Graph

26383 Commits

Author SHA1 Message Date
Krish Dholakia
ff930dc6df
Merge branch 'main' into litellm_dev_10_10_2025_p2 2025-10-11 13:03:16 -07:00
Krish Dholakia
228db6fd6b
Merge pull request #15441 from BerriAI/litellm_dev_10_10_2025_p3
GPT-5 return reasoning content via `/chat/completions` + GPT-5-Codex working on Claude Code
2025-10-11 13:02:29 -07:00
Krish Dholakia
07ba5c1ea9
Merge branch 'main' into litellm_dev_10_10_2025_p3 2025-10-11 12:58:53 -07:00
Krish Dholakia
88000d09bf
Merge pull request #15454 from BerriAI/litellm_ui_qa_10_11_2025
docs: cleanup docs + build ui
2025-10-11 12:54:37 -07:00
Ishaan Jaffer
8292b27073 docs fix 2025-10-11 12:15:30 -07:00
Ishaan Jaff
d45dfa899b
[Docs] v1.78.0-stable (#15452)
* docs fix

* docs fix
2025-10-11 12:12:41 -07:00
Ishaan Jaffer
b20199b28d test fix 2025-10-11 11:42:36 -07:00
Ishaan Jaffer
1b4bcdabfd fix test 2025-10-11 11:42:09 -07:00
Ishaan Jaffer
00c5008477 bump: version 1.77.7 → 1.78.0 2025-10-11 11:39:34 -07:00
Ishaan Jaffer
a4e0869077 fix scan 2025-10-11 11:38:43 -07:00
Ishaan Jaffer
b1c93c53a8 fix linting 2025-10-11 11:34:25 -07:00
Ishaan Jaffer
5f4b890dcd fixes 2025-10-11 11:32:00 -07:00
Ishaan Jaffer
97626f2d02 fix test 2025-10-11 11:30:19 -07:00
Ishaan Jaffer
ec12f55c21 fix transform_response_api_response 2025-10-11 11:18:19 -07:00
Ishaan Jaffer
826ebfae1c ui fix 2025-10-11 11:06:36 -07:00
Krrish Dholakia
c03c66266e docs: cleanup docs 2025-10-11 11:05:55 -07:00
Ishaan Jaffer
6cd19042c0 fix org endpoints 2025-10-11 10:58:50 -07:00
Ishaan Jaffer
7e738c8ac4 proxy_store_model_in_db_tests 2025-10-11 10:55:28 -07:00
Ishaan Jaffer
1bb3eabb91 fix MYPY lint 2025-10-11 10:53:20 -07:00
Ishaan Jaffer
ce6102d54f test_azure_responses_api_status_error 2025-10-11 10:41:15 -07:00
Ishaan Jaffer
86881a8fc1 test_azure_responses_api_status_error 2025-10-11 10:21:07 -07:00
Ishaan Jaffer
34579b640e fix sec san 2025-10-11 10:15:35 -07:00
Ishaan Jaffer
33a4676184 test fix 2025-10-11 10:05:22 -07:00
Ishaan Jaffer
b2747211c8 test install on python 3.8 2025-10-11 09:53:25 -07:00
Ishaan Jaffer
4b675ccab3 fix: _handle_raw_dict_response_item 2025-10-11 09:45:57 -07:00
Ishaan Jaffer
2bce4ab74d fix: sec scans 2025-10-11 09:34:48 -07:00
Ishaan Jaffer
732618f55f test_together_ai_embedding 2025-10-11 09:33:19 -07:00
Ishaan Jaffer
8c4ca82235 fix: postgresql auth_ui_unit_tests 2025-10-11 09:23:31 -07:00
Ishaan Jaffer
c467986b8b test_gemini_context_caching_with_ttl 2025-10-11 09:20:20 -07:00
Ishaan Jaffer
41953185bf fix litellm_proxy_unit_testing 2025-10-11 09:16:59 -07:00
Ishaan Jaffer
e7d5840cd2 CreateTagModal test 2025-10-11 09:08:05 -07:00
Ishaan Jaffer
2a0088261a fix posthog.py 2025-10-11 09:05:16 -07:00
Ishaan Jaffer
97f0daa22b fix: mypy linting 2025-10-11 09:02:42 -07:00
Ishaan Jaffer
8dc5960332 _base_validate_azure_environment 2025-10-11 08:59:19 -07:00
Ishaan Jaffer
a163bf9f51 test fix: MicrosoftSSOHandler 2025-10-11 08:55:23 -07:00
Ishaan Jaffer
3aa0f6ed72 test_generate_key_with_object_permission 2025-10-11 08:54:15 -07:00
Ishaan Jaffer
4d79280175 Gemma test fixes 2025-10-11 08:51:08 -07:00
Ishaan Jaffer
87719640eb test tag mgmt 2025-10-11 08:48:37 -07:00
Ishaan Jaffer
cf994860e2 new DB Build 2025-10-11 08:44:42 -07:00
Ishaan Jaffer
63d34cfe8f DB - add LiteLLM_TagTable 2025-10-11 08:43:34 -07:00
Ishaan Jaffer
698c0b219c test code QA checks 2025-10-11 08:41:56 -07:00
Sameer Kankute
138bdbb6d8
fix mapped tests 1 (#15445)
* fix mapped tests

* fix mapped tests
2025-10-11 08:33:08 -07:00
Ishaan Jaffer
9bde1c1a4c TestEnkryptAIGuardrailHooks 2025-10-10 19:59:41 -07:00
Ishaan Jaffer
8cb66168bc test fix 2025-10-10 19:57:17 -07:00
Ishaan Jaffer
5377b17bdd doc fix 2025-10-10 19:55:02 -07:00
Krrish Dholakia
4ad1b9c9e1 fix(litellm_responses_transformation/transformation.py): several fixes for chat completion to responses api bridge
Fix tool calling, prevent passing invalid stream options, prevent passing invalid user string (>64 char)

Allows gpt-5-codex to work on claude code
2025-10-10 19:52:01 -07:00
Alexsander Hamir
0374fe02f7
fix: prevent session leaks when recreating aiohttp sessions (#15443)
Closes old sessions before creating new ones to prevent accumulation. Replaces 'pass' placeholder with asyncio.create_task(old_session.close()) when sessions are recreated due to event loop changes.
2025-10-10 19:43:52 -07:00
Alexsander Hamir
5f5a7c917a
fix: handle closed aiohttp sessions with detection and retry (#15442)
Fixes RuntimeError "Session is closed" by:
- Checking session.closed before use and recreating if needed
- Catching RuntimeError during requests and retrying with new session
- Validating newly created sessions aren't already closed

Adds tests for both proactive detection and reactive retry scenarios.
2025-10-10 19:42:58 -07:00
Krrish Dholakia
fed1ba2891 feat(openai/): convert chat completion tool calls to responses api
enables gpt-5-codex to work on claude code

 Closes LIT-1088
2025-10-10 19:41:11 -07:00
Alexsander Hamir
2c9356c437
[Fix] - shared session parsing and usage issue (#15440)
* Fix: Add shared_session to all_litellm_params to prevent JSON serialization error

The shared_session parameter (aiohttp.ClientSession) was being passed through
to provider API calls, causing "Object of type ClientSession is not JSON
serializable" errors during embedding requests.

Added shared_session to the all_litellm_params list so it's properly filtered
out as a LiteLLM-internal parameter and not passed to the provider's API.

* Fix: Add shared_session support for embedding calls with connection pooling

The shared_session parameter was not being properly handled in embedding calls,
causing it to be passed through to provider API requests where it's not needed.

Changes:
- Added shared_session to all_litellm_params to filter it from provider API request body
- Extract shared_session in main embedding() function and pass it explicitly
- Updated OpenAI embedding handlers (embedding() and aembedding()) to accept shared_session
- Pass shared_session to _get_openai_client for HTTP client creation

This enables proper connection pooling for embedding requests when shared_session
is provided, improving performance for high-throughput scenarios.

* test: add regression test for shared_session in embedding calls

Add comprehensive test to prevent JSON serialization errors when using
shared_session.

The test verifies two critical aspects:
1. shared_session is in all_litellm_params to prevent "Object of type
   ClientSession is not JSON serializable" errors
2. shared_session flows through the complete call chain across 6 layers:
   - litellm.embedding()
   - OpenAI.embedding/aembedding()
   - _get_openai_client()
   - AsyncHTTPHandler.create_client()
   - _create_async_transport()
   - _create_aiohttp_transport()

Similar to test_acompletion_session_reuse_e2e.py but focused on
embedding endpoints. Uses inspect.getsource() to verify the parameter
is not only accepted but actually passed through each layer.
2025-10-10 19:26:53 -07:00