Update available OpenAI GPT models to match API (#146)
gptel-transient.el (gptel--infix-model): gptel.el (gptel-model, gptel--openai): Update gpt-4 models.
This commit is contained in:
parent
de6d8089cd
commit
3e361323d5
2 changed files with 6 additions and 6 deletions
|
@ -318,11 +318,11 @@ will get progressively longer!"
|
||||||
:class 'transient-lisp-variable
|
:class 'transient-lisp-variable
|
||||||
:variable 'gptel-model
|
:variable 'gptel-model
|
||||||
:key "-m"
|
:key "-m"
|
||||||
:choices '("gpt-3.5-turbo" "gpt-3.5-turbo-16k" "gpt-4" "gpt-4-32k")
|
:choices '("gpt-3.5-turbo" "gpt-3.5-turbo-16k" "gpt-4" "gpt-4-1106-preview")
|
||||||
:reader (lambda (prompt &rest _)
|
:reader (lambda (prompt &rest _)
|
||||||
(completing-read
|
(completing-read
|
||||||
prompt
|
prompt
|
||||||
'("gpt-3.5-turbo" "gpt-3.5-turbo-16k" "gpt-4" "gpt-4-32k"))))
|
'("gpt-3.5-turbo" "gpt-3.5-turbo-16k" "gpt-4" "gpt-4-1106-preview"))))
|
||||||
|
|
||||||
(transient-define-infix gptel--infix-temperature ()
|
(transient-define-infix gptel--infix-temperature ()
|
||||||
"Temperature of request."
|
"Temperature of request."
|
||||||
|
|
8
gptel.el
8
gptel.el
|
@ -300,7 +300,7 @@ The current options for ChatGPT are
|
||||||
- \"gpt-3.5-turbo\"
|
- \"gpt-3.5-turbo\"
|
||||||
- \"gpt-3.5-turbo-16k\"
|
- \"gpt-3.5-turbo-16k\"
|
||||||
- \"gpt-4\" (experimental)
|
- \"gpt-4\" (experimental)
|
||||||
- \"gpt-4-32k\" (experimental)
|
- \"gpt-4-1106-preview\" (experimental)
|
||||||
|
|
||||||
To set the model for a chat session interactively call
|
To set the model for a chat session interactively call
|
||||||
`gptel-send' with a prefix argument."
|
`gptel-send' with a prefix argument."
|
||||||
|
@ -310,8 +310,8 @@ To set the model for a chat session interactively call
|
||||||
:type '(choice
|
:type '(choice
|
||||||
(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 (experimental)" "gpt-4")
|
(const :tag "GPT 4" "gpt-4")
|
||||||
(const :tag "GPT 4 32k (experimental)" "gpt-4-32k")))
|
(const :tag "GPT 4 turbo (preview)" "gpt-4-1106-preview")))
|
||||||
|
|
||||||
(defcustom gptel-temperature 1.0
|
(defcustom gptel-temperature 1.0
|
||||||
"\"Temperature\" of ChatGPT response.
|
"\"Temperature\" of ChatGPT response.
|
||||||
|
@ -341,7 +341,7 @@ with differing settings.")
|
||||||
:header (lambda () `(("Authorization" . ,(concat "Bearer " (gptel--get-api-key)))))
|
:header (lambda () `(("Authorization" . ,(concat "Bearer " (gptel--get-api-key)))))
|
||||||
:key 'gptel-api-key
|
:key 'gptel-api-key
|
||||||
:stream t
|
:stream t
|
||||||
:models '("gpt-3.5-turbo" "gpt-3.5-turbo-16k" "gpt-4" "gpt-4-32k")))
|
:models '("gpt-3.5-turbo" "gpt-3.5-turbo-16k" "gpt-4" "gpt-4-1106-preview")))
|
||||||
|
|
||||||
(defvar-local gptel-backend gptel--openai)
|
(defvar-local gptel-backend gptel--openai)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue