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 API docs for builtin clients #4232

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

Add API docs for builtin clients #4232

wants to merge 1 commit into from

Conversation

ekzhu
Copy link
Collaborator

@ekzhu ekzhu commented Nov 16, 2024

Resolves #4174

.. code-block:: bash
pip install 'autogen-ext[openai,azure]==0.4.0.dev6'
Copy link
Collaborator

Choose a reason for hiding this comment

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

We may want to omit the version in the docstring to avoid getting it outdated too soon.

model (str): The deployment ID for the Azure model. **Required for Azure models.**
api_version (str): The API version to use. **Required for Azure models.**
azure_ad_token (str): The Azure AD token to use. Provide either this or `azure_ad_token_provider`.
azure_ad_token_provider (AsyncAzureAdTokenProvider): The Azure AD token provider to use. Provide either this or `azure_ad_token`.
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think it is either azure_ad_token, azure_ad_token_provider or api_key

azure_ad_token (str): The Azure AD token to use. Provide either this or `azure_ad_token_provider`.
azure_ad_token_provider (AsyncAzureAdTokenProvider): The Azure AD token provider to use. Provide either this or `azure_ad_token`.
model_capabilities (ModelCapabilities): The capabilities of the model. **Required for Azure models.**
api_key (optional, str): The API key to use, use this if you are using key based authentication.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should also support an environment variable AZURE_OPENAI_API_KEY

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.

Documentation for ChatCompletionClients
2 participants