gptel: Add GPT 4 Turbo (#286)

* gptel.el (gptel--openai, gptel-model): Add gpt-4-turbo model.
This commit is contained in:
Norio Suzuki 2024-04-21 02:35:26 +09:00 committed by GitHub
parent 70889ad95c
commit 2b938114cf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -399,9 +399,12 @@ by the LLM provider's API.
The current options for ChatGPT are
- \"gpt-3.5-turbo\"
- \"gpt-3.5-turbo-16k\"
- \"gpt-4\" (experimental)
- \"gpt-4-1106-preview\" (experimental)
- \"gpt-4\"
- \"gpt-4-turbo\"
- \"gpt-4-turbo-preview\"
- \"gpt-4-32k\"
- \"gpt-4-1106-preview\"
To set the model for a chat session interactively call
`gptel-send' with a prefix argument."
:safe #'always
@ -411,6 +414,7 @@ To set the model for a chat session interactively call
(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")
(const :tag "GPT 4 turbo" "gpt-4-turbo")
(const :tag "GPT 4 turbo (preview)" "gpt-4-turbo-preview")
(const :tag "GPT 4 32k" "gpt-4-32k")
(const :tag "GPT 4 1106 (preview)" "gpt-4-1106-preview")))
@ -441,7 +445,7 @@ with differing settings.")
"ChatGPT"
:key 'gptel-api-key
:stream t
:models '("gpt-3.5-turbo" "gpt-3.5-turbo-16k" "gpt-4"
:models '("gpt-3.5-turbo" "gpt-3.5-turbo-16k" "gpt-4" "gpt-4-turbo"
"gpt-4-turbo-preview" "gpt-4-32k" "gpt-4-1106-preview"
"gpt-4-0125-preview")))