From 3d98ce8eeecd193a61efc1674ba33d1c94ef56f2 Mon Sep 17 00:00:00 2001 From: Filipe Guerreiro Date: Sat, 24 Jun 2023 05:22:31 +0900 Subject: [PATCH] gptel: Add new turbo 0613 models (#77) gptel.el (gptel-model): Update choices for the OpenAI model. Add the 16k and 32k token versions of the gpt-3.5 and gpt-4 model respectively. --- gptel-transient.el | 4 ++-- gptel.el | 8 +++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/gptel-transient.el b/gptel-transient.el index c895513..e7f0633 100644 --- a/gptel-transient.el +++ b/gptel-transient.el @@ -210,11 +210,11 @@ will get progressively longer!" :class 'transient-lisp-variable :variable 'gptel-model :key "m" - :choices '("gpt-3.5-turbo-0301" "gpt-3.5-turbo" "gpt-4") + :choices '("gpt-3.5-turbo" "gpt-3.5-turbo-16k" "gpt-4" "gpt-4-32k") :reader (lambda (prompt &rest _) (completing-read prompt - '("gpt-3.5-turbo-0301" "gpt-3.5-turbo" "gpt-4")))) + '("gpt-3.5-turbo" "gpt-3.5-turbo-16k" "gpt-4" "gpt-4-32k")))) (transient-define-infix gptel--infix-temperature () "Temperature of request." diff --git a/gptel.el b/gptel.el index 3a4b74e..0406f39 100644 --- a/gptel.el +++ b/gptel.el @@ -197,8 +197,9 @@ will get progressively longer!" The current options are - \"gpt-3.5-turbo\" -- \"gpt-3.5-turbo-0301\" +- \"gpt-3.5-turbo-16k\" - \"gpt-4\" (experimental) +- \"gpt-4-32k\" (experimental) To set the model for a chat session interactively call `gptel-send' with a prefix argument." @@ -206,8 +207,9 @@ To set the model for a chat session interactively call :group 'gptel :type '(choice (const :tag "GPT 3.5 turbo" "gpt-3.5-turbo") - (const :tag "GPT 3.5 turbo 0301" "gpt-3.5-turbo-0301") - (const :tag "GPT 4 (experimental)" "gpt-4"))) + (const :tag "GPT 3.5 turbo 16k" "gpt-3.5-turbo-16k") + (const :tag "GPT 4 (experimental)" "gpt-4") + (const :tag "GPT 4 32k (experimental)" "gpt-4-32k"))) (defcustom gptel-temperature 1.0 "\"Temperature\" of ChatGPT response.