Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

fix(lint): Resolve F821 Undefined name errors in litellm/main.py

Henry Wang0c1104fbe04f
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(