-
Notifications
You must be signed in to change notification settings - Fork 197
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
exposed AzureOpenAI provider #698
Conversation
I guess I should create docs for this too. I'll work on that. |
Thanks @epinzur ! |
@@ -366,26 +366,25 @@ class AzureOpenAI(OpenAI): | |||
Has the same functionality as OpenAI out of the box feedback functions. | |||
""" | |||
|
|||
def __init__(self, endpoint=None, deployment_name="gpt-35-turbo", **kwargs): | |||
def __init__(self, deployment_name: str, endpoint=None, **kwargs): |
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 dropped the default here since model deployment names in Azure can be anything. I can deploy gpt-3.5-turbo
as open-ai
.
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.
Is there a typical default that we can still use?
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 don't think so. There are no models deployed by default. You need to pick and choose which to deploy and choose the name at deployment time. The deployment name often doesn't match the model name due to Azure naming restrictions.
I've tested this locally by copying the AzureOpenAI class into my notebook. |
* exposed AzureOpenAI provider * added docs * Update CONTRIBUTING.md * typo in mkdocs.yml --------- Co-authored-by: Josh Reini <[email protected]>
* exposed AzureOpenAI provider * added docs * Update CONTRIBUTING.md * typo in mkdocs.yml --------- Co-authored-by: Josh Reini <[email protected]>
Exposed the AzureOpenAI provider so I can use it to power feedback functions.