diff --git a/app/constant.ts b/app/constant.ts index 7c49e979d..4e3fb1c6f 100644 --- a/app/constant.ts +++ b/app/constant.ts @@ -173,29 +173,6 @@ 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 - if (deployName.includes(".models.ai.azure.com")) { - return "chat/completions"; - } - return `deployments/${deployName}/chat/completions?api-version=${apiVersion}`; - }, - // 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) => `deployments/${deployName}/chat/completions?api-version=${apiVersion}`, @@ -204,7 +181,6 @@ export const Azure = { `deployments/${deployName}/images/generations?api-version=${apiVersion}`, ExampleEndpoint: "https://{resource-url}/openai", }; -*/ export const Google = { ExampleEndpoint: "https://generativelanguage.googleapis.com/",