Skip to content

Commit

Permalink
Switched order of AzureAsyncOpenAI to AsyncAzureOpenAI
Browse files Browse the repository at this point in the history
Switched order of AzureAsyncOpenAI to AsyncAzureOpenAI

to match name in repo 

https://github.com/openai/openai-python/blob/main/src/openai/lib/azure.py
  • Loading branch information
gfade authored and rlouf committed Apr 11, 2024
1 parent ae9ae50 commit 366ea1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions outlines/models/openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ def azure_openai(
):
try:
import tiktoken
from openai import AzureAsyncOpenAI
from openai import AsyncAzureOpenAI
except ImportError:
raise ImportError(
"The `openai` and `tiktoken` libraries needs to be installed in order to use Outlines' Azure OpenAI integration."
Expand All @@ -458,7 +458,7 @@ def azure_openai(
if config is None:
config = OpenAIConfig(model=deployment_name)

client = AzureAsyncOpenAI(
client = AsyncAzureOpenAI(
azure_endpoint=azure_endpoint, api_version=api_version, api_key=api_key
)
tokenizer = tiktoken.encoding_for_model(deployment_name)
Expand Down

0 comments on commit 366ea1b

Please sign in to comment.