Skip to content

Commit

Permalink
Merge pull request anse-app#142 from vikas5914/patch-1
Browse files Browse the repository at this point in the history
Update Azure OpenAI API version
  • Loading branch information
ddiu8081 committed Mar 8, 2024
2 parents f216c92 + 1bcffe2 commit f89efb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/providers/azure/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const fetchChatCompletion = async(payload: AzureFetchPayload) => {
body: JSON.stringify({ ...body }),
signal,
}
return fetch(`${baseUrl}/openai/deployments/${model}/chat/completions?api-version=2023-12-01-preview`, initOptions)
return fetch(`${baseUrl}/openai/deployments/${model}/chat/completions?api-version=2024-02-15-preview`, initOptions)
}

export const fetchImageGeneration = async(payload: AzureFetchPayload) => {
Expand All @@ -24,5 +24,5 @@ export const fetchImageGeneration = async(payload: AzureFetchPayload) => {
method: 'POST',
body: JSON.stringify(body),
}
return fetch(`${baseUrl}.openai.azure.com/openai/images/generations:submit?api-version=2023-12-01-preview`, initOptions)
return fetch(`${baseUrl}.openai.azure.com/openai/images/generations:submit?api-version=2024-02-15-preview`, initOptions)
}

0 comments on commit f89efb1

Please sign in to comment.