Skip to content

Commit 8bd1f61

Browse files
committed
gptel: Bookkeeping updates
* NEWS: (0.9.8.5): Reduce from 0.9.9 in preparation for upcoming release. * gptel-transient.el: Add headers to section defining EIEIO classes. * gptel.el (gptel--openai-models): Update pricing change for o3.
1 parent 6d42fd2 commit 8bd1f61

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

NEWS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- mode: org; -*-
22

3-
* 0.9.9
3+
* 0.9.8.5
44

55
** Breaking changes
66

gptel-transient.el

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,8 @@ which see."
448448

449449
;; * Transient classes and methods for gptel
450450

451+
;; ** Class for generic gptel elisp variables
452+
451453
(defclass gptel-lisp-variable (transient-lisp-variable)
452454
((display-nil :initarg :display-nil) ;String to display if value if nil
453455
(display-map :initarg :display-map :initform nil)) ;Display string from alist display-map
@@ -469,6 +471,8 @@ which see."
469471
(oset obj value value)
470472
gptel--set-buffer-locally))
471473

474+
;; ** Class for managing gptel tools
475+
472476
(defclass gptel--switch (transient-switch)
473477
((category :initarg :category))
474478
"Class used for arguments that share a category.")
@@ -491,6 +495,8 @@ It is a list of the category and argument, e.g.
491495
(oset obj value nil))
492496
(oset transient--prefix scope state)))
493497

498+
;; ** Class for managing gptel tool categories
499+
494500
(defclass gptel--switch-category (transient-switch)
495501
((category :initarg :category))
496502
"Class used for arguments that switch a group of other arguments.
@@ -544,6 +550,8 @@ Their own value is ignored")
544550
;; Finally set the "value" of the category itself
545551
(oset obj value value))
546552

553+
;; ** Class for gptel options that are three-way switches
554+
547555
(defclass gptel--switches (gptel-lisp-variable)
548556
((display-if-true :initarg :display-if-true :initform "True")
549557
(display-if-false :initarg :display-if-false :initform "False"))
@@ -564,6 +572,8 @@ Their own value is ignored")
564572
(propertize display-if-true
565573
'face (if value 'transient-value 'transient-inactive-value))))))
566574

575+
;; ** Class for gptel's scope management, singleton
576+
567577
(defclass gptel--scope (gptel--switches)
568578
((display-if-true :initarg :display-if-true :initform "buffer")
569579
(display-if-false :initarg :display-if-false :initform "global"))
@@ -599,6 +609,8 @@ This is used only for setting this variable via `gptel-menu'.")
599609
(oref obj variable)
600610
(oset obj value value)))
601611

612+
;; ** Class for managing gptel's backend and model, singleton
613+
602614
(defclass gptel-provider-variable (transient-lisp-variable)
603615
((backend :initarg :backend)
604616
(backend-value :initarg :backend-value)
@@ -625,6 +637,8 @@ This is used only for setting this variable via `gptel-menu'.")
625637
gptel--set-buffer-locally))
626638
(transient-setup))
627639

640+
;; ** Class for infix options with in-buffer overlay display
641+
628642
(defclass gptel-option-overlaid (transient-option)
629643
((display-nil :initarg :display-nil)
630644
(overlay :initarg :overlay))

gptel.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -663,8 +663,8 @@ the same as t."
663663
:capabilities (reasoning media tool-use json url)
664664
:mime-types ("image/jpeg" "image/png" "image/gif" "image/webp")
665665
:context-window 200
666-
:input-cost 10
667-
:output-cost 40
666+
:input-cost 2
667+
:output-cost 8
668668
:cutoff-date "2024-05")
669669
(o3-mini
670670
:description "High intelligence at the same cost and latency targets of o1-mini"

0 commit comments

Comments
 (0)