branch: elpa/gptel
commit 1ca222b0bbced70a72857e31f20383e11bc355d3
Author: David Álvarez Rosa <[email protected]>
Commit: Karthik Chikmagalur <[email protected]>

    gptel: Add support for gpt-5.1
    
    gptel-request.el (gptel--openai-models): Add support for gpt-5.1.
    gptel-gh.el (gptel--gh-models): Add support for gpt-5.1.
    NEWS: Mention.
    
    https://platform.openai.com/docs/models/gpt-5.1
---
 NEWS             | 2 ++
 gptel-gh.el      | 8 ++++++++
 gptel-request.el | 8 ++++++++
 3 files changed, 18 insertions(+)

diff --git a/NEWS b/NEWS
index 550fcefdef0..db849a5c118 100644
--- a/NEWS
+++ b/NEWS
@@ -14,6 +14,8 @@
 
 - Add support for =gemini-3-pro-preview=.
 
+- Add support for =gpt-5.1=.
+
 ** New features and UI changes
 
 - When redirecting LLM responses to the kill ring or echo area, gptel
diff --git a/gptel-gh.el b/gptel-gh.el
index 7b974c4d68c..234cd5d2c72 100644
--- a/gptel-gh.el
+++ b/gptel-gh.el
@@ -65,6 +65,14 @@
      :input-cost 0.25
      :output-cost 2.0
      :cutoff-date "2024-09")
+    (gpt-5.1
+     :description "The best model for coding and agentic tasks"
+     :capabilities (media tool-use json url)
+     :mime-types ("image/jpeg" "image/png" "image/gif" "image/webp")
+     :context-window 400
+     :input-cost 1.25
+     :output-cost 10
+     :cutoff-date "2024-09")
     (o3
      :description "Well-rounded and powerful model across domains"
      :capabilities (reasoning media tool-use json url)
diff --git a/gptel-request.el b/gptel-request.el
index 680b74ccd3f..2b6bf179995 100644
--- a/gptel-request.el
+++ b/gptel-request.el
@@ -456,6 +456,14 @@ the same as t."
      :input-cost 0.05
      :output-cost 0.40
      :cutoff-date "2024-09")
+    (gpt-5.1
+     :description "The best model for coding and agentic tasks"
+     :capabilities (media tool-use json url)
+     :mime-types ("image/jpeg" "image/png" "image/gif" "image/webp")
+     :context-window 400
+     :input-cost 1.25
+     :output-cost 10
+     :cutoff-date "2024-09")
     (o1
      :description "Reasoning model designed to solve hard problems across 
domains"
      :capabilities (media reasoning)

Reply via email to