summaryrefslogtreecommitdiffstats
path: root/src/client
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-03-15 08:14:10 +0800
committerGitHub <noreply@github.com>2024-03-15 08:14:10 +0800
commit930d8c12abec2860d01f51d495ee587d28c3f5e7 (patch)
tree31684884cef3cb2a2384e25c1ceb8ba28093f79b /src/client
parent669d6ffde2ed8d3889e95f7472e32720051b2e7e (diff)
downloadaichat-930d8c12abec2860d01f51d495ee587d28c3f5e7.tar.gz
feat: new model claude:claude-3-haiku-20240307 (#353)
Diffstat (limited to 'src/client')
-rw-r--r--src/client/claude.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/claude.rs b/src/client/claude.rs
index 78d3640..ea17f66 100644
--- a/src/client/claude.rs
+++ b/src/client/claude.rs
@@ -19,10 +19,11 @@ use serde_json::{json, Value};
const API_BASE: &str = "https://api.anthropic.com/v1/messages";
-const MODELS: [(&str, usize, &str); 5] = [
+const MODELS: [(&str, usize, &str); 6] = [
// https://docs.anthropic.com/claude/docs/models-overview
("claude-3-opus-20240229", 200000, "text,vision"),
("claude-3-sonnet-20240229", 200000, "text,vision"),
+ ("claude-3-haiku-20240307", 200000, "text,vision"),
("claude-2.1", 200000, "text"),
("claude-2.0", 100000, "text"),
("claude-instant-1.2", 100000, "text"),