chathub
chathub copied to clipboard
Support latest Azure OpenAI models
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.
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.
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