mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-19 12:10:17 +09:00
feat: delete returned models in modals function of ClaudeApi instance
This commit is contained in:
parent
86b5c55855
commit
0fbb560e90
@ -189,8 +189,6 @@ export class ClaudeApi implements LLMApi {
|
|||||||
"anthropic-version": accessStore.anthropicApiVersion,
|
"anthropic-version": accessStore.anthropicApiVersion,
|
||||||
Authorization: getAuthKey(accessStore.anthropicApiKey),
|
Authorization: getAuthKey(accessStore.anthropicApiKey),
|
||||||
},
|
},
|
||||||
// mode: (!clientConfig?.isApp && pathObj.hostname === location.hostname ? "same-origin" : "cors") as RequestMode,
|
|
||||||
// mode: "no-cors" as RequestMode,
|
|
||||||
credentials: "include" as RequestCredentials,
|
credentials: "include" as RequestCredentials,
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -309,43 +307,43 @@ export class ClaudeApi implements LLMApi {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
async models() {
|
async models() {
|
||||||
const provider = {
|
// const provider = {
|
||||||
id: "anthropic",
|
// id: "anthropic",
|
||||||
providerName: "Anthropic",
|
// providerName: "Anthropic",
|
||||||
providerType: "anthropic",
|
// providerType: "anthropic",
|
||||||
};
|
// };
|
||||||
|
|
||||||
return [
|
return [
|
||||||
{
|
// {
|
||||||
name: "claude-instant-1.2",
|
// name: "claude-instant-1.2",
|
||||||
available: true,
|
// available: true,
|
||||||
provider,
|
// provider,
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
name: "claude-2.0",
|
// name: "claude-2.0",
|
||||||
available: true,
|
// available: true,
|
||||||
provider,
|
// provider,
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
name: "claude-2.1",
|
// name: "claude-2.1",
|
||||||
available: true,
|
// available: true,
|
||||||
provider,
|
// provider,
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
name: "claude-3-opus-20240229",
|
// name: "claude-3-opus-20240229",
|
||||||
available: true,
|
// available: true,
|
||||||
provider,
|
// provider,
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
name: "claude-3-sonnet-20240229",
|
// name: "claude-3-sonnet-20240229",
|
||||||
available: true,
|
// available: true,
|
||||||
provider,
|
// provider,
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
name: "claude-3-haiku-20240307",
|
// name: "claude-3-haiku-20240307",
|
||||||
available: true,
|
// available: true,
|
||||||
provider,
|
// provider,
|
||||||
},
|
// },
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
path(path: string): string {
|
path(path: string): string {
|
||||||
|
Loading…
Reference in New Issue
Block a user