branch: elpa/gptel
commit 21d2b1bc34306a2f493b1131b10ad0fd8beedca5
Author: Karthik Chikmagalur <karthikchikmaga...@gmail.com>
Commit: Karthik Chikmagalur <karthikchikmaga...@gmail.com>

    gptel-gemini: Update model list; remove deprecated models
    
    * gptel-gemini.el (gptel--gemini-models): Remove some deprecated
    models.
    
    * NEWS (Breaking changes): Mention removed models
---
 NEWS            |  12 ++++
 gptel-gemini.el | 184 ++++++++++++++++++++++----------------------------------
 2 files changed, 83 insertions(+), 113 deletions(-)

diff --git a/NEWS b/NEWS
index a3dea45333..464244e479 100644
--- a/NEWS
+++ b/NEWS
@@ -9,6 +9,18 @@
   =grok-3-mini-latest= have been renamed to just =grok-3=,
   =grok-3-mini= and so on.
 
+- The models =gemini-exp-1206=, =gemini-2.5-pro-preview-03-25=,
+  =gemini-2.5-pro-preview-05-06=, =gemini-2.5-flash-preview-04-17=
+  have been removed from the default list of Gemini models.  The first
+  one is no longer available, and the others are superseded by their
+  stable, non-preview versions.  If required, you can add these models
+  back to the Gemini backend in your personal configuration:
+  #+begin_src emacs-lisp
+  (push 'gemini-2.5-pro-preview-03-25
+        (gptel-backend-models (gptel-get-backend "Gemini")))
+  #+end_src
+
+
 ** New models and backends
 
 - Add support for ~gemini-2.5-pro~, ~gemini-2.5-flash~,
diff --git a/gptel-gemini.el b/gptel-gemini.el
index c5b5e43774..a927135b92 100644
--- a/gptel-gemini.el
+++ b/gptel-gemini.el
@@ -379,87 +379,15 @@ files in the context."
         (plist-get (car (last prompts)) :parts))))
 
 (defconst gptel--gemini-models
-  '((gemini-1.5-pro-latest
-     :description "Google's latest model with enhanced capabilities across 
various tasks"
-     :capabilities (tool-use json media)
-     :mime-types ("image/png" "image/jpeg" "image/webp" "image/heic" 
"image/heif"
-                  "application/pdf" "text/plain" "text/csv" "text/html")
-     :context-window 2000
-     ;; input & output price is halved for prompts of 128k tokens or less
-     :input-cost 2.50
-     :output-cost 10
-     :cutoff-date "2024-05")
-    (gemini-2.0-flash-exp
-     :description "Next generation features, superior speed, native tool use"
-     :capabilities (tool-use json media)
-     :mime-types ("image/png" "image/jpeg" "image/webp" "image/heic" 
"image/heif"
-                  "application/pdf" "text/plain" "text/csv" "text/html")
-     :context-window 1000
-     :cutoff-date "2024-12")
-    (gemini-1.5-flash
-     :description "A faster, more efficient version of Gemini 1.5 optimized 
for speed"
-     :capabilities (tool-use json media)
-     :mime-types ("image/png" "image/jpeg" "image/webp" "image/heic" 
"image/heif"
-                  "application/pdf" "text/plain" "text/csv" "text/html")
-     :context-window 1000
-     ;; input & output price is halved for prompts of 128k tokens or less
-     :input-cost 0.15
-     :output-cost 0.60
-     :cutoff-date "2024-05")
-    (gemini-1.5-flash-8b
-     :description "High volume and lower intelligence tasks"
-     :capabilities (tool-use json media)
-     :context-window 1000
-     :mime-types ("image/png" "image/jpeg" "image/webp" "image/heic" 
"image/heif"
-                  "application/pdf" "text/plain" "text/csv" "text/html")
-     ;; input & output price is halved for prompts of 128k tokens or less
-     :input-cost 0.075
-     :output-cost 0.30
-     :cutoff-date "2024-10")
-    (gemini-exp-1206
-     :description "Improved coding, reasoning and vision capabilities"
-     :capabilities (tool-use json media)
-     :mime-types ("image/png" "image/jpeg" "image/webp" "image/heic" 
"image/heif"
-                  "application/pdf" "text/plain" "text/csv" "text/html")
-     :cutoff-date "2024-12")
-    (gemini-2.0-flash
-     :description "Next gen, high speed, multimodal for a diverse variety of 
tasks"
-     :capabilities (tool-use json media)
-     :mime-types ("image/png" "image/jpeg" "image/webp" "image/heic" 
"image/heif"
-                  "application/pdf" "text/plain" "text/csv" "text/html")
-     :context-window 1000
-     :input-cost 0.10
-     :output-cost 0.40
-     :cutoff-date "2024-08")
-    (gemini-2.0-flash-lite-preview-02-05
-     :description "Gemini 2.0 Flash model optimized for cost efficiency and 
low latency"
-     :capabilities (json)
-     :context-window 1000
-     :input-cost 0.075
-     :output-cost 0.30
-     :cutoff-date "2024-08")
-    (gemini-2.0-pro-exp-02-05
-     :description "Next gen, high speed, multimodal for a diverse variety of 
tasks"
-     :capabilities (tool-use json)
-     :context-window 2000
-     :input-cost 0.00
-     :output-cost 0.00
-     :cutoff-date "2024-08")
-    (gemini-2.0-flash-thinking-exp-01-21
-     :description "Next gen, high speed, multimodal for a diverse variety of 
tasks"
-     :capabilities (json)
-     :input-cost 0.00
-     :output-cost 0.00
-     :cutoff-date "2024-08")
-    (gemini-2.0-flash-exp
-     :description "Multi-modal, streaming, tool use 2000 RPM"
-     :capabilities (tool-use json media)
+  '((gemini-2.5-pro
+     :description "Most powerful Gemini thinking model with state-of-the-art 
performance"
+     :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")
-     :context-window 1000
-     :input-cost 0.00
-     :output-cost 0.00
-     :cutoff-date "2024-08")
+                  "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 1.25)                   ; 2.50 for >200k tokens
     (gemini-2.5-pro-exp-03-25
      :description "Like gemini-2.5-pro-preview-03-25 but limited to 5 req/min, 
25 req/day"
      :capabilities (tool-use json media)
@@ -467,8 +395,7 @@ files in the context."
                   "application/pdf" "text/plain" "text/csv" "text/html")
      :context-window 1000
      :input-cost 0.00
