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

Azure OpenAI API fix for gpt-3.5-turbo-16k #383

Merged
merged 3 commits into from
Aug 5, 2023
Merged

Azure OpenAI API fix for gpt-3.5-turbo-16k #383

merged 3 commits into from
Aug 5, 2023

Conversation

Xtrah
Copy link
Contributor

@Xtrah Xtrah commented Jun 30, 2023

In addition to converting gpt-3.5-turbo, the code now also converts gpt-3.5-turbo-16k when using an Azure endpoint.

Changes include:

  1. Modified the getChatCompletion and getChatCompletionStream functions to handle a new model naming convention in Azure endpoints.
  2. The existing conversion of 'gpt-3.5-turbo' to 'gpt-35-turbo' for Azure endpoints has been preserved.
  3. Added support for a new model, specifically converting 'gpt-3.5-turbo-16k' to 'gpt-35-turbo-16k' when working with Azure endpoints.
  4. If the model provided in the configuration is not 'gpt-3.5-turbo' or 'gpt-3.5-turbo-16k', the model name will remain the same.

This update ensures compatibility with the latest Azure model naming conventions without affecting functionality with other endpoints or model names.

Signed-off-by: Xtrah <12988459+Xtrah@users.noreply.github.com>
@sondt2709
Copy link

i was happy to see this PR, but in my case the deployment name was not related to the model name, so i was hoping someone could add a field to enter the custom deployment name

@Xtrah
Copy link
Contributor Author

Xtrah commented Jul 3, 2023

i was happy to see this PR, but in my case the deployment name was not related to the model name, so i was hoping someone could add a field to enter the custom deployment name

Maybe that is worthy of its own issue? ☺️

@ztjhz ztjhz merged commit 3477321 into ztjhz:main Aug 5, 2023
chrstfer added a commit to chrstfer/BetterChatGPT that referenced this pull request Aug 6, 2023
Azure OpenAI API fix for gpt-3.5-turbo-16k (ztjhz#383)
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