Skip to content

Commit

Permalink
add custom open ai models to asyncio call
Browse files Browse the repository at this point in the history
  • Loading branch information
PrathamSoni authored Nov 10, 2023
1 parent 86f9bb0 commit 2f37baa
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 2f37baa

Please sign in to comment.