Henry Wang
cce05ac2b4
fix test issues from pr review
2025-09-30 16:44:15 +08:00
Henry Wang
d838c96ffb
fix test issues from pr review
2025-09-30 16:05:17 +08:00
Henry Wang
33218606b8
fix mypy check issues
2025-09-30 10:37:21 +08:00
Henry Wang
4e5db9476c
fix mypy type check issues
2025-09-29 23:11:49 +08:00
Henry Wang
0c1104fbe0
fix(lint): Resolve F821 Undefined name errors in litellm/main.py
2025-09-29 22:42:09 +08:00
Henry Wang
99a884019b
test(gemini): Add unit tests for Google GenAI adapter
...
This commit adds a comprehensive suite of unit tests for the Google GenAI adapter to ensure compliance with the project's contribution guidelines.
The new tests cover four main areas:
- Request parameter translation
- Streaming response handling
- Router methods for Google GenAI
- Proxy endpoints for Google GenAI
Additionally, this commit includes minor formatting and linting fixes identified during development.
2025-09-29 18:51:35 +08:00
Henry Wang
b46407fa76
feat(gemini): Add full support for native Gemini API translation
...
This commit implements a complete, end-to-end fix for the native Gemini API translation feature, allowing requests to be correctly routed to other model providers via `model_group_alias`.
The original implementation was broken, causing `systemInstruction` and `tools` to be dropped from requests. This was resolved by refactoring the Gemini endpoint to use a dedicated translation path, similar to the Anthropic adapter.
Additionally, this commit hardens the streaming response adapter to correctly handle tool calls generated by the newly-fixed request path. Key improvements to the response handling include:
- Replaced the fragile `id`-based tool call tracking with a robust `index`-based accumulation logic.
- Fixed a memory leak and improved logging in the stream finalization process.
- Prevented empty, non-compliant chunks from being sent to the client during tool call streaming.
- Optimized the accumulator to skip and log superfluous empty chunks sent by some models.
2025-09-28 21:01:31 +08:00
Ishaan Jaff
7052108d19
test_completion_azure
v1.77.5-nightly
v1.77.5.rc.1
2025-09-27 22:44:46 -07:00
Ishaan Jaff
32ed5ae2b9
test_completion_cost
2025-09-27 22:43:51 -07:00
Ishaan Jaffer
35c14f7178
Revert "Merge pull request #14821 from hazyone/fix-13380"
...
This reverts commit 37ea89eff0 , reversing
changes made to aede742db5 .
2025-09-27 18:52:59 -07:00
Ishaan Jaffer
0eedf1028f
mypy fix
2025-09-27 17:45:49 -07:00
Ishaan Jaffer
8819f4a9a5
ui new build
2025-09-27 17:38:38 -07:00
Ishaan Jaffer
fea6004b11
bump: version 1.77.4 → 1.77.5
2025-09-27 17:37:31 -07:00
Ishaan Jaffer
ce57f59531
test_gemini_pass_through_endpoint
2025-09-27 17:17:12 -07:00
Ishaan Jaffer
13b0e97759
ALLOWED_IDS_JSON sec scan
2025-09-27 17:15:28 -07:00
Ishaan Jaffer
9c9b71f62e
fix bedrock end of life img gen models
2025-09-27 17:02:48 -07:00
Ishaan Jaffer
0ec7dace79
test_embedding
2025-09-27 16:57:27 -07:00
Ishaan Jaffer
10a801ce83
docs fix
2025-09-27 16:52:02 -07:00
Krrish Dholakia
e73b631524
fix: fix runtime openid check
2025-09-27 16:48:51 -07:00
Krrish Dholakia
e2ce0aa692
fix: make .exception for detailed error log
2025-09-27 16:44:02 -07:00
Ishaan Jaff and GitHub
6299f07e54
[Draft] v1.77.5 Release note ( #14985 )
...
* docs draft
* docs fix
* docs
* docs fix
* doc fix
* docs
* docs fix
2025-09-27 16:33:58 -07:00
Krrish Dholakia
82948b9a1a
test: update test
2025-09-27 16:30:52 -07:00
Krrish Dholakia
da8b4b0718
fix: fix mypy errors
2025-09-27 16:05:45 -07:00
Krrish Dholakia
0560cb5cfe
fix(openai/image_edit/transformation.py): fix passing multiple images to openai
2025-09-27 16:03:17 -07:00
Ishaan Jaffer
0dd0c773e2
fix mypy typng
2025-09-27 15:46:10 -07:00
Ishaan Jaffer
60bda85ad1
fix mypy typng
2025-09-27 15:46:02 -07:00
Ishaan Jaffer
9569b98366
openai types
2025-09-27 15:43:08 -07:00
Ishaan Jaff and GitHub
66ca61c6e7
Revert "fix: remove blocking create_task ( #14980 )" ( #14984 )
...
This reverts commit 801044e8be .
2025-09-27 15:38:06 -07:00
Ishaan Jaffer
6d74f33043
test azure instruct
2025-09-27 15:01:25 -07:00
Ishaan Jaffer
a6ea8a5984
test_openai_stream_options_call
2025-09-27 15:01:25 -07:00
Ishaan Jaffer
5077e36f1b
test_completion_azure
2025-09-27 15:01:25 -07:00
Ishaan Jaffer
73c32c01a4
test_chat_azure_stream
2025-09-27 15:01:25 -07:00
Krish Dholakia and GitHub
a7470b3291
Merge pull request #14982 from BerriAI/litellm_ci_cd_linting_fixes_09_29_2025_p2
...
Litellm ci cd linting fixes 09 29 2025 p2
2025-09-27 14:41:39 -07:00
Ishaan Jaffer
1f24e92c53
decode_state_hash
2025-09-27 14:26:31 -07:00
Krrish Dholakia
4e283aa13b
fix: fix linting errors
2025-09-27 14:25:05 -07:00
Ishaan Jaffer
5d7694293f
fix passthru tests
2025-09-27 14:24:55 -07:00
Alexsander Hamir and GitHub
801044e8be
fix: remove blocking create_task ( #14980 )
...
* fix: remove blocking create_task
* fix: remove unused import
2025-09-27 14:21:33 -07:00
Krrish Dholakia
e644953c0f
fix: fix linting errors
2025-09-27 14:19:11 -07:00
Ishaan Jaffer
3c5e0abaf2
async_log_success_event
2025-09-27 14:17:13 -07:00
Krish Dholakia and GitHub
f9331ac43e
Merge branch 'main' into litellm_ci_cd_linting_fixes_09_29_2025_p2
2025-09-27 14:15:27 -07:00
Krrish Dholakia
77670fa419
fix: fix test
2025-09-27 14:14:40 -07:00
Krrish Dholakia
7d8135f01e
fix: fix linting errors
2025-09-27 14:05:27 -07:00
Ishaan Jaffer
b97e56252d
test_openai_azure_embedding_optional_arg
2025-09-27 14:03:23 -07:00
Krrish Dholakia
c9f29dd0c5
fix: fix linting errors
2025-09-27 14:02:27 -07:00
Ishaan Jaffer
0efb0e2990
test_completion_gemini
2025-09-27 14:00:01 -07:00
Ishaan Jaffer
cb2e63621b
test_aaparallel_function_call
2025-09-27 13:59:36 -07:00
Ishaan Jaffer
5d04625baa
test_aaaaazure_tenant_id_auth
2025-09-27 13:59:17 -07:00
Ishaan Jaffer
04cc292c3f
test_completion_base64
2025-09-27 13:58:54 -07:00
Ishaan Jaffer
8223586d1b
test_exception_bubbling_up
2025-09-27 13:58:31 -07:00
Ishaan Jaffer
0d786787e0
test_router_mock_request_with_mock_timeout_with_fallbacks
2025-09-27 13:57:43 -07:00