branch: elpa/gptel commit 098de7c9a265cfed9dab5858b90d0b29a01163ed Author: Savva Surenkov <savva@surenkov.space> Commit: GitHub <nore...@github.com>
gptel-gemini: add new Gemini models (#913) * NEWS: (0.9.9-pre): Update. * gptel-gemini.el (gptel--gemini-models): Add `gemini-2.5-pro`, `gemini-2.5-flash`, and `gemini-2.5-flash-lite-preview-06-17`. --- NEWS | 5 +++++ gptel-gemini.el | 35 +++++++++++++++++++++++++++++++---- 2 files changed, 36 insertions(+), 4 deletions(-) diff --git a/NEWS b/NEWS index 646bc6b9dc..91d86583b2 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,11 @@ * 0.9.9-pre +** New models and backends + +- Add support for ~gemini-2.5-pro~, ~gemini-2.5-flash~, + ~gemini-2.5-flash-lite-preview-06-17~. + ** New features and UI changes - gptel now handles Ollama models that return both reasoning content diff --git a/gptel-gemini.el b/gptel-gemini.el index 29f87c9859..add1e2b46d 100644 --- a/gptel-gemini.el +++ b/gptel-gemini.el @@ -470,7 +470,7 @@ files in the context." :output-cost 10.00 ; 15 for >200k tokens :cutoff-date "2025-01") (gemini-2.5-flash-preview-04-17 - :description "Best Gemini model in terms of price-performance, offering well-rounded capabilities" + :description "Best model in terms of price-performance, offering well-rounded 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") @@ -479,7 +479,7 @@ files in the context." :output-cost 0.60 ; 3.50 for thinking :cutoff-date "2025-01") (gemini-2.5-flash-preview-05-20 - :description "Best Gemini model in terms of price-performance, offering well-rounded capabilities" + :description "Best model in terms of price-performance, offering well-rounded 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") @@ -488,7 +488,7 @@ files in the context." :output-cost 0.60 ; 3.50 for thinking :cutoff-date "2025-01") (gemini-2.5-pro-preview-05-06 - :description "Previously the most powerful Gemini thinking model with state-of-the-art performance" + :description "Previously 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") @@ -497,7 +497,34 @@ files in the context." :output-cost 10.00 ; 15 for >200k tokens :cutoff-date "2025-01") (gemini-2.5-pro-preview-06-05 - :description "Most powerful Gemini thinking model with state-of-the-art performance" + :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 + :cutoff-date "2025-01") + (gemini-2.5-flash-lite-preview-06-17 + :description "A Gemini 2.5 Flash model optimized for cost efficiency and low latency" + :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 ; 64000 output token limit + :input-cost 0.10 + :output-cost 0.40 + :cutoff-date "2025-01") + (gemini-2.5-flash + :description "Best model in terms of price-performance, offering well-rounded 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") + :context-window 1048 ; 65536 output token limit + :input-cost 0.3 + :output-cost 2.50 + :cutoff-date "2025-01") + (gemini-2.5-pro + :description "State-of-the-art thinking model, capable of reasoning over complex problems" :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")