litellm-mirror/litellm/rerank_api
Krish Dholakia ff553fedf8
All checks were successful
Read Version from pyproject.toml / read-version (push) Successful in 14s
Add new gpt-4.5-preview model + other updates (#8879)
* fix(rerank): properly use LiteLLM api key when reranking through proxy (#8873)

`litellm.api_key` wasn't used as an option when calling the rerank API.
As a result, using rerank with custom_llm_provider="litellm_proxy" always
resulted in the following error:
Cohere API key is required. Please set 'COHERE_API_KEY' or 'CO_API_KEY' or 'litellm.cohere_key'

* feat(model_prices_and_context_window.json): add new gpt-4.5-preview model

---------

Co-authored-by: Enzo Aguado <enzo@aguado.me>
2025-02-27 15:27:14 -08:00
..
main.py Add new gpt-4.5-preview model + other updates (#8879) 2025-02-27 15:27:14 -08:00
rerank_utils.py Add cohere v2/rerank support (#8421) (#8605) 2025-02-22 22:25:29 -08:00