diff --git a/app/constant.ts b/app/constant.ts index 7c66a932b..4d943d2ca 100644 --- a/app/constant.ts +++ b/app/constant.ts @@ -173,6 +173,16 @@ export const OpenaiPath = { ListModelPath: "v1/models", }; +export const Azure = { + ChatPath: (deployName: string, apiVersion: string) => { + return "chat/completions"; + }, + // https://.openai.azure.com/openai/deployments//images/generations?api-version= + ImagePath: (deployName: string, apiVersion: string) => + `deployments/${deployName}/images/generations?api-version=${apiVersion}`, + ExampleEndpoint: "https://{resource-url}", +}; +/* export const Azure = { ChatPath: (deployName: string, apiVersion: string) => { // Check if it's an AI Foundation endpoint @@ -186,7 +196,6 @@ export const Azure = { `deployments/${deployName}/images/generations?api-version=${apiVersion}`, ExampleEndpoint: "https://{resource-url}", }; -/* export const Azure = { ChatPath: (deployName: string, apiVersion: string) => `deployments/${deployName}/chat/completions?api-version=${apiVersion}`,