Skip to content

Commit 69183d3

Browse files
committed
Add models
1 parent f6356ca commit 69183d3

File tree

2 files changed

+19
-13
lines changed

2 files changed

+19
-13
lines changed

chatgpt-shell-google.el

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -85,29 +85,24 @@ VALIDATE-COMMAND handler."
8585
"Build a list of Google LLM models available."
8686
;; Context windows have been verified as of 11/26/2024. See
8787
;; https://ai.google.dev/gemini-api/docs/models/gemini.
88-
(list (chatgpt-shell-google-make-model :version "gemini-1.5-pro-latest"
88+
(list (chatgpt-shell-google-make-model :version "gemini-2.0-flash"
89+
:short-version "2.0-flash"
90+
:path "/v1beta/models/gemini-2.0-flash"
91+
:token-width 4
92+
:context-window 1048576)
93+
(chatgpt-shell-google-make-model :version "gemini-1.5-pro-latest"
8994
:short-version "1.5-pro-latest"
9095
:path "/v1beta/models/gemini-1.5-pro-latest"
9196
:token-width 4
9297
:context-window 2097152)
93-
(chatgpt-shell-google-make-model :version "gemini-exp-1206"
94-
:short-version "exp-1206"
95-
:path "/v1beta/models/gemini-exp-1206"
96-
:token-width 4
97-
:context-window 2097152)
9898
(chatgpt-shell-google-make-model :version "gemini-1.5-flash-latest"
9999
:short-version "1.5-flash-latest"
100100
:path "/v1beta/models/gemini-1.5-flash-latest"
101101
:token-width 4
102102
:context-window 1048576)
103-
(chatgpt-shell-google-make-model :version "gemini-2.0-flash-exp"
104-
:short-version "2.0-flash-exp"
105-
:path "/v1beta/models/gemini-2.0-flash-exp"
106-
:token-width 4
107-
:context-window 1048576)
108-
(chatgpt-shell-google-make-model :version "gemini-2.0-flash-thinking-exp-1219"
103+
(chatgpt-shell-google-make-model :version "gemini-2.0-flash-thinking-exp-01-21"
109104
:short-version "2.0-flash-thinking-exp"
110-
:path "/v1beta/models/gemini-2.0-flash-thinking-exp-1219"
105+
:path "/v1beta/models/gemini-2.0-flash-thinking-exp-01-21"
111106
:token-width 4
112107
:context-window 32767)))
113108

chatgpt-shell-openai.el

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,17 @@ HANDLER, FILTER and OTHER-PARAMS."
7575
:token-width 3
7676
;; https://platform.openai.com/docs/models/gpt-4o
7777
:context-window 128000)
78+
(chatgpt-shell-openai-make-model
79+
:version "o3-mini"
80+
:token-width 3
81+
:context-window 200000
82+
:validate-command
83+
;; TODO: Standardize whether or not a model supports system prompts.
84+
(lambda (command model settings)
85+
(or (chatgpt-shell-openai--validate-command command model settings)
86+
(when (map-elt settings :system-prompt)
87+
(format "Model \"%s\" does not support system prompts. Please unset via \"M-x chatgpt-shell-swap-system-prompt\" by selecting None."
88+
(map-elt model :version))))))
7889
(chatgpt-shell-openai-make-model
7990
:version "o1-preview"
8091
:token-width 3

0 commit comments

Comments
 (0)