From 2c36f25ae129c7d4cd8df8aba14c4552fd0b50cd Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Fri, 20 Dec 2024 12:41:23 -0800 Subject: [PATCH] fix linting errors --- litellm/rerank_api/main.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/litellm/rerank_api/main.py b/litellm/rerank_api/main.py index 41ca98998c40..57a353adbe79 100644 --- a/litellm/rerank_api/main.py +++ b/litellm/rerank_api/main.py @@ -205,11 +205,9 @@ def rerank( # noqa: PLR0915 ) elif _custom_llm_provider == "infinity": # Implement Infinity rerank logic - api_key: Optional[str] = ( - dynamic_api_key or optional_params.api_key or litellm.api_key - ) + api_key = dynamic_api_key or optional_params.api_key or litellm.api_key - api_base: Optional[str] = ( + api_base = ( dynamic_api_base or optional_params.api_base or litellm.api_base