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

    Recognize post 5.0 Chat GPT models such as the new GPT-5.2 (#222)
---
 NEWS.org      | 2 ++
 llm-models.el | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/NEWS.org b/NEWS.org
index ebb1e921cc..98b7235982 100644
--- a/NEWS.org
+++ b/NEWS.org
@@ -1,3 +1,5 @@
+* Version 0.28.2
+- Add Chat GPT post 5.0 series models, such as 5.1 and 5.2
 * Version 0.28.1
 - Fix error on empty Claude responses
 * Version 0.28.0
diff --git a/llm-models.el b/llm-models.el
index d4f08525cd..39feaa0872 100644
--- a/llm-models.el
+++ b/llm-models.el
@@ -129,7 +129,7 @@ REGEX is a regular expression that can be used to identify 
the model, uniquely (
     :name "GPT-5" :symbol 'gpt-5
     :capabilities '(generation tool-use image-input json-response reasoning)
     :context-length 400000
-    :regex (rx (seq "gpt-5" (or string-end (seq "-" (+ digit))))))
+    :regex (rx (seq "gpt-5" (or string-end (seq (or "-" ".") (+ digit))))))
    (make-llm-model
     :name "text-embedding-3-large" :symbol 'text-embedding-3-large
     :capabilities '(embedding)

Reply via email to