mirror of
https://github.com/chathub-dev/chathub.git
synced 2025-09-26 20:31:18 +08:00
Update azure openai api verion. (#1340)
This is needed to run o1 and o3 mini model.
This commit is contained in:
@@ -13,7 +13,7 @@ export class ChatGPTAzureApiBot extends AbstractChatGPTApiBot {
|
||||
}
|
||||
|
||||
async fetchCompletionApi(messages: ChatMessage[], signal?: AbortSignal) {
|
||||
const endpoint = `https://${this.config.azureOpenAIApiInstanceName}.openai.azure.com/openai/deployments/${this.config.azureOpenAIApiDeploymentName}/chat/completions?api-version=2023-03-15-preview`
|
||||
const endpoint = `https://${this.config.azureOpenAIApiInstanceName}.openai.azure.com/openai/deployments/${this.config.azureOpenAIApiDeploymentName}/chat/completions?api-version=2025-01-01-preview`
|
||||
return fetch(endpoint, {
|
||||
method: 'POST',
|
||||
signal,
|
||||
|
Reference in New Issue
Block a user