Skip to content

Commit

Permalink
Remove API key warning (#3589)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackgerrits authored Oct 1, 2024
1 parent d31a2e4 commit 43b0d59
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 43b0d59

Please sign in to comment.