branch: elpa/gptel
commit 8e20fae2ce03bc12d9ad2dcf695b16bb2c2cd9e7
Author: Karthik Chikmagalur <karthikchikmaga...@gmail.com>
Commit: Karthik Chikmagalur <karthikchikmaga...@gmail.com>

    gptel: Add support for o3 and o4-mini (#789)
    
    * gptel.el (gptel--openai-models): Add support for OpenAI models
    o3 and o4-mini.  Additionally, update the metadata for these
    models as they now support system messages and streaming, and many
    of the models support media input as well.
    
    * gptel-gh.el (gptel--gh-models): Add support for o3 and o4-mini
    to the Copilot backend.
---
 gptel-gh.el | 16 ++++++++++++++++
 gptel.el    | 26 ++++++++++++++++++++------
 2 files changed, 36 insertions(+), 6 deletions(-)

diff --git a/gptel-gh.el b/gptel-gh.el
index 299f8eebfd..ace8347d6b 100644
--- a/gptel-gh.el
+++ b/gptel-gh.el
@@ -62,6 +62,14 @@
      :output-cost 60
      :cutoff-date "2023-10"
      :request-params (:stream :json-false))
+    (o3
+     :description "Well-rounded and powerful model across domains"
+     :capabilities (reasoning media tool-use json url)
+     :mime-types ("image/jpeg" "image/png" "image/gif" "image/webp")
+     :context-window 200
+     :input-cost 10
+     :output-cost 40
+     :cutoff-date "2024-05")
     (o3-mini
      :description "High intelligence at the same cost and latency targets of 
o1-mini"
      :capabilities (reasoning tool-use)
@@ -69,6 +77,14 @@
      :input-cost 3
      :output-cost 12
      :cutoff-date "2023-10")
+    (o4-mini
+     :description "Fast, effective reasoning with efficient performance in 
coding and visual tasks"
+     :capabilities (reasoning media tool-use json url)
+     :mime-types ("image/jpeg" "image/png" "image/gif" "image/webp")
+     :context-window 200
+     :input-cost 1.10
+     :output-cost 4.40
+     :cutoff-date "2024-05")
     (claude-3.5-sonnet
      :description "Highest level of intelligence and capability"
      :capabilities (media tool-use cache)
diff --git a/gptel.el b/gptel.el
index 72ae7aa721..62528d64bc 100644
--- a/gptel.el
+++ b/gptel.el
@@ -599,16 +599,30 @@ the same as t."
      :input-cost 3
      :output-cost 12
      :cutoff-date "2023-10"
-     :capabilities (nosystem reasoning)
-     :request-params (:stream :json-false))
+     :capabilities (nosystem reasoning))
+    (o3
+     :description "Well-rounded and powerful model across domains"
+     :capabilities (reasoning media tool-use json url)
+     :mime-types ("image/jpeg" "image/png" "image/gif" "image/webp")
+     :context-window 200
+     :input-cost 10
+     :output-cost 40
+     :cutoff-date "2024-05")
     (o3-mini
      :description "High intelligence at the same cost and latency targets of 
o1-mini"
      :context-window 200
-     :input-cost 3
-     :output-cost 12
+     :input-cost 1.10
+     :output-cost 4.40
      :cutoff-date "2023-10"
-     :capabilities (reasoning)
-     :request-params (:stream :json-false))
+     :capabilities (reasoning tool-use json))
+    (o4-mini
+     :description "Fast, effective reasoning with efficient performance in 
coding and visual tasks"
+     :capabilities (reasoning media tool-use json url)
+     :mime-types ("image/jpeg" "image/png" "image/gif" "image/webp")
+     :context-window 200
+     :input-cost 1.10
+     :output-cost 4.40
+     :cutoff-date "2024-05")
     (gpt-3.5-turbo
      :description "More expensive & less capable than GPT-4o-mini; use that 
instead"
      :capabilities (tool-use)

Reply via email to