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.)
This commit is contained in:
parent
3ac5963080
commit
d5b10c3d6d
1 changed files with 4 additions and 0 deletions
4
gptel.el
4
gptel.el
|
@ -366,6 +366,9 @@ will get progressively longer!"
|
||||||
(defcustom gptel-model "gpt-3.5-turbo"
|
(defcustom gptel-model "gpt-3.5-turbo"
|
||||||
"GPT Model for chat.
|
"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
|
The current options for ChatGPT are
|
||||||
- \"gpt-3.5-turbo\"
|
- \"gpt-3.5-turbo\"
|
||||||
- \"gpt-3.5-turbo-16k\"
|
- \"gpt-3.5-turbo-16k\"
|
||||||
|
@ -378,6 +381,7 @@ To set the model for a chat session interactively call
|
||||||
:safe #'always
|
:safe #'always
|
||||||
:group 'gptel
|
:group 'gptel
|
||||||
:type '(choice
|
:type '(choice
|
||||||
|
(string :tag "Specify model name")
|
||||||
(const :tag "GPT 3.5 turbo" "gpt-3.5-turbo")
|
(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 3.5 turbo 16k" "gpt-3.5-turbo-16k")
|
||||||
(const :tag "GPT 4" "gpt-4")
|
(const :tag "GPT 4" "gpt-4")
|
||||||
|
|
Loading…
Add table
Reference in a new issue