branch: elpa/gptel
commit 5027bb7d5b9c39dce4729ac83012353e9d1d6bec
Author: David Álvarez Rosa <[email protected]>
Commit: GitHub <[email protected]>
gptel-openai: Add gpt-5.2, update metadata for gpt-5.1
gptel-request.el (gptel--openai-models): Add gpt-5.2 to the list of
models. (#1211)
gptel-openai.el (gptel--request-data): Update system prompt JSON
field used for gpt-5.2.
gptel-gh.el (gptel--gh-models): Fix metadata for gpt-5 series models.
---
gptel-gh.el | 8 ++++----
gptel-openai.el | 2 +-
gptel-request.el | 8 ++++++++
3 files changed, 13 insertions(+), 5 deletions(-)
diff --git a/gptel-gh.el b/gptel-gh.el
index 90829be084f..5136bcf3219 100644
--- a/gptel-gh.el
+++ b/gptel-gh.el
@@ -77,7 +77,7 @@
: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 264
+ :context-window 400
:input-cost 1
:output-cost 1
:cutoff-date "2024-09")
@@ -85,9 +85,9 @@
: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 264
- :input-cost 1
- :output-cost 1
+ :context-window 400
+ :input-cost 1.75
+ :output-cost 14
:cutoff-date "2025-08")
(claude-sonnet-4
:description "High-performance model with exceptional reasoning and
efficiency"
diff --git a/gptel-openai.el b/gptel-openai.el
index 8bf54971638..6f96bf19149 100644
--- a/gptel-openai.el
+++ b/gptel-openai.el
@@ -319,7 +319,7 @@ Mutate state INFO with response metadata."
:stream ,(or gptel-stream :json-false)))
(reasoning-model-p ; TODO: Embed this capability in the model's
properties
(memq gptel-model '(o1 o1-preview o1-mini o3-mini o3 o4-mini
- gpt-5 gpt-5-mini gpt-5-nano gpt-5.1))))
+ gpt-5 gpt-5-mini gpt-5-nano gpt-5.1 gpt-5.2))))
(when (and gptel-temperature (not reasoning-model-p))
(plist-put prompts-plist :temperature gptel-temperature))
(when gptel-use-tools
diff --git a/gptel-request.el b/gptel-request.el
index c8908887a4f..42b49ea0034 100644
--- a/gptel-request.el
+++ b/gptel-request.el
@@ -421,6 +421,14 @@ the same as t."
:input-cost 1.25
:output-cost 10
:cutoff-date "2024-09")
+ (gpt-5.2
+ :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.75
+ :output-cost 14
+ :cutoff-date "2025-08")
(o1
:description "Reasoning model designed to solve hard problems across
domains"
:capabilities (media reasoning)