From 07992f79cc716beacc62185922a374ad35db3844 Mon Sep 17 00:00:00 2001 From: Karthik Chikmagalur Date: Wed, 13 Mar 2024 14:23:00 -0700 Subject: [PATCH] gptel-anthropic: Support for the Claude haiku model * gptel-anthropic.el (gptel-make-anthropic): Add Claude-3-haiku to the list of supported Anthropic models. --- gptel-anthropic.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gptel-anthropic.el b/gptel-anthropic.el index 113c4fb..99a2fb1 100644 --- a/gptel-anthropic.el +++ b/gptel-anthropic.el @@ -104,7 +104,9 @@ (lambda () (when-let (key (gptel--get-api-key)) `(("x-api-key" . ,key) ("anthropic-version" . "2023-06-01"))))) - (models '("claude-3-sonnet-20240229" "claude-3-opus-20240229")) + (models '("claude-3-sonnet-20240229" + "claude-3-haiku-20240307" + "claude-3-opus-20240229")) (host "api.anthropic.com") (protocol "https") (endpoint "/v1/messages"))