Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into disable-azure-oai-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ekzhu committed Oct 1, 2024
2 parents b9d3e8c + 43b0d59 commit 1aeee61
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions autogen/oai/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,6 @@ class OpenAIClient:

def __init__(self, client: Union[OpenAI, AzureOpenAI]):
self._oai_client = client
if not isinstance(client, openai.AzureOpenAI) and str(client.base_url).startswith(OPEN_API_BASE_URL_PREFIX):
logger.warning(
"The API key specified is not a valid OpenAI format; it won't work with the OpenAI-hosted model."
)

def message_retrieval(
self, response: Union[ChatCompletion, Completion]
Expand Down

0 comments on commit 1aeee61

Please sign in to comment.