mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-05 02:41:56 +00:00
fix(lint): Resolve F821 Undefined name errors in litellm/main.py
This commit is contained in:
parent
99a884019b
commit
0c1104fbe0
1 changed files with 1 additions and 12 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue