branch: elpa/gptel
commit d0e86a1645349b05893c841c35755e5d83d7e8a7
Author: Rodrigo Custodio <[email protected]>
Commit: Karthik Chikmagalur <[email protected]>

    gptel-anthropic, gptel-bedrock: Add claude-sonnet-4.6
    
    gptel-anthropic.el (gptel--anthropic-models): Add Claude Sonnet
    4.6.
    
    gptel-bedrock.el (gptel-bedrock--model-ids): Add Claude Sonnet
    4.6.
    
    NEWS: Announce model addition.
---
 NEWS               |  6 ++++--
 gptel-anthropic.el | 10 +++++++++-
 gptel-bedrock.el   |  3 ++-
 3 files changed, 15 insertions(+), 4 deletions(-)

diff --git a/NEWS b/NEWS
index a025457fe7..bdfa613528 100644
--- a/NEWS
+++ b/NEWS
@@ -22,9 +22,11 @@
   =gpt-41-copilot=, =claude-opus-4.5=, =claude-opus-4.6=,
   =gemini-3-pro-preview= and =gemini-3-flash-preview=.
 
-- Anthropic backend: Add support for =claude-opus-4-6=.
+- Anthropic backend: Add support for =claude-opus-4-6= and
+  =claude-sonnet-4-6=.
 
-- Bedrock backend: Add support for =claude-opus-4-5=, =claude-opus-4-6= and 
=nova-2-lite=.
+- Bedrock backend: Add support for =claude-opus-4-5=,
+  =claude-opus-4-6=, =claude-sonnet-4-6= and =nova-2-lite=.
 
 - Add support for =gemini-3-pro-preview=, =gemini-3-flash-preview=.
 
diff --git a/gptel-anthropic.el b/gptel-anthropic.el
index 2851e4a88c..699825fc6e 100644
--- a/gptel-anthropic.el
+++ b/gptel-anthropic.el
@@ -514,7 +514,15 @@ Media files, if present, are placed in `gptel-context'."
 ;;         (plist-get (car (last prompts)) :content)))
 
 (defconst gptel--anthropic-models
-  '((claude-sonnet-4-5-20250929
+  '((claude-sonnet-4-6
+     :description "The best combination of speed and intelligence"
+     :capabilities (media tool-use cache)
+     :mime-types ("image/jpeg" "image/png" "image/gif" "image/webp" 
"application/pdf")
+     :context-window 200
+     :input-cost 3
+     :output-cost 15
+     :cutoff-date "2025-08")
+    (claude-sonnet-4-5-20250929
      :description "High-performance model with exceptional reasoning and 
efficiency"
      :capabilities (media tool-use cache)
      :mime-types ("image/jpeg" "image/png" "image/gif" "image/webp" 
"application/pdf")
diff --git a/gptel-bedrock.el b/gptel-bedrock.el
index b76665d666..02507eedd3 100644
--- a/gptel-bedrock.el
+++ b/gptel-bedrock.el
@@ -533,7 +533,8 @@ Convenient to use with `cl-multiple-value-bind'"
 
 (defvar gptel-bedrock--model-ids
   ;; https://docs.aws.amazon.com/bedrock/latest/userguide/models-supported.html
-  '((claude-opus-4-6             . "anthropic.claude-opus-4-6-v1")
+  '((claude-sonnet-4-6           . "anthropic.claude-sonnet-4-6")
+    (claude-opus-4-6             . "anthropic.claude-opus-4-6-v1")
     (claude-sonnet-4-5-20250929  . "anthropic.claude-sonnet-4-5-20250929-v1:0")
     (claude-haiku-4-5-20251001   . "anthropic.claude-haiku-4-5-20251001-v1:0")
        (claude-opus-4-5-20251101    . 
"anthropic.claude-opus-4-5-20251101-v1:0")

Reply via email to