chathub icon indicating copy to clipboard operation
chathub copied to clipboard

Support latest Azure OpenAI models

Open hui2000ji opened this issue 1 year ago • 2 comments
trafficstars

Currently, ChatHub does not support GPT4-1106-preview and other latest Azure OpenAI models. I tried to use valid API keys for a GPT4-1106-preview deployment, but the model keeps saying that its knowledge cutoff is Sept 2021.

This commit contains modifications that switches the Azure OpenAI Completion API to the latest version. It also changes the name and the system message of the bot to match the GPT4-1106-preview version.

However, it is not suitable for directly merging yet. As Azure OpenAI now supports multiple models, it would be best if users can customize the model version and the system message.

hui2000ji avatar Jan 02 '24 14:01 hui2000ji

Check your default "system" prompt, this is what tells it its model cutoff. You can change it in the extension's settings. The actual underlying model may be fine - check your OpenAI usage and billing page what are you getting billed for.

DmitriyAlergant avatar Feb 21 '24 01:02 DmitriyAlergant

I am not billed by OpenAI. I am billed by Azure for using its Azure OpenAI Studio service.

This pull request mainly says that the current Azure API in ChatHub (api-version=2023-03-15-preview) is deprecated and needs an update. The latest version is 2024-02-15-preview, and the 2023-03-15-preview currently used by ChatHub will be retired after April 2, 2024.

Source: https://learn.microsoft.com/en-us/azure/ai-services/openai/reference

hui2000ji avatar Feb 21 '24 04:02 hui2000ji