Skip to content

Commit 7144f5e

Browse files
authored
Merge pull request #315 from djr7C4/openai-o1
2 parents 73dc47e + 8ca5cf0 commit 7144f5e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

chatgpt-shell-openai.el

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,12 @@ HANDLER, FILTER and OTHER-PARAMS."
8686
(when (map-elt settings :system-prompt)
8787
(format "Model \"%s\" does not support system prompts. Please unset via \"M-x chatgpt-shell-swap-system-prompt\" by selecting None."
8888
(map-elt model :version))))))
89+
(chatgpt-shell-openai-make-model
90+
:version "o1"
91+
:token-width 3
92+
;; https://platform.openai.com/docs/models/o1
93+
:context-window 200000
94+
:validate-command #'chatgpt-shell-validate-no-system-prompt)
8995
(chatgpt-shell-openai-make-model
9096
:version "o1-preview"
9197
:token-width 3

0 commit comments

Comments
 (0)