mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
fix(main.py): fix acompletion for anyscale, openrouter, deepinfra, perplexity endpoints
This commit is contained in:
parent
ba73224a3a
commit
78582e158a
3 changed files with 12 additions and 2 deletions
|
@ -165,6 +165,10 @@ async def acompletion(*args, **kwargs):
|
|||
if (custom_llm_provider == "openai"
|
||||
or custom_llm_provider == "azure"
|
||||
or custom_llm_provider == "custom_openai"
|
||||
or custom_llm_provider == "anyscale"
|
||||
or custom_llm_provider == "openrouter"
|
||||
or custom_llm_provider == "deepinfra"
|
||||
or custom_llm_provider == "perplexity"
|
||||
or custom_llm_provider == "text-completion-openai"
|
||||
or custom_llm_provider == "huggingface"): # currently implemented aiohttp calls for just azure and openai, soon all.
|
||||
if kwargs.get("stream", False):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue