Update constant.ts

This commit is contained in:
Richard C Lim 2025-01-31 02:36:20 -05:00 committed by GitHub
parent 257eb32e01
commit d065ce0519
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -174,11 +174,11 @@ export const OpenaiPath = {
};
export const Azure = {
ChatPath: (deployName: string) =>
ChatPath: (deployName: string, apiVersion: string) =>
`chat/completions`,
// https://<your_resource_name>.openai.azure.com/openai/deployments/<your_deployment_name>/images/generations?api-version=<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}",
};
/*