Skip to content

Commit

Permalink
Add deprecated alias for openai model clients (#4641)
Browse files Browse the repository at this point in the history
Add alias for openai model clients
  • Loading branch information
jackgerrits authored Dec 10, 2024
1 parent bfb8aea commit c234e77
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions python/packages/autogen-ext/src/autogen_ext/models/__init__.py
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit c234e77

Please sign in to comment.