branch: elpa/gptel
commit 86a2931e9d2e0f05fb0efaf0ab74ec7463c30577
Author: Savva Surenkov <[email protected]>
Commit: Karthik Chikmagalur <[email protected]>

    gptel-gemini: Add support for Gemini 3.1 Pro Preview
    
    * gptel-gemini.el (gptel--gemini-models): Add
    gemini-3.1-pro-preview.
    * NEWS (New models and backends): Mention change.
---
 NEWS            |  3 ++-
 gptel-gemini.el | 11 +++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/NEWS b/NEWS
index bdfa613528..74839d188f 100644
--- a/NEWS
+++ b/NEWS
@@ -28,7 +28,8 @@
 - 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=.
+- Add support for =gemini-3.1-pro-preview=, =gemini-3-pro-preview= and
+  =gemini-3-flash-preview=.
 
 - Add support for =gpt-5.1=.
 
diff --git a/gptel-gemini.el b/gptel-gemini.el
index 7af668162d..2f51994a4a 100644
--- a/gptel-gemini.el
+++ b/gptel-gemini.el
@@ -404,6 +404,17 @@ Media files, if present, are placed in `gptel-context'."
      :input-cost 0.10
      :output-cost 0.40
      :cutoff-date "2025-01")
+    (gemini-3.1-pro-preview
+     :description "Most intelligent Gemini model with SOTA reasoning and 
multimodal understanding"
+     :capabilities (tool-use json media audio video)
+     :mime-types ("image/png" "image/jpeg" "image/webp" "image/heic" 
"image/heif"
+                  "application/pdf" "text/plain" "text/csv" "text/html"
+                  "audio/mpeg" "audio/wav" "audio/ogg" "audio/flac" 
"audio/aac" "audio/mp3"
+                  "video/mp4" "video/mpeg" "video/avi" "video/quicktime" 
"video/webm")
+     :context-window 1048               ; 65536 output token limit
+     :input-cost 2.0                    ; 4.0 for >200k tokens
+     :output-cost 12.00                 ; 18.0 for >200k tokens
+     :cutoff-date "2025-01")
     (gemini-3-pro-preview
      :description "Most intelligent Gemini model with SOTA reasoning and 
multimodal understanding"
      :capabilities (tool-use json media audio video)

Reply via email to