Commit Graph
21255 Commits
Author SHA1 Message Date
Ishaan Jaff df4593d58b test prom unit tests 2025-04-04 21:30:05 -07:00
Ishaan Jaff f402e9bbd1 _get_exception_class_name 2025-04-04 21:23:21 -07:00
Ishaan Jaff c402db9057 prometheus emit llm provider on failure metric 2025-04-04 17:07:43 -07:00
Ishaan Jaff 5c2bc796b1 test fix test_hf_chat_template 2025-04-04 16:45:20 -07:00
Krish DholakiaandGitHub e1f7bcb47d Fix VertexAI Credential Caching issue (#9756)
* refactor(vertex_llm_base.py): Prevent credential misrouting for projects

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

* fix: passing unit tests

* fix(vertex_llm_base.py): common auth logic across sync + async vertex ai calls

prevents credential caching issue across both flows

* test: fix test

* fix(vertex_llm_base.py): handle project id in default cause

* fix(factory.py): don't pass cache control if not set

bedrock invoke does not support this

* test: fix test

* fix(vertex_llm_base.py): add .exception message in load_auth

* fix: fix ruff error
2025-04-04 16:38:08 -07:00
Ishaan JaffandGitHub cdd351a03b Merge pull request #9745 from BerriAI/litellm_sso_fixes_dev
[Feat] Allow assigning SSO users to teams on MSFT SSO
2025-04-04 15:40:19 -07:00
Ishaan Jaff 888446256c fix vertex failing test 2025-04-04 15:37:48 -07:00
Ishaan Jaff 12b3923579 update circle ci requirements 2025-04-04 14:45:14 -07:00
Ishaan Jaff cba1dacc7d ui new build 2025-04-04 14:39:55 -07:00
Krrish Dholakia ad90871ad6 fix(factory.py): don't pass cache control if not set
bedrock invoke does not support this
2025-04-04 12:37:34 -07:00
Ishaan JaffandGitHub e67d16d5bd Merge pull request #9748 from BerriAI/litellm_ui_allow_testing_image_endpoints
[Feat] UI - Test Key v2 page - allow testing image endpoints + polish the page
2025-04-03 22:39:45 -07:00
Ishaan Jaff c8468b71c8 fix linting ui 2025-04-03 22:32:56 -07:00
Ishaan Jaff f6c2b86903 fix typo 2025-04-03 22:21:11 -07:00
Adrian LyjakandGitHub d640bc0a00 fix #8425, passthrough kwargs during acompletion, and unwrap extra_body for openrouter (#9747) 2025-04-03 22:19:40 -07:00
Ishaan Jaff 0745f306c7 test_microsoft_sso_handler_with_empty_response 2025-04-03 22:17:06 -07:00
Ishaan Jaff 984114adf0 fix sso callback 2025-04-03 22:13:46 -07:00
Krrish Dholakia bdad9961e3 docs: cleanup 2025-04-03 22:12:51 -07:00
Krrish Dholakia abea69352a docs(document_understanding.md): Fix https://github.com/BerriAI/litellm/issues/9704 2025-04-03 22:12:31 -07:00
Ishaan Jaff d55d37ad99 ui new chat ui endpoints 2025-04-03 22:11:04 -07:00
Ishaan Jaff e91dc1e00f refactor chat playground 2025-04-03 21:57:05 -07:00
Ishaan Jaff 353c882574 clean up endpoint selector 2025-04-03 21:33:39 -07:00
Ishaan Jaff 72d7b26811 fix allow selecting endpoint on test key page 2025-04-03 21:00:42 -07:00
Ishaan Jaff f1bc99a137 MSFT make it easier for using group ids with MSFT v1.65.3.dev5 2025-04-03 20:43:22 -07:00
Albert ÖrwallandGitHub bd5a8d582b Fix prompt caching for Anthropic tool calls (#9706)
* Add prompt cache support to Anhtropic tool calls

* Fix linting issue and add test
2025-04-03 20:19:21 -07:00
Ishaan Jaff add24d5999 debug show SSO callback result 2025-04-03 20:06:21 -07:00
Ishaan Jaff 747894864c use litellm mapping 2025-04-03 20:05:11 -07:00
Krish DholakiaandGitHub cb4a9d1365 UI Improvements + Fixes - remove 'default key' on user signup + fix showing user models available for personal key creation (#9741)
* fix(create_user_button.tsx): don't auto create key on user signup

prevents unknown key from being created whenever user signs up

* fix(top_key_view.tsx): show key hash on hover for new usage tab

* fix(create_key_button.tsx): fix showing user models they have access to during personal key creatio
2025-04-03 20:00:45 -07:00
Ishaan Jaff b361329e07 use 1 file for fetch model options 2025-04-03 19:27:44 -07:00
Ishaan Jaff 6ffe3f1e46 working image generation on chat ui 2025-04-03 14:43:56 -07:00
Ishaan Jaff e44318c605 refactor to have 1 folder for llm api calls 2025-04-03 14:32:20 -07:00
Ishaan Jaff ef6bf02ac4 test_nova_optional_params_tool_choice v1.65.3-nightly 2025-04-03 12:27:21 -07:00
sajdaandGitHub 4a4328b5bb fix:Gemini Flash 2.0 implementation is not returning the logprobs (#9713)
* fix:Gemini Flash 2.0 implementation is not returning the logprobs

* fix: linting error by adding a helper method called _process_candidates
2025-04-03 11:53:41 -07:00
Krish DholakiaandGitHub 6dda1ba6dd LiteLLM Minor Fixes & Improvements (04/02/2025) (#9725)
* Add date picker to usage tab + Add reasoning_content token tracking across all providers on streaming (#9722)

* feat(new_usage.tsx): add date picker for new usage tab

allow user to look back on their usage data

* feat(anthropic/chat/transformation.py): report reasoning tokens in completion token details

allows usage tracking on how many reasoning tokens are actually being used

* feat(streaming_chunk_builder.py): return reasoning_tokens in anthropic/openai streaming response

allows tracking reasoning_token usage across providers

* Fix update team metadata + fix bulk adding models on Ui  (#9721)

* fix(handle_add_model_submit.tsx): fix bulk adding models

* fix(team_info.tsx): fix team metadata update

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

* (v0) Unified file id - allow calling multiple providers with same file id (#9718)

* feat(files_endpoints.py): initial commit adding 'target_model_names' support

allow developer to specify all the models they want to call with the file

* feat(files_endpoints.py): return unified files endpoint

* test(test_files_endpoints.py): add validation test - if invalid purpose submitted

* feat: more updates

* feat: initial working commit of unified file id translation

* fix: additional fixes

* fix(router.py): remove model replace logic in jsonl on acreate_file

enables file upload to work for chat completion requests as well

* fix(files_endpoints.py): remove whitespace around model name

* fix(azure/handler.py): return acreate_file with correct response type

* fix: fix linting errors

* test: fix mock test to run on github actions

* fix: fix ruff errors

* fix: fix file too large error

* fix(utils.py): remove redundant var

* test: modify test to work on github actions

* test: update tests

* test: more debug logs to understand ci/cd issue

* test: fix test for respx

* test: skip mock respx test

fails on ci/cd - not clear why

* fix: fix ruff check

* fix: fix test

* fix(model_connection_test.tsx): fix linting error

* test: update unit tests
2025-04-03 11:48:52 -07:00
fengjiajieandGitHub 5a18eebdb6 Fix: Use request body in curl log for Gemini streaming mode (#9736) 2025-04-03 09:45:27 -07:00
Ishaan Jaff e0dbd328be test_bedrock_nova_json.py 2025-04-03 08:37:59 -07:00
Ishaan Jaff 44b34299a8 docs db deadlocks 2025-04-02 23:14:55 -07:00
Ishaan Jaff 82b8eb79c2 doc update 2025-04-02 23:11:22 -07:00
Tobias HermannandGitHub 5785600c4e [Feat] Add VertexAI gemini-2.0-flash (#9723) 2025-04-02 22:33:23 -07:00
Ishaan Jaff 1cd0b73417 bump: version 1.65.2 → 1.65.3 2025-04-02 21:59:01 -07:00
Ishaan Jaff afcd00bdc0 test_redis_caching_llm_caching_ttl 2025-04-02 21:54:35 -07:00
Ishaan Jaff 8a1023fa2d test image gen fix in build and test 2025-04-02 21:33:24 -07:00
Krish DholakiaandGitHub 8ee32291e0 Squashed commit of the following: (#9709)
commit b12a9892b750f6f838b1049110626261732c8804
Author: Krrish Dholakia <krrishdholakia@gmail.com>
Date:   Wed Apr 2 08:09:56 2025 -0700

    fix(utils.py): don't modify openai_token_counter

commit 294de3180391f4bb36dcf3ffdd80a0cd387003eb
Author: Krrish Dholakia <krrishdholakia@gmail.com>
Date:   Mon Mar 24 21:22:40 2025 -0700

    fix: fix linting error

commit cb6e9fbe402dacfde36d9d28f872483818ac1f12
Author: Krrish Dholakia <krrishdholakia@gmail.com>
Date:   Mon Mar 24 19:52:45 2025 -0700

    refactor: complete migration

commit bfc159172dbfffcd9fee47153c554a59cc2758c7
Author: Krrish Dholakia <krrishdholakia@gmail.com>
Date:   Mon Mar 24 19:09:59 2025 -0700

    refactor: refactor more constants

commit 43ffb6a5583cc3da927042c158ff543af552d2ac
Author: Krrish Dholakia <krrishdholakia@gmail.com>
Date:   Mon Mar 24 18:45:24 2025 -0700

    fix: test

commit 04dbe4310cd588c326194e8e36a0a31cdf0e61fc
Author: Krrish Dholakia <krrishdholakia@gmail.com>
Date:   Mon Mar 24 18:28:58 2025 -0700

    refactor: refactor: move more constants into constants.py

commit 3c26284affeffcec6dd904fdb7ecd3a3d5724660
Author: Krrish Dholakia <krrishdholakia@gmail.com>
Date:   Mon Mar 24 18:14:46 2025 -0700

    refactor: migrate hardcoded constants out of __init__.py

commit c11e0de69d13f6a97ffed5733cf6008fcdd8e0ee
Author: Krrish Dholakia <krrishdholakia@gmail.com>
Date:   Mon Mar 24 18:11:21 2025 -0700

    build: migrate all constants into constants.py

commit 7882bdc787b21e8e0b1800dd5c1180bbe808d228
Author: Krrish Dholakia <krrishdholakia@gmail.com>
Date:   Mon Mar 24 18:07:37 2025 -0700

    build: initial test banning hardcoded numbers in repo
2025-04-02 21:24:54 -07:00
Ishaan JaffandGitHub 5a722ef18f Merge pull request #9715 from BerriAI/litellm_refactor_pod_lock_manager
[Reliability Fix] - Use Redis for PodLock Manager instead of PG (ensures no deadlocks occur)
2025-04-02 21:15:02 -07:00
Ishaan Jaff 0155b9f212 Merge branch 'main' into litellm_refactor_pod_lock_manager 2025-04-02 21:05:18 -07:00
Ishaan Jaff 20d84ddef1 get_base_image_generation_call_args 2025-04-02 21:04:06 -07:00
Ishaan JaffandGitHub da97fefc1f Merge pull request #9694 from BerriAI/litellm_fix_azure_o_series
[Bug fix] Azure o-series tool calling
2025-04-02 20:59:00 -07:00
Ishaan JaffandGitHub acf920a41a Merge branch 'main' into litellm_fix_azure_o_series 2025-04-02 20:58:52 -07:00
Ishaan JaffandGitHub 3eb6c1f2f7 Merge pull request #9708 from BerriAI/dependabot/npm_and_yarn/docs/my-website/image-size-1.2.1
Bump image-size from 1.1.1 to 1.2.1 in /docs/my-website
2025-04-02 20:58:16 -07:00
Ishaan Jaff c3341a1e18 test fixes - azure deprecated dall-e-2 2025-04-02 20:56:20 -07:00
Ishaan Jaff 74550df197 get_base_image_generation_call_args 2025-04-02 20:52:16 -07:00