Skip to content

Commit 93f271c

Browse files
authored
Merge pull request #323 from djr7C4/gemini-updates
Add experimental version of gemini 2.0 pro and use latest versions
2 parents fcc18a1 + a8d5559 commit 93f271c

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

chatgpt-shell-google.el

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,17 @@ This gets set once for each MODEL, based on a heuristic."
220220
"Build a list of Google LLM models available."
221221
;; Context windows have been verified as of 11/26/2024. See
222222
;; https://ai.google.dev/gemini-api/docs/models/gemini.
223-
(list (chatgpt-shell-google-make-model :version "gemini-2.0-flash"
223+
(list (chatgpt-shell-google-make-model :version "gemini-2.0-pro-exp"
224+
:short-version "2.0-pro-exp"
225+
:path "/v1beta/models/gemini-2.0-pro-exp"
226+
:token-width 4
227+
:context-window 2048576)
228+
(chatgpt-shell-google-make-model :version "gemini-2.0-flash-thinking-exp"
229+
:short-version "2.0-flash-thinking-exp"
230+
:path "/v1beta/models/gemini-2.0-flash-thinking-exp"
231+
:token-width 4
232+
:context-window 1048576)
233+
(chatgpt-shell-google-make-model :version "gemini-2.0-flash"
224234
:short-version "2.0-flash"
225235
:path "/v1beta/models/gemini-2.0-flash"
226236
:grounding-search t
@@ -235,12 +245,7 @@ This gets set once for each MODEL, based on a heuristic."
235245
:short-version "1.5-flash-latest"
236246
:path "/v1beta/models/gemini-1.5-flash-latest"
237247
:token-width 4
238-
:context-window 1048576)
239-
(chatgpt-shell-google-make-model :version "gemini-2.0-flash-thinking-exp-01-21"
240-
:short-version "2.0-flash-thinking-exp"
241-
:path "/v1beta/models/gemini-2.0-flash-thinking-exp-01-21"
242-
:token-width 4
243-
:context-window 32767)))
248+
:context-window 1048576)))
244249

245250
(defun chatgpt-shell-google--validate-command (_command _model _settings)
246251
"Return error string if command/setup isn't valid."

0 commit comments

Comments
 (0)