From 0e8062ce076bc3dce8455d31c05b49433c356293 Mon Sep 17 00:00:00 2001 From: Richard C Lim <61879224+richardclim@users.noreply.github.com> Date: Sun, 2 Feb 2025 17:41:10 -0500 Subject: [PATCH] Update constant.ts --- app/constant.ts | 24 ------------------------ 1 file changed, 24 deletions(-) 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/",