[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/gptel 6295362eab 3/4: gptel-openai: Add support for o1-pre
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/gptel 6295362eab 3/4: gptel-openai: Add support for o1-preview and o1-mini |
Date: |
Tue, 12 Nov 2024 04:00:34 -0500 (EST) |
branch: elpa/gptel
commit 6295362eab6913cf79cd9d7e6a8bb969cd20b5ce
Author: Karthik Chikmagalur <karthikchikmagalur@gmail.com>
Commit: Karthik Chikmagalur <karthikchikmagalur@gmail.com>
gptel-openai: Add support for o1-preview and o1-mini
* gptel.el (gptel--openai-models): Add support for OpenAI's
`o1-preview' and `o1-mini' models. This works now due to the
addition of the :request-params option (to disable streaming
per-model) and the `nosystem' capability (to disable system
messages) to gptel.
---
gptel.el | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/gptel.el b/gptel.el
index c8a00456e4..955665ecb2 100644
--- a/gptel.el
+++ b/gptel.el
@@ -518,6 +518,22 @@ To set the temperature for a chat session interactively
call
:input-cost 10
:output-cost 30
:cutoff-date "2023-12")
+ (o1-preview
+ :description "Reasoning model designed to solve hard problems across
domains"
+ :context-window 128
+ :input-cost 15
+ :output-cost 60
+ :cutoff-date "2023-10"
+ :capabilities (nosystem)
+ :request-params (:stream :json-false))
+ (o1-mini
+ :description "Faster and cheaper reasoning model good at coding, math,
and science"
+ :context-window 128
+ :input-cost 3
+ :output-cost 12
+ :cutoff-date "2023-10"
+ :capabilities (nosystem)
+ :request-params (:stream :json-false))
;; limited information available
(gpt-4-32k
:input-cost 60