From 257eb32e01bcc5c2ee1f7e4ee12383aef8fcaead Mon Sep 17 00:00:00 2001 From: Richard C Lim <61879224+richardclim@users.noreply.github.com> Date: Fri, 31 Jan 2025 02:32:45 -0500 Subject: [PATCH] Update constant.ts --- app/constant.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/app/constant.ts b/app/constant.ts index 14c8c78e5..dfdfeb42b 100644 --- a/app/constant.ts +++ b/app/constant.ts @@ -173,6 +173,15 @@ export const OpenaiPath = { ListModelPath: "v1/models", }; +export const Azure = { + ChatPath: (deployName: string) => + `chat/completions`, + // https://.openai.azure.com/openai/deployments//images/generations?api-version= + ImagePath: (deployName: string) => + `deployments/${deployName}/images/generations`, + ExampleEndpoint: "https://{resource-url}", +}; +/* export const Azure = { ChatPath: (deployName: string, apiVersion: string) => `deployments/${deployName}/chat/completions?api-version=${apiVersion}`, @@ -180,7 +189,8 @@ export const Azure = { ImagePath: (deployName: string, apiVersion: string) => `deployments/${deployName}/images/generations?api-version=${apiVersion}`, ExampleEndpoint: "https://{resource-url}/openai", -}; +}; +*/ export const Google = { ExampleEndpoint: "https://generativelanguage.googleapis.com/",