-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
base: main
Are you sure you want to change the base?
Conversation
.. code-block:: bash | ||
pip install 'autogen-ext[openai,azure]==0.4.0.dev6' |
There was a problem hiding this comment.
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`. |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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
Resolves #4174