Update constant.ts

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

View File

@ -173,6 +173,15 @@ export const OpenaiPath = {
ListModelPath: "v1/models", ListModelPath: "v1/models",
}; };
export const Azure = {
ChatPath: (deployName: 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`,
ExampleEndpoint: "https://{resource-url}",
};
/*
export const Azure = { export const Azure = {
ChatPath: (deployName: string, apiVersion: string) => ChatPath: (deployName: string, apiVersion: string) =>
`deployments/${deployName}/chat/completions?api-version=${apiVersion}`, `deployments/${deployName}/chat/completions?api-version=${apiVersion}`,
@ -181,6 +190,7 @@ export const Azure = {
`deployments/${deployName}/images/generations?api-version=${apiVersion}`, `deployments/${deployName}/images/generations?api-version=${apiVersion}`,
ExampleEndpoint: "https://{resource-url}/openai", ExampleEndpoint: "https://{resource-url}/openai",
}; };
*/
export const Google = { export const Google = {
ExampleEndpoint: "https://generativelanguage.googleapis.com/", ExampleEndpoint: "https://generativelanguage.googleapis.com/",