Commit Graph
489 Commits
Author SHA1 Message Date
Byron GroganandGitHub 5a42be43e0 fix: add azure/o1-2024-12-17 to model_prices_and_context_window.json (#8371) 2025-02-07 16:22:33 -08:00
Nikolaiev DmytroandGitHub 346d8a9132 Update deepseek API prices for 2025-02-08 (#8363) 2025-02-07 08:25:35 -08:00
Ishaan Jaff 778bbcdd9c fix test_get_model_info_gemini 2025-02-06 21:05:47 -08:00
Ishaan Jaff d2fec8bf13 databricks/meta-llama-3.3-70b-instruct 2025-02-06 18:21:56 -08:00
Anton AbilovandGitHub fac1d2ccef Fixed meta llama 3.3 key for Databricks API (#8093)
See correct key reference here: https://docs.databricks.com/en/machine-learning/model-serving/foundation-model-overview.html#pay-per-token
2025-02-06 18:05:49 -08:00
Wanis ElabbarandGitHub 15ac5f3c32 Fix pricing for Gemini 2.0 Flash 001 (#8320)
Model 	Type 	Price 	Price with Batch API
Gemini 2.0 Flash
1M Input tokens 	$0.15 	$0.075
1M Input audio tokens 	$1.00 	$0.50
1M Output text tokens 	$0.60 	$0.30

https://cloud.google.com/vertex-ai/generative-ai/pricing#token-based-pricing
2025-02-06 16:17:29 -08:00
Luis SanchezandGitHub 1b4f0f7192 Add aistudio GEMINI 2.0 to model_prices_and_context_window.json (#8335) 2025-02-06 16:16:54 -08:00
bcfa641b81 Add gemini-2.0-flash pricing + model info (#8303)
* add gemini-2.0-flash-001 (#8289)

* build(model_prices_and_context_window.json): add gemini-2.0-flash-001 to model cost map

Adds new gemini model with token based pricing to model cost map

---------

Co-authored-by: kushagro <kush@orby.ai>
2025-02-05 20:49:26 -08:00
Ishaan JaffandGitHub 818792228c (Refactor) - migrate bedrock invoke to BaseLLMHTTPHandler class (#8290)
* initial transform for invoke

* invoke transform_response

* working - able to make request

* working get_complete_url

* working - invoke now runs on llm_http_handler

* fix unused imports

* track litellm overhead ms

* working stream request

* sign_request transform

* sign_request update

* use has_async_custom_stream_wrapper property

* use get_async_custom_stream_wrapper in base llm http handler

* fix make_call in invoke handler

* fix invoke with streaming get_async_custom_stream_wrapper

* working bedrock async streaming with invoke

* fix make call handler for bedrock

* test_all_model_configs

* fix test_bedrock_custom_prompt_template

* sync streaming for bedrock invoke

* fix _add_stream_param_to_request_body

* test_async_text_completion_bedrock

* fix transform_request

* fix get_supported_openai_params

* fix test supports tool choice

* fix test_supports_tool_choice

* add unit test coverage for bedrock invoke transform

* fix location of transformation files

* update import loc

* fix bedrock invoke unit tests

* fix import for max completion tokens
2025-02-05 18:58:55 -08:00
Ishaan Jaff b76b380bc8 fix add back sambanova/Qwen2.5-72B-Instruct 2025-02-05 18:44:17 -08:00
Ishaan JaffandGitHub ffd890e744 add assembly ai cost tracking (#8298) 2025-02-05 18:43:37 -08:00
Ishaan JaffandGitHub 3a6349d871 (Feat) - Add support for structured output on bedrock/nova models + add util litellm.supports_tool_choice (#8264)
* fix supports_tool_choice

* TestBedrockNovaJson

* use supports_tool_choice

* fix supports_tool_choice

* add supports_tool_choice param

* script to add fields to model cost map

* test_supports_tool_choice

* test_supports_tool_choice

* fix supports tool choice check

* test_supports_tool_choice_simple_tests

* fix supports_tool_choice check

* fix supports_tool_choice bedrock

* test_supports_tool_choice

* test_supports_tool_choice

* fix bedrock/eu-west-3/mistral.mistral-large-2402-v1:0

* ci/cd run again

* test_supports_tool_choice_simple_tests

* TestGoogleAIStudioGemini temp - remove to run ci/cd

* test_aaalangfuse_logging_metadata

* TestGoogleAIStudioGemini

* test_check_provider_match

* remove add param to map
2025-02-04 21:47:16 -08:00
Ishaan JaffandGitHub b59b26f797 add supports_tool_choice (#8265) 2025-02-04 19:45:53 -08:00
Low Jian ShengandGitHub c494b2cb85 Add hyperbolic deepseek v3 model configurations (#8232)
* add hyperbolic deepseek configurations

* add deepseek-v3 support
2025-02-04 19:00:22 -08:00
Ishaan Jaff f66029470f add supports_response_schema 2025-02-04 16:59:24 -08:00
superpoussin22andGitHub 15b7fa3617 Update model_prices_and_context_window.json (#8256)
codestral id is changing from previous version 
this is now vertex_ai/codestral-2501

previous version are no more proposed in model garden
2025-02-04 14:23:58 -08:00
superpoussin22andGitHub 27e1e22a0f Update model_prices_and_context_window.json (#8249)
add vertex_ai/codestral@2501 and remove duplicate vertex_ai/codestral@2405
2025-02-04 10:09:14 -08:00
மனோஜ்குமார் பழனிச்சாமிandGitHub 6f11137d6f Fix max output tokens (#8207) 2025-02-03 07:27:37 -08:00
ЮрійandGitHub a37bfdb191 Added deprecation date for gemini-1.5 models (#8210) 2025-02-03 07:26:14 -08:00
Krrish Dholakia 10d3da7660 build: bump version 2025-02-02 23:05:22 -08:00
Wanis ElabbarandGitHub 3b9ba0251d Azure AI Foundry - Deepseek R1 (#8188)
Fixed Deepseek R1 on Azure AI Foundry
2025-02-02 21:54:53 -08:00
Tomas KlohnaandGitHub 08e40352e9 Add azure/deepseek-r1 to model_prices_and_content_window.json (#8177) 2025-02-01 11:28:21 -08:00
23f458d2da Improved O3 + Azure O3 support (#8181)
* fix: support azure o3 model family for fake streaming workaround (#8162)

* fix: support azure o3 model family for fake streaming workaround

* refactor: rename helper to is_o_series_model for clarity

* update function calling parameters for o3 models (#8178)

* refactor(o1_transformation.py): refactor o1 config to be o series config, expand o series model check to o3

ensures max_tokens is correctly translated for o3

* feat(openai/): refactor o1 files to be 'o_series' files

expands naming to cover o3

* fix(azure/chat/o1_handler.py): azure openai is an instance of openai - was causing resets

* test(test_azure_o_series.py): assert stream faked for azure o3 mini

Resolves https://github.com/BerriAI/litellm/pull/8162

* fix(o1_transformation.py): fix o1 transformation logic to handle explicit o1_series routing

* docs(azure.md): update doc with `o_series/` model name

---------

Co-authored-by: byrongrogan <47910641+byrongrogan@users.noreply.github.com>
Co-authored-by: Low Jian Sheng <15527690+lowjiansheng@users.noreply.github.com>
2025-02-01 09:52:28 -08:00
91ed05df29 Litellm dev contributor prs 01 31 2025 (#8168)
* Add O3-Mini for Azure and Remove Vision Support (#8161)

* Azure Released O3-mini at the same time as OAI, so i've added support here. Confirmed to work with Sweden Central.

* [FIX] replace cgi for python 3.13 with email.Message as suggested in PEP 594 (#8160)

* Update model_prices_and_context_window.json (#8120)

codestral2501 pricing on vertex_ai

* Fix/db view names (#8119)

* Fix to case sensitive DB Views name

* Fix to case sensitive DB View names

* Added quotes to check query as well

* Added quotes to create view query

* test: handle server error  for flaky test

vertex ai has unstable endpoints

---------

Co-authored-by: Wanis Elabbar <70503629+elabbarw@users.noreply.github.com>
Co-authored-by: Honghua Dong <dhh1995@163.com>
Co-authored-by: superpoussin22 <vincent.nadal@orange.fr>
Co-authored-by: Miguel Armenta <37154380+ma-armenta@users.noreply.github.com>
2025-02-01 09:05:20 -08:00
b8445436cd Adjust model pricing metadata (#8147)
* added cache_read_input_token_cost

* added input price for audio whisper

* fixed prices for google gemini-1.0-pro-vision

---------

Co-authored-by: yurii.izo <yurii.izo@justanswer.com>
2025-01-31 21:12:05 -08:00
Yigit KonurandGitHub ed53b82e5d Adding Azure OpenAI o3-mini costs & specs (#8166) 2025-01-31 21:05:18 -08:00
Krish DholakiaandGitHub 9f0f2b3f01 build: fix model cost map (#8153) 2025-01-31 13:30:06 -08:00
miraclebakelaserandGitHub 217776ed23 add groq/deepseek-r1-distill-llama-70b (#8078) 2025-01-30 11:13:00 -08:00
Marco AleixoandGitHub aa9591cb41 adding new model (#8089) 2025-01-30 11:09:28 -08:00
a57fad1e29 Litellm dev 01 29 2025 p1 (#8097)
* Added deprecation date to model_prices_and_context_window.json (#8061)

* build(model_prices_and_context_window.json): add xai model pricing

---------

Co-authored-by: Юрій <yurikizio@gmail.com>
2025-01-29 19:50:40 -08:00
Krish DholakiaandGitHub 9c20c69915 Fix bedrock model pricing + add unit test using bedrock pricing api (#7978)
* test(test_completion_cost.py): add unit testing to ensure all bedrock models with region name have cost tracked

* feat: initial script to get bedrock pricing from amazon api

ensures bedrock pricing is accurate

* build(model_prices_and_context_window.json): correct bedrock model prices based on api check

ensures accurate bedrock pricing

* ci(config.yml): add bedrock pricing check to ci/cd

ensures litellm always maintains up-to-date pricing for bedrock models

* ci(config.yml): add beautiful soup to ci/cd

* test: bump groq model

* test: fix test
2025-01-28 17:57:49 -08:00
paul-gauthierandGitHub 3a4f5b23b5 add openrouter/deepseek/deepseek-r1 (#8038) 2025-01-27 16:37:26 -08:00
Krish DholakiaandGitHub 1ab10d8f72 Litellm dev 01 24 2025 p4 (#7992)
* feat(team_endpoints.py): new `/teams/available` endpoint - allows proxy admin to expose available teams for users to join on UI

* build(ui/): available_teams.tsx

allow user to join available teams on UI

makes it easier to onboard new users to teams

* fix(navbar.tsx): cleanup title

* fix(team_endpoints.py): fix linting error

* test: update groq model in test

* build(model_prices_and_context_window.json): update groq 3.3 model with 'supports function calling'
2025-01-24 21:29:37 -08:00
Ishaan JaffandGitHub cefbada875 add deepseek-reasoner (#7935) 2025-01-22 21:26:52 -08:00
Rafael AcostaandGitHub 05f476d8c7 feat: add new together_ai models (#7882) 2025-01-20 14:16:04 -08:00
Ishaan Jaff f8ea318849 add us.amazon.nova-lite-v1:0 to model cost map 2025-01-20 07:36:12 -08:00
Marty SullivanandGitHub d6e85f7936 add bedrock stability to model_prices_and_context_window.json (#7869) 2025-01-19 15:00:54 -08:00
Krish DholakiaandGitHub 71c41f8f33 QA: ensure all bedrock regional models have same supported_ as base + Anthropic nested pydantic object support (#7844)
* build: ensure all regional bedrock models have same supported values as base bedrock model

prevents drift

* test(base_llm_unit_tests.py): add testing for nested pydantic objects

* fix(test_utils.py): add test_get_potential_model_names

* fix(anthropic/chat/transformation.py): support nested pydantic objects

Fixes https://github.com/BerriAI/litellm/issues/7755
2025-01-17 19:49:12 -08:00
Ishaan Jaff de41abeace llama-v3p1-8b-instruct 2025-01-16 21:34:42 -08:00
Krish DholakiaandGitHub 80d6bbec29 Litellm dev 01 14 2025 p2 (#7772)
* feat(pass_through_endpoints.py): fix anthropic end user cost tracking

* fix(anthropic/chat/transformation.py): use returned provider model for anthropic

handles anthropic `-latest` tag in request body throwing cost calculation errors

ensures we can be accurate in our model cost tracking

* feat(model_prices_and_context_window.json): add gemini-2.0-flash-thinking-exp pricing

* test: update test to use assumption that user_api_key_dict can get anthropic user id

* test: fix test

* fix: fix test

* fix(anthropic_pass_through.py): uncomment previous anthropic end-user cost tracking code block

can't guarantee user api key dict always has end user id - too many code paths

* fix(user_api_key_auth.py): this allows end user id from request body to always be read and set in auth object

* fix(auth_check.py): fix linting error

* test: fix auth check

* fix(auth_utils.py): fix get end user id to handle metadata = None
2025-01-15 21:34:50 -08:00
ec5a354eac add azure o1 pricing (#7715)
* build(model_prices_and_context_window.json): add azure o1 pricing

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

* refactor: replace regex with string method for whitespace check in stop-sequences handling (#7713)

* Allows overriding keep_alive time in ollama (#7079)

* Allows overriding keep_alive time in ollama

* Also adds to ollama_chat

* Adds some info on the docs about this parameter

* fix: together ai warning (#7688)

Co-authored-by: Carl Senze <carl.senze@aleph-alpha.com>

* fix(proxy_server.py): handle config containing thread locked objects when using get_config_state

* fix(proxy_server.py): add exception to debug

* build(model_prices_and_context_window.json): update 'supports_vision' for azure o1

---------

Co-authored-by: Wolfram Ravenwolf <52386626+WolframRavenwolf@users.noreply.github.com>
Co-authored-by: Regis David Souza Mesquita <github@rdsm.dev>
Co-authored-by: Carl <45709281+capsenz@users.noreply.github.com>
Co-authored-by: Carl Senze <carl.senze@aleph-alpha.com>
2025-01-12 18:15:35 -08:00
Krrish Dholakia 3193cb3912 build(model_prices_and_context_window.json): omni-moderation-latest-intents 2025-01-08 19:06:04 -08:00
Krish DholakiaandGitHub 4af23353d6 Allow assigning teams to org on UI + OpenAI omni-moderation cost model tracking (#7566)
* feat(cost_calculator.py): add cost tracking ($0) for openai moderations endpoint

removes sentry cost tracking errors caused by this

* build(teams.tsx): allow assigning teams to orgs
2025-01-08 16:58:21 -08:00
Krish DholakiaandGitHub b397dc1497 Litellm dev 01 06 2025 p3 (#7596)
* build(model_prices_and_context_window.json): add gemini-1.5-pro 'supports_vision' = true

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

* build(model_prices_and_context_window.json): add new mistral models pricing + model info
2025-01-06 20:44:04 -08:00
fzowlandGitHub c22d9208da Refresh VoyageAI models, prices and context (#7472)
* Refresh VoyageAI models and prices and context

* Refresh VoyageAI models and prices and context

* Refresh VoyageAI models and prices and context
2025-01-06 20:38:01 -08:00
minpeterandGitHub f7931b659b FriendliAI: Documentation Updates (#7517)
* docs(friendliai.md): update FriendliAI documentation and model details

* docs(friendliai.md): remove unused imports for cleaner documentation

* feat: add support for parallel function calling, system messages, and response schema in model configuration
2025-01-04 22:44:24 -08:00
Fredy ÁlvarezandGitHub 2b0738ecc4 add fireworks_ai/accounts/fireworks/models/deepseek-v3 (#7567) 2025-01-04 22:43:09 -08:00
Ishaan JaffandGitHub e804a1850e add cohere/command-r7b-12-2024 (#7553) 2025-01-04 11:21:04 -08:00
மனோஜ்குமார் பழனிச்சாமிandGitHub 4c6a1e6c9c Add missing prefix for deepseek (#7508)
Solves https://github.com/All-Hands-AI/OpenHands/issues/5978
2025-01-03 14:42:18 -08:00
David ManouchehriandGitHub 24589c49af Bump anthropic.claude-3-5-haiku-20241022-v1:0 to new limits. (#7118) 2025-01-03 11:37:38 -08:00