Add deprecated alias for openai model clients (#4641)

Add alias for openai model clients
This commit is contained in:
Jack Gerrits 2024-12-10 11:03:42 -05:00 committed by GitHub
parent bfb8aeadcd
commit c234e77617
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,18 @@
from typing_extensions import deprecated
from .openai import AzureOpenAIChatCompletionClient as AzureOpenAIChatCompletionClientAlias
from .openai import OpenAIChatCompletionClient as OpenAIChatCompletionClientAlias
@deprecated(
"autogen_ext.models.OpenAIChatCompletionClient moved to autogen_ext.models.openai.OpenAIChatCompletionClient. This alias will be removed in 0.4.0."
)
class OpenAIChatCompletionClient(OpenAIChatCompletionClientAlias):
pass
@deprecated(
"autogen_ext.models.AzureOpenAIChatCompletionClient moved to autogen_ext.models.openai.AzureOpenAIChatCompletionClient. This alias will be removed in 0.4.0."
)
class AzureOpenAIChatCompletionClient(AzureOpenAIChatCompletionClientAlias):
pass