mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-09-27 21:56:38 +08:00
Update constant.ts
This commit is contained in:
parent
37ff8924d1
commit
8d29eb7c63
@ -174,7 +174,13 @@ export const OpenaiPath = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const Azure = {
|
export const Azure = {
|
||||||
ChatPath: (deployName: string, apiVersion: string) =>
|
ChatPath: (deployName: string, apiVersion: string) => {
|
||||||
|
// Check if it's an AI Foundation endpoint
|
||||||
|
if (deployName.includes(".models.ai.azure.com")) {
|
||||||
|
return "chat/completions";
|
||||||
|
}
|
||||||
|
return `deployments/${deployName}/chat/completions?api-version=${apiVersion}`;
|
||||||
|
},
|
||||||
``,
|
``,
|
||||||
// https://<your_resource_name>.openai.azure.com/openai/deployments/<your_deployment_name>/images/generations?api-version=<api_version>
|
// https://<your_resource_name>.openai.azure.com/openai/deployments/<your_deployment_name>/images/generations?api-version=<api_version>
|
||||||
ImagePath: (deployName: string, apiVersion: string) =>
|
ImagePath: (deployName: string, apiVersion: string) =>
|
||||||
|
Loading…
Reference in New Issue
Block a user