From d065ce0519399b94f2d3b638fbbdea4bbab4534b Mon Sep 17 00:00:00 2001 From: Richard C Lim <61879224+richardclim@users.noreply.github.com> Date: Fri, 31 Jan 2025 02:36:20 -0500 Subject: [PATCH] Update constant.ts --- app/constant.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/constant.ts b/app/constant.ts index dfdfeb42b..1ce0c3a3d 100644 --- a/app/constant.ts +++ b/app/constant.ts @@ -174,11 +174,11 @@ export const OpenaiPath = { }; export const Azure = { - ChatPath: (deployName: string) => + ChatPath: (deployName: string, apiVersion: string) => `chat/completions`, // https://.openai.azure.com/openai/deployments//images/generations?api-version= - ImagePath: (deployName: string) => - `deployments/${deployName}/images/generations`, + ImagePath: (deployName: string, apiVersion: string) => + `deployments/${deployName}/images/generations?api-version=${apiVersion}`, ExampleEndpoint: "https://{resource-url}", }; /*