branch: externals/llm
commit 6d568150af5325395687aae89d58ec4c514e5872
Author: Andrew Hyatt <[email protected]>
Commit: GitHub <[email protected]>

    Add ChatGPT 5.4, with extra context (#255)
---
 NEWS.org      | 1 +
 llm-models.el | 5 +++++
 2 files changed, 6 insertions(+)

diff --git a/NEWS.org b/NEWS.org
index 68c449088f..1a92f0be99 100644
--- a/NEWS.org
+++ b/NEWS.org
@@ -2,6 +2,7 @@
 - Add =:input-tokens= and =:output-tokens= to multioutput result.
 - Added Qwen 3.5, LFM2 and LFM 2.5 Thinking
 - Added Gemini 3.1 Pro
+- Added Chat GPT 5.4, with extra context
 - Fixed inability of zero-arg tools to be called
 * Version 0.29.0
 - Check for tool use mismatches and define new errors for them
diff --git a/llm-models.el b/llm-models.el
index 30fdca8aff..49e5a2dbd7 100644
--- a/llm-models.el
+++ b/llm-models.el
@@ -125,6 +125,11 @@ REGEX is a regular expression that can be used to identify 
the model, uniquely (
     :capabilities '(generation tool-use image-input json-response reasoning)
     :context-length 400000
     :regex "gpt-5-mini")
+   (make-llm-model
+    :name "GPT-5.4" :symbol 'gpt-5-4
+    :capabilities '(generation tool-use image-input json-response reasoning)
+    :context-length 1000000
+    :regex (rx (seq "gpt-5\\.4" (or string-end (seq (or "-" ".") (+ digit))))))
    (make-llm-model
     :name "GPT-5" :symbol 'gpt-5
     :capabilities '(generation tool-use image-input json-response reasoning)

Reply via email to