Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add warnings for deprecated azure oai config changes #4317

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jackgerrits
Copy link
Member

Related #4316

@raimondasl
Copy link
Contributor

Looks good to me.

@@ -86,10 +86,29 @@ def _azure_openai_client_from_config(config: Mapping[str, Any]) -> AsyncAzureOpe
# Take a copy
copied_config = dict(config).copy()

import warnings
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In AzureOpenAIChatCompletionClient constructor model argument is still checked:

        if "model" not in kwargs:
            raise ValueError("model is required for OpenAIChatCompletionClient")

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We also need to update the API documentation by changing the example in the doc string.

Copy link
Collaborator

@ekzhu ekzhu Nov 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to update usage of AzureOpenAIChatCompletionClient in the documentation to change model to azure_deployment. Can be do a separate PR after creating an issue for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants