emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/gptel d5b10c3d6d 169/273: gptel: gptel-model can be an arb


From: ELPA Syncer
Subject: [nongnu] elpa/gptel d5b10c3d6d 169/273: gptel: gptel-model can be an arbitrary string
Date: Wed, 1 May 2024 10:02:19 -0400 (EDT)

branch: elpa/gptel
commit d5b10c3d6d233367a74b4f1d68ad9834d8024b92
Author: Karthik Chikmagalur <karthikchikmagalur@gmail.com>
Commit: Karthik Chikmagalur <karthikchikmagalur@gmail.com>

    gptel: gptel-model can be an arbitrary string
    
    * gptel.el (gptel-model): Allow gptel-model to be an arbitrary
    string in the customize interface so it can be set with setopt
    etc. (See #152.)
---
 gptel.el | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gptel.el b/gptel.el
index 83b08e254f..f07f93e5d1 100644
--- a/gptel.el
+++ b/gptel.el
@@ -366,6 +366,9 @@ will get progressively longer!"
 (defcustom gptel-model "gpt-3.5-turbo"
   "GPT Model for chat.
 
+The name of the model as a string.  This is the name as expected
+by the LLM provider's API.
+
 The current options for ChatGPT are
 - \"gpt-3.5-turbo\"
 - \"gpt-3.5-turbo-16k\"
@@ -378,6 +381,7 @@ To set the model for a chat session interactively call
   :safe #'always
   :group 'gptel
   :type '(choice
+          (string :tag "Specify model name")
           (const :tag "GPT 3.5 turbo" "gpt-3.5-turbo")
           (const :tag "GPT 3.5 turbo 16k" "gpt-3.5-turbo-16k")
           (const :tag "GPT 4" "gpt-4")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]