Commit Graph
19630 Commits
Author SHA1 Message Date
Ishaan Jaff 4c3d6df2f4 bump: version 1.61.17 → 1.61.18 2025-02-26 21:13:41 -08:00
Ishaan JaffandGitHub 6231052b18 [Bug]: Deepseek error on proxy after upgrading to 1.61.13-stable (#8860)
* fix deepseek error

* test_deepseek_provider_async_completion

* fix get_complete_url
2025-02-26 21:11:06 -08:00
Krish DholakiaandGitHub 3de4209569 fix caching on main branch (#8858)
* fix(streaming_handler.py): fix is delta empty check to handle empty str

* fix(streaming_handler.py): fix delta chunk on final response
2025-02-26 19:16:34 -08:00
Ishaan Jaff 4032838408 fix load tests on litellm release notes 2025-02-26 19:11:43 -08:00
Ishaan JaffandGitHub c07dd16d88 (UI + Backend) Fix Adding Azure, Azure AI Studio models on LiteLLM (#8856)
* fix Azure_AI_Studio

* fix flow for adding custom model names

* fix _should_use_api_key_header

* handle custom model name change

* test_azure_ai_request_format

* Azure AI Foundry (Studio)

* fix _should_use_api_key_header
2025-02-26 18:45:02 -08:00
Krrish Dholakia 6c669734a6 fix(converse_transformation.py): fix 'thinking' param check for claude-3-7 on bedrock 2025-02-26 16:28:50 -08:00
Manuel CañeteandGitHub 7b65809139 feat: enhance migrations job with additional configurable properties (#8636) 2025-02-26 16:08:17 -08:00
Minh DucandGitHub 371f32b0d4 Mark Claude Haiku 3.5 as vision-capable (#8840) 2025-02-26 16:06:03 -08:00
Krish DholakiaandGitHub ab7c4d1a0e Litellm dev bedrock anthropic 3 7 v2 (#8843)
* feat(bedrock/converse/transformation.py): support claude-3-7-sonnet reasoning_Content transformation

Closes https://github.com/BerriAI/litellm/issues/8777

* fix(bedrock/): support returning `reasoning_content` on streaming for claude-3-7

Resolves https://github.com/BerriAI/litellm/issues/8777

* feat(bedrock/): unify converse reasoning content blocks for consistency across anthropic and bedrock

* fix(anthropic/chat/transformation.py): handle deepseek-style 'reasoning_content' extraction within transformation.py

simpler logic

* feat(bedrock/): fix streaming to return blocks in consistent format

* fix: fix linting error

* test: fix test

* feat(factory.py): fix bedrock thinking block translation on tool calling

allows passing the thinking blocks back to bedrock for tool calling

* fix(types/utils.py): don't exclude provider_specific_fields on model dump

ensures consistent responses

* fix: fix linting errors

* fix(convert_dict_to_response.py): pass reasoning_content on root

* fix: test

* fix(streaming_handler.py): add helper util for setting model id

* fix(streaming_handler.py): fix setting model id on model response stream chunk

* fix(streaming_handler.py): fix linting error

* fix(streaming_handler.py): fix linting error

* fix(types/utils.py): add provider_specific_fields to model stream response

* fix(streaming_handler.py): copy provider specific fields and add them to the root of the streaming response

* fix(streaming_handler.py): fix check

* fix: fix test

* fix(types/utils.py): ensure messages content is always openai compatible

* fix(types/utils.py): fix delta object to always be openai compatible

only introduce new params if variable exists

* test: fix bedrock nova tests

* test: skip flaky test

* test: skip flaky test in ci/cd
2025-02-26 16:05:33 -08:00
Ashwin MadavanandGitHub 40a3af7d61 chore: set ttlSecondsAfterFinished on the migration job in the litellm-helm chart (#8593)
* chore: add ttlSecondsAfterFinished to values.yaml

* chore: set ttlSecondsAfterFinished on the job

* chore: bump version in Chart.yaml
2025-02-26 14:21:37 -08:00
Krish DholakiaandGitHub 017c482d7b fix(o_series_transformation.py): fix optional param check for o-serie… (#8787)
* fix(o_series_transformation.py): fix optional param check for o-series models

o3-mini and o-1 do not support parallel tool calling

* fix(utils.py): support 'drop_params' for 'thinking' param across models

allows switching to older claude versions (or non-anthropic models) and param to be safely dropped

* fix: fix passing thinking param in optional params

allows dropping thinking_param where not applicable

* test: update old model

* fix(utils.py): fix linting errors

* fix(main.py): add param to acompletion
2025-02-26 12:26:55 -08:00
aabb5c0df4 fix(get_litellm_params.py): handle no-log being passed in via kwargs (#8830)
* fix(get_litellm_params.py): handle no-log being passed in via kwargs

Fixes https://github.com/BerriAI/litellm/issues/8380

* fix(main.py): fix openai message for assistant msg if role is missing - openai allows this

Fixes https://github.com/BerriAI/litellm/issues/8661

* fix: fix utils

* fix: fix file name

* (UI) - Create Key flow for existing users (#8844)

* working create user button

* working create user for a key flow

* allow searching users

* working create user + key

* use clear sections on create key

* better search for users

* fix create key

* ui fix create key button - make it neater / cleaner

* ui fix all keys table

* ui new build

* test_prompt_caching

* test_aprompt_caching

* test_prompt_caching

* test_prompt_caching

---------

Co-authored-by: Ishaan Jaff <ishaanjaffer0324@gmail.com>
2025-02-26 09:39:47 -08:00
Krrish Dholakia fcf4ea3608 build: merge squashed commit
Squashed commit of the following:

commit 6678e15381389e976a7554fcdf5913035cf66ece
Author: Ishaan Jaff <ishaanjaffer0324@gmail.com>
Date:   Wed Feb 26 09:29:15 2025 -0800

    test_prompt_caching

commit bd86e0ac47d1f7980d11e8522b9dbf1535c9f42f
Author: Ishaan Jaff <ishaanjaffer0324@gmail.com>
Date:   Wed Feb 26 08:57:16 2025 -0800

    test_prompt_caching

commit 2fc21ad51ede374cc8d46296e4b808981c54f712
Author: Ishaan Jaff <ishaanjaffer0324@gmail.com>
Date:   Wed Feb 26 08:13:45 2025 -0800

    test_aprompt_caching

commit d94cff55ff686f1ae82f452f33c6a041d785dcb3
Author: Ishaan Jaff <ishaanjaffer0324@gmail.com>
Date:   Wed Feb 26 08:13:12 2025 -0800

    test_prompt_caching

commit 49c5e7811e55d06ca875ca163786fe0123e7ddf6
Author: Ishaan Jaff <ishaanjaffer0324@gmail.com>
Date:   Wed Feb 26 07:43:53 2025 -0800

    ui new build

commit cb8d5e59174e2000b7cfd5574c1843d273e5e238
Author: Ishaan Jaff <ishaanjaffer0324@gmail.com>
Date:   Wed Feb 26 07:38:56 2025 -0800

    (UI) - Create Key flow for existing users (#8844)

    * working create user button

    * working create user for a key flow

    * allow searching users

    * working create user + key

    * use clear sections on create key

    * better search for users

    * fix create key

    * ui fix create key button - make it neater / cleaner

    * ui fix all keys table

commit 335ba304674d5e15090adbb68d70efe5680ceaff
Author: Krrish Dholakia <krrishdholakia@gmail.com>
Date:   Wed Feb 26 08:53:17 2025 -0800

    fix: fix file name

commit b8c5b31a4e51a1a33665e9ad248e469a5e49780c
Author: Krrish Dholakia <krrishdholakia@gmail.com>
Date:   Tue Feb 25 22:54:46 2025 -0800

    fix: fix utils

commit ac6e503461b038d85ef1cfa29ae15e29d6b189c1
Author: Krrish Dholakia <krrishdholakia@gmail.com>
Date:   Mon Feb 24 10:43:31 2025 -0800

    fix(main.py): fix openai message for assistant msg if role is missing - openai allows this

    Fixes https://github.com/BerriAI/litellm/issues/8661

commit de3989dbc5ad3141b76a57f3cc2dc4b7630cf76f
Author: Krrish Dholakia <krrishdholakia@gmail.com>
Date:   Mon Feb 24 21:19:25 2025 -0800

    fix(get_litellm_params.py): handle no-log being passed in via kwargs

    Fixes https://github.com/BerriAI/litellm/issues/8380
2025-02-26 09:39:27 -08:00
Ishaan Jaff da1fd9b25f test_prompt_caching v1.61.17-nightly 2025-02-26 09:29:15 -08:00
Ishaan Jaff 4858417283 test_prompt_caching 2025-02-26 08:57:16 -08:00
Ishaan Jaff 2cf66f8267 test_aprompt_caching 2025-02-26 08:13:45 -08:00
Ishaan Jaff 56b2576979 test_prompt_caching 2025-02-26 08:13:12 -08:00
Ishaan Jaff 54f4e35a58 ui new build 2025-02-26 07:43:53 -08:00
Ishaan JaffandGitHub e224496895 (UI) - Create Key flow for existing users (#8844)
* working create user button

* working create user for a key flow

* allow searching users

* working create user + key

* use clear sections on create key

* better search for users

* fix create key

* ui fix create key button - make it neater / cleaner

* ui fix all keys table
2025-02-26 07:38:56 -08:00
fengjiajieandGitHub 07c0d26e68 Adding openrouter claude-3.7-sonnet (#8826) 2025-02-25 22:36:07 -08:00
Ishaan Jaff fe3a13ecf9 fix pass through tests vertex 2025-02-25 20:21:16 -08:00
Ishaan Jaff 89b5eeb345 fix test internal users 2025-02-25 20:13:38 -08:00
Ishaan Jaff 64c98341a2 fix ui pagination users tab 2025-02-25 20:11:46 -08:00
Ishaan Jaff 14d94dca12 ui new build 2025-02-25 20:03:03 -08:00
Ishaan Jaff 555067e207 test fix deprecated gemini-1.0-pro on vertex 2025-02-25 20:00:04 -08:00
Ishaan JaffandGitHub 7021f2f244 (Bug fix) dd-trace used by default on litellm proxy (#8817)
* fix _should_use_dd_tracer

* fix _should_use_dd_tracer

* _should_use_dd_tracer

* _should_use_dd_tracer

* _should_use_dd_tracer

* _init_dd_tracer

* _should_use_dd_tracer

* fix should use dd-tracer

* fix dd tracer
2025-02-25 19:54:22 -08:00
Ishaan JaffGitHubCopilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
81039d8faf (Bug fix) - allow using Assistants GET, DELETE on /openai pass through routes (#8818)
* test_openai_assistants_e2e_operations

* test openai assistants pass through

* fix GET request on pass through handler

* _make_non_streaming_http_request

* _is_assistants_api_request

* test_openai_assistants_e2e_operations

* test_openai_assistants_e2e_operations

* openai_proxy_route

* docs openai pass through

* docs openai pass through

* docs openai pass through

* test pass through handler

* Potential fix for code scanning alert no. 2240: Incomplete URL substring sanitization

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

---------

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2025-02-25 19:19:00 -08:00
Ishaan Jaff bca6e37c24 fix _get_docker_run_command_stable_release 2025-02-25 19:11:30 -08:00
Ishaan JaffandGitHub f9cee4c46b (Bug Fix) Using LiteLLM Python SDK with model=litellm_proxy/ for embedding, image_generation, transcription, speech, rerank (#8815)
* test_litellm_gateway_from_sdk

* fix embedding check for openai

* test litellm proxy provider

* fix image generation openai compatible models

* fix litellm.transcription

* test_litellm_gateway_from_sdk_rerank

* docs litellm python sdk

* docs litellm python sdk with proxy

* test_litellm_gateway_from_sdk_rerank

* ci/cd run again

* test_litellm_gateway_from_sdk_image_generation

* test_litellm_gateway_from_sdk_embedding

* test_litellm_gateway_from_sdk_embedding
2025-02-25 16:22:37 -08:00
ef22209a15 Adding Azure Phi-4 (#8808)
Co-authored-by: Emerson Gomes <emerson.gomes@thalesgroup.com>
2025-02-25 15:46:46 -08:00
Ishaan Jaff 70923f7d01 add hypercorn dep to circle ci 2025-02-25 15:21:14 -08:00
Krish DholakiaandGitHub b829475587 Litellm dev 02 25 2025 p1 (#8816)
* build(model_prices_and_context_window.json): add bedrock cross-region inferencing model information

Closes https://github.com/BerriAI/litellm/issues/8801#issuecomment-2683438528

* build(model_prices_and_context_window.json): add claude sonnet `-latest` models to model cost map

Closes https://github.com/BerriAI/litellm/discussions/8770#discussioncomment-12318880

* build(model_prices_and_context_window.json): add remaining anthropic `-latest` models to model cost map

Closes https://github.com/BerriAI/litellm/discussions/8770#discussioncomment-12318880

* test: update test with new model
2025-02-25 15:20:39 -08:00
Ishaan JaffandGitHub d963568970 (Bug fix) - running litellm proxy on wndows (#8735)
* fix running litellm on windows

* fix importing litellm

* _init_hypercorn_server

* linting fix

* TestProxyInitializationHelpers

* ci/cd run again

* ci/cd run again
2025-02-25 15:19:19 -08:00
Ishaan JaffandGitHub c0aec0cc5d (Bug fix) - reading /parsing request body when on hypercorn (#8734)
* _safe_get_request_parsed_body

* use scope on hypercorn

* test http parsing utils

* ci/cd run again
2025-02-25 15:18:04 -08:00
Ishaan JaffandGitHub f6fa2399cc (Router) - If allowed_fails or allowed_fail_policy set, use that for single deployment cooldown logic (#8668)
* fix cooldown 1 deployment

* test_single_deployment_cooldown_with_allowed_fail_policy

* fix docstring test

* test_single_deployment_no_cooldowns

* ci/cd run again

* test router cooldowns
2025-02-25 15:15:01 -08:00
fd9e62cbc8 fix vertex_ai claude 3.7 naming (#8807)
Co-authored-by: Emerson Gomes <emerson.gomes@thalesgroup.com>
2025-02-25 14:30:52 -08:00
Aditya GhadgeandGitHub 835df849b0 fix(UI): improve model name dispaly in model hub cards (#8749) 2025-02-25 11:04:47 -08:00
Daniele ScasciafratteandGitHub f18816e988 Icons on navbar profile dropdown (#8792) 2025-02-25 11:04:01 -08:00
Ishaan Jaff 55ae194912 test_user_email_metrics 2025-02-25 10:47:09 -08:00
Ishaan Jaff 1b2e3855cc test_update_user_unit_test 2025-02-25 10:46:33 -08:00
Krrish Dholakia de8497309b docs(anthropic.md): add claude-3-7-sonnet support 2025-02-25 00:06:30 -08:00
Ishaan Jaff e22c7d6fa3 bump: version 1.61.16 → 1.61.17 2025-02-24 23:53:32 -08:00
Ishaan Jaff e271f38356 ui new build 2025-02-24 23:51:00 -08:00
Ishaan JaffandGitHub 40f9f5e6d8 fix adding teams / orgs on litellm ui (#8776) 2025-02-24 23:42:27 -08:00
Ishaan JaffandGitHub 3ac0461d43 (UI) Allow adding MSFT SSO on UI (#8779)
* ui - allow adding SSO on ui

* add msft sso to ui

* sso on admin ui
2025-02-24 23:42:04 -08:00
73d73d1cb9 Litellm contributor prs 02 24 2025 (#8781)
* Adding VertexAI Claude 3.7 Sonnet (#8774)

Co-authored-by: Emerson Gomes <emerson.gomes@thalesgroup.com>

* build(model_prices_and_context_window.json): add anthropic 3-7 models on vertex ai and bedrock

* Support video_url (#8743)

* Support video_url

Support VLMs that works with video.
Example implemenation in vllm: https://github.com/vllm-project/vllm/pull/10020

* llms openai.py: Add ChatCompletionVideoObject

Add data structures to support `video_url` in chat completion

* test test_completion.py: add test for video_url

* Arize Phoenix - ensure correct endpoint/protocol are used; and default to phoenix cloud (#8750)

* minor fixes to default to http and to ensure that the correct endpoint is used

* Update test_arize_phoenix.py

* prioritize http over grpc

* update sentry_sdk to latest version (#8588)

* Add anthropic thinking + reasoning content support (#8778)

* feat(anthropic/chat/transformation.py): add anthropic thinking param support

* feat(anthropic/chat/transformation.py): support returning thinking content for anthropic on streaming responses

* feat(anthropic/chat/transformation.py): return list of thinking blocks (include block signature)

allows usage in tool call responses

* fix(types/utils.py): extract and map reasoning_content from anthropic as content str

* test: add testing to ensure thinking_blocks are returned at the root

* fix(anthropic/chat/handler.py): return thinking blocks on streaming - include signature

* feat(factory.py): handle anthropic thinking blocks translation if in assistant response

* test: handle openai internal instability

* test: handle openai audio instability

* ci: pin anthropic dep

* test: handle openai audio instability

* fix: fix linting error

* refactor(anthropic/chat/transformation.py): refactor function to remain <50 LOC

* fix: fix linting error

* fix: fix linting error

* fix: fix linting error

* fix: fix linting error

* test: handle index error

* bump: version 1.61.15 → 1.61.16

---------

Co-authored-by: Emerson Gomes <emerson.gomes@gmail.com>
Co-authored-by: Emerson Gomes <emerson.gomes@thalesgroup.com>
Co-authored-by: Pang Wu <104795337+pang-wu@users.noreply.github.com>
Co-authored-by: Nate Mar <67926244+nate-mar@users.noreply.github.com>
Co-authored-by: stephaneminisini <stephane.minisini@gmail.com>
2025-02-24 23:41:04 -08:00
Ishaan JaffandGitHub f8e43296fb (UI) Fixes for managing Internal Users (#8786)
* allow bulk adding internal users

* allow sorting users by created at

* cleanup

* clean up user table

* show total num users

* show per user error when bulk adding users

* fix - don't allow creating duplicate internal users in DB

* ui flow fix for bulk adding users

* allow adding user in multiple teams with models

* correctly extract info

* working invitation link

* fix fill in table after bulk add

* fix the results from creating new users in bulkd

* bulk invite users

* fix view user flow

* fix ui type errors

* fix type errors

* fix type errors
2025-02-24 23:40:13 -08:00
Krrish Dholakia 3a13d5419a bump: version 1.61.15 → 1.61.16 v1.61.16-nightly 2025-02-24 22:12:08 -08:00
Krrish Dholakia b7ec53aec1 test: handle index error 2025-02-24 22:11:08 -08:00
Krish DholakiaandGitHub 142b195784 Add anthropic thinking + reasoning content support (#8778)
* feat(anthropic/chat/transformation.py): add anthropic thinking param support

* feat(anthropic/chat/transformation.py): support returning thinking content for anthropic on streaming responses

* feat(anthropic/chat/transformation.py): return list of thinking blocks (include block signature)

allows usage in tool call responses

* fix(types/utils.py): extract and map reasoning_content from anthropic as content str

* test: add testing to ensure thinking_blocks are returned at the root

* fix(anthropic/chat/handler.py): return thinking blocks on streaming - include signature

* feat(factory.py): handle anthropic thinking blocks translation if in assistant response

* test: handle openai internal instability

* test: handle openai audio instability

* ci: pin anthropic dep

* test: handle openai audio instability

* fix: fix linting error

* refactor(anthropic/chat/transformation.py): refactor function to remain <50 LOC

* fix: fix linting error

* fix: fix linting error

* fix: fix linting error

* fix: fix linting error
2025-02-24 21:54:30 -08:00