Skip to content

Commit

Permalink
Merge pull request #789 from PrathamSoni/psoni2002/fix_async
Browse files Browse the repository at this point in the history
add custom open ai models to asyncio call
  • Loading branch information
ishaan-jaff authored Nov 10, 2023
2 parents 86f9bb0 + 2f37baa commit 8f10d1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion litellm/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ async def acompletion(*args, **kwargs):
_, custom_llm_provider, _, _ = get_llm_provider(model=model, api_base=kwargs.get("api_base", None))


if (custom_llm_provider == "openai" or custom_llm_provider == "azure"): # currently implemented aiohttp calls for just azure and openai, soon all.
if (custom_llm_provider == "openai" or custom_llm_provider == "azure" or custom_llm_provider == "custom_openai"): # currently implemented aiohttp calls for just azure and openai, soon all.
if kwargs.get("stream", False):
response = completion(*args, **kwargs)
else:
Expand Down

0 comments on commit 8f10d1a

Please sign in to comment.