mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-09-27 05:36:39 +08:00
Update constant.ts
This commit is contained in:
parent
7885ea7d9e
commit
0e8062ce07
@ -173,29 +173,6 @@ export const OpenaiPath = {
|
||||
ListModelPath: "v1/models",
|
||||
};
|
||||
|
||||
export const Azure = {
|
||||
ChatPath: (deployName: string, apiVersion: string) => {
|
||||
return `chat/completions`;
|
||||
},
|
||||
// https://<your_resource_name>.openai.azure.com/openai/deployments/<your_deployment_name>/images/generations?api-version=<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://<your_resource_name>.openai.azure.com/openai/deployments/<your_deployment_name>/images/generations?api-version=<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/",
|
||||
|
Loading…
Reference in New Issue
Block a user