mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-11-10 17:00:11 +01:00
[FEAT] Add support for Claude Sonnet 3.5 model (#1731)
add support for claude sonnet 3.5 model
This commit is contained in:
parent
d043fdada6
commit
524edd6e69
@ -36,6 +36,7 @@ export default function AnthropicAiOptions({ settings }) {
|
||||
"claude-3-haiku-20240307",
|
||||
"claude-3-opus-20240229",
|
||||
"claude-3-sonnet-20240229",
|
||||
"claude-3-5-sonnet-20240620",
|
||||
].map((model) => {
|
||||
return (
|
||||
<option key={model} value={model}>
|
||||
|
@ -23,6 +23,7 @@ const PROVIDER_DEFAULT_MODELS = {
|
||||
"claude-3-opus-20240229",
|
||||
"claude-3-sonnet-20240229",
|
||||
"claude-3-haiku-20240307",
|
||||
"claude-3-5-sonnet-20240620",
|
||||
],
|
||||
azure: [],
|
||||
lmstudio: [],
|
||||
|
@ -46,6 +46,8 @@ class AnthropicLLM {
|
||||
return 200_000;
|
||||
case "claude-3-haiku-20240307":
|
||||
return 200_000;
|
||||
case "claude-3-5-sonnet-20240620":
|
||||
return 200_000;
|
||||
default:
|
||||
return 100_000; // assume a claude-instant-1.2 model
|
||||
}
|
||||
@ -59,6 +61,7 @@ class AnthropicLLM {
|
||||
"claude-3-opus-20240229",
|
||||
"claude-3-sonnet-20240229",
|
||||
"claude-3-haiku-20240307",
|
||||
"claude-3-5-sonnet-20240620",
|
||||
];
|
||||
return validModels.includes(modelName);
|
||||
}
|
||||
|
@ -565,6 +565,7 @@ function validAnthropicModel(input = "") {
|
||||
"claude-3-opus-20240229",
|
||||
"claude-3-sonnet-20240229",
|
||||
"claude-3-haiku-20240307",
|
||||
"claude-3-5-sonnet-20240620",
|
||||
];
|
||||
return validModels.includes(input)
|
||||
? null
|
||||
|
Loading…
Reference in New Issue
Block a user