-     :output-cost 0.00
-     :cutoff-date "2025-01")
+     :output-cost 0.00)
     (gemini-2.5-pro-preview-03-25
      :description "Enhanced reasoning, multimodal understanding & advanced 
coding"
      :capabilities (tool-use json media)
@@ -478,15 +405,6 @@ files in the context."
      :input-cost 1.25 ; 2.50 for >200k tokens
      :output-cost 10.00 ; 15 for >200k tokens
      :cutoff-date "2025-01")
-    (gemini-2.5-flash-preview-04-17
-     :description "DEPRECATED: Please use gemini-2.5-flash instead."
-     :capabilities (tool-use json media)
-     :mime-types ("image/png" "image/jpeg" "image/webp" "image/heic" 
"image/heif"
-                  "application/pdf" "text/plain" "text/csv" "text/html")
-     :context-window 1000
-     :input-cost 0.15
-     :output-cost 0.60 ; 3.50 for thinking
-     :cutoff-date "2025-01")
     (gemini-2.5-flash-preview-05-20
      :description "DEPRECATED: Please use gemini-2.5-flash instead."
      :capabilities (tool-use json media)
@@ -514,60 +432,100 @@ files in the context."
                   "application/pdf" "text/plain" "text/csv" "text/html")
      :context-window 1048 ; 65536 output token limit
      :input-cost 1.25 ; 2.50 for >200k tokens
-     :output-cost 10.00 ; 15 for >200k tokens
-     :cutoff-date "2025-01")
+     :output-cost 10.00)                ; 15 for >200k tokens
     (gemini-2.5-pro-preview-06-05
      :description "Most powerful thinking model with state-of-the-art 
performance"
      :capabilities (tool-use json media)
      :mime-types ("image/png" "image/jpeg" "image/webp" "image/heic" 
"image/heif"
                   "application/pdf" "text/plain" "text/csv" "text/html")
-     :context-window 1048 ; 65536 output token limit
-     :input-cost 1.25 ; 2.50 for >200k tokens
-     :output-cost 10.00 ; 15 for >200k tokens
+     :context-window 1048               ; 65536 output token limit
+     :input-cost 1.25                   ; 2.50 for >200k tokens
+     :output-cost 10.00                 ; 15 for >200k tokens
      :cutoff-date "2025-01")
-    (gemini-2.5-flash-lite-preview-06-17
+    (gemini-2.5-flash-lite
      :description "Fastest and cheapest 2.5 model, for high-volume, 
latency-sensitive tasks."
+     :capabilities (tool-use json media)
      :capabilities (tool-use json media audio video)
      :mime-types ("image/png" "image/jpeg" "image/webp" "application/pdf" 
"text/plain"
                   "audio/x-aac" "audio/flac" "audio/mp3" "audio/m4a" 
"audio/mpeg"
                   "audio/mpga" "audio/mp4" "audio/opus" "audio/pcm" 
"audio/wav" "audio/webm"
                   "video/x-flv" "video/quicktime" "video/mpeg" "video/mp4"
                   "video/webm" "video/wmv" "video/3gpp")
-     :context-window 1048 ; 65536 output token limit
+     :context-window 1048 ; 64000 output token limit
      :input-cost 0.10
      :output-cost 0.40
      :cutoff-date "2025-01")
-    (gemini-2.5-flash-lite
+    (gemini-2.5-flash-lite-preview-06-17
      :description "Fastest and cheapest 2.5 model, for high-volume, 
latency-sensitive tasks."
-     :capabilities (tool-use json media)
      :capabilities (tool-use json media audio video)
      :mime-types ("image/png" "image/jpeg" "image/webp" "application/pdf" 
"text/plain"
                   "audio/x-aac" "audio/flac" "audio/mp3" "audio/m4a" 
"audio/mpeg"
                   "audio/mpga" "audio/mp4" "audio/opus" "audio/pcm" 
"audio/wav" "audio/webm"
                   "video/x-flv" "video/quicktime" "video/mpeg" "video/mp4"
                   "video/webm" "video/wmv" "video/3gpp")
-     :context-window 1048 ; 64000 output token limit
+     :context-window 1048 ; 65536 output token limit
      :input-cost 0.10
      :output-cost 0.40
      :cutoff-date "2025-01")
-    (gemini-2.5-pro
-     :description "Most powerful Gemini thinking model with state-of-the-art 
performance"
-     :capabilities (tool-use json media audio video)
+    (gemini-2.0-flash
+     :description "Next gen, high speed, multimodal for a diverse variety of 
tasks"
+     :capabilities (tool-use json media)
      :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 1.25                   ; 2.50 for >200k tokens
-     :output-cost 10.00                 ; 15 for >200k tokens
-     :cutoff-date "2025-01")
+                  "application/pdf" "text/plain" "text/csv" "text/html")
+     :context-window 1000
+     :input-cost 0.10)
+    (gemini-2.0-flash-lite-preview-02-05
+     :description "Gemini 2.0 Flash model optimized for cost efficiency and 
low latency"
+     :capabilities (json)
+     :context-window 1000
+     :input-cost 0.075
+     :output-cost 0.30
+     :cutoff-date "2024-08")
+    (gemini-2.0-flash-exp
+     :description "Next generation features, superior speed, native tool use"
+     :capabilities (tool-use json media)
+     :mime-types ("image/png" "image/jpeg" "image/webp" "image/heic" 
"image/heif"
+                  "application/pdf" "text/plain" "text/csv" "text/html")
+     :context-window 1000)
+    (gemini-2.0-flash-thinking-exp-01-21
+     :description "Next gen, high speed, multimodal for a diverse variety of 
tasks"
+     :capabilities (json)
+     :input-cost 0.00
+     :output-cost 0.00)
     (gemini-2.0-flash-thinking-exp
      :description "DEPRECATED: Please use gemini-2.0-flash-thinking-exp-01-21 
instead."
      :capabilities (tool-use media)
      :context-window 32
      :mime-types ("image/png" "image/jpeg" "image/webp" "image/heic" 
"image/heif"
-                  "text/plain" "text/csv" "text/html")
-     :cutoff-date "2024-08"))
+                  "text/plain" "text/csv" "text/html"))
+    (gemini-1.5-pro-latest
+     :description "Google's latest model with enhanced capabilities across 
various tasks"
+     :capabilities (tool-use json media)
+     :mime-types ("image/png" "image/jpeg" "image/webp" "image/heic" 
"image/heif"
+                  "application/pdf" "text/plain" "text/csv" "text/html")
+     :context-window 2000
+     ;; input & output price is halved for prompts of 128k tokens or less
+     :input-cost 2.50
+     :output-cost 10)
+    (gemini-1.5-flash
+     :description "A faster, more efficient version of Gemini 1.5 optimized 
for speed"
+     :capabilities (tool-use json media)
+     :mime-types ("image/png" "image/jpeg" "image/webp" "image/heic" 
"image/heif"
+                  "application/pdf" "text/plain" "text/csv" "text/html")
+     :context-window 1000
+     ;; input & output price is halved for prompts of 128k tokens or less
+     :input-cost 0.15
+     :output-cost 0.60)
+    (gemini-1.5-flash-8b
+     :description "High volume and lower intelligence tasks"
+     :capabilities (tool-use json media)
+     :context-window 1000
+     :mime-types ("image/png" "image/jpeg" "image/webp" "image/heic" 
"image/heif"
+                  "application/pdf" "text/plain" "text/csv" "text/html")
+     ;; input & output price is halved for prompts of 128k tokens or less
+     :input-cost 0.075
+     :output-cost 0.30
+     :cutoff-date "2024-10"))
   "List of available Gemini models and associated properties.
 Keys:
 

Reply via email to