From d5b10c3d6d233367a74b4f1d68ad9834d8024b92 Mon Sep 17 00:00:00 2001 From: Karthik Chikmagalur Date: Tue, 2 Jan 2024 14:45:53 -0800 Subject: [PATCH] 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 83b08e2..f07f93e 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")