branch: externals/llm
commit cb62272688282002fbabb917c859be74b9acd74b
Author: Andrew Hyatt <ahy...@gmail.com>
Commit: GitHub <nore...@github.com>

    Add Claude 3.7 Sonnet model, set to default (#161)
---
 NEWS.org      | 2 +-
 llm-claude.el | 2 +-
 llm-models.el | 5 +++++
 3 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/NEWS.org b/NEWS.org
index bd882d71f0..87243f229b 100644
--- a/NEWS.org
+++ b/NEWS.org
@@ -1,8 +1,8 @@
 * Version 0.24.0
 - Add =multi-output= as an option, allowing all llm results to return, call, 
or stream multiple kinds of data via a plist.  This allows separating out 
reasoning, as well as optionally returning text as well as tool uses at the 
same time.
-* Version 0.23.1
 - Add Gemini 2.0 pro experimental model, default to 2.0 flash
 - Add Open AI's o3 mini model
+- Add Claude 3.7 sonnet
 - Fix Claude's capabilities to reflect that it can use tools
 * Version 0.23.0
 - Add GitHub's GitHub Models
diff --git a/llm-claude.el b/llm-claude.el
index 0ea71a3efe..1177559c57 100644
--- a/llm-claude.el
+++ b/llm-claude.el
@@ -33,7 +33,7 @@
 ;; Models defined at https://docs.anthropic.com/claude/docs/models-overview
 (cl-defstruct (llm-claude (:include llm-standard-chat-provider))
   (key nil :read-only t)
-  (chat-model "claude-3-5-sonnet-20241022" :read-only t))
+  (chat-model "claude-3-7-sonnet-20250219" :read-only t))
 
 (cl-defmethod llm-nonfree-message-info ((_ llm-claude))
   "Return Claude's nonfree ToS."
diff --git a/llm-models.el b/llm-models.el
index e766dc715a..868a4a0e57 100644
--- a/llm-models.el
+++ b/llm-models.el
@@ -106,6 +106,11 @@ REGEX is a regular expression that can be used to identify 
the model, uniquely (
     :context-length 8192
     :regex "text-embedding-ada-002")
    ;; https://docs.anthropic.com/en/docs/about-claude/models
+   (make-llm-model
+    :name "Claude 3.7 Sonnet" :symbol 'claude-3.7-sonnet
+    :capabilities '(generation tool-use image-input pdf-input caching)
+    :context-length 200000
+    :regex "claude-3.7-sonnet")
    (make-llm-model
     :name "Claude 3.5 Sonnet" :symbol 'claude-3.5-sonnet
     :capabilities '(generation tool-use image-input pdf-input caching)

Reply via email to