From 0c1104fbe04f59eda1661f837ac33ee6ced02b73 Mon Sep 17 00:00:00 2001 From: Henry Wang Date: Mon, 29 Sep 2025 22:42:09 +0800 Subject: [PATCH] fix(lint): Resolve F821 Undefined name errors in litellm/main.py --- litellm/main.py | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/litellm/main.py b/litellm/main.py index 40b19cf5ffa..37f9223afc0 100644 --- a/litellm/main.py +++ b/litellm/main.py @@ -5146,18 +5146,7 @@ async def aadapter_generate_content( GenerateContentToCompletionHandler, ) - custom_llm_provider_params = adapter.translate_generate_content_to_completion( - model=model, contents=contents, config=config, **kwargs - ) - - custom_llm_provider_params["stream"] = stream - - - if stream: - return adapter.translate_completion_output_params_streaming( - completion_stream=response - ) - return await handler.async_generate_content_handler(**kwargs, _is_async=True) + return await GenerateContentToCompletionHandler.async_generate_content_handler(**kwargs, _is_async=True) def adapter_completion(