Skip to content

Commit

Permalink
Add Gemini 2.0 Pro model, and use 2.0 flash as a default
Browse files Browse the repository at this point in the history
  • Loading branch information
ahyatt committed Feb 7, 2025
1 parent 874d762 commit a0ee062
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions NEWS.org
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
* Version 0.23.1
- Add Gemini 2.0 pro experimental model, default to 2.0 flash
* Version 0.23.0
- Add GitHub's GitHub Models
- Accept lists as nonstandard
Expand Down
2 changes: 1 addition & 1 deletion llm-gemini.el
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
KEY is the API key for the client.
You can get this at https://makersuite.google.com/app/apikey."
key (embedding-model "embedding-001") (chat-model "gemini-1.5-pro"))
key (embedding-model "embedding-001") (chat-model "gemini-2.0-flash-001"))

(cl-defmethod llm-nonfree-message-info ((_ llm-gemini))
"Return nonfree terms of service for Gemini."
Expand Down
5 changes: 5 additions & 0 deletions llm-models.el
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,11 @@ REGEX is a regular expression that can be used to identify the model, uniquely (
:capabilities '(generation)
:context-length 32768
:regex "gemini-2\\.0-flash-thinking")
(make-llm-model
:name "Gemini 2.0 Pro" :symbol 'gemini-2.0-pro
:capabilities '(generation tool-use image-input audio-input video-input)
:context-length 1048576
:regex "gemini-2\\.0-pro")
(make-llm-model
:name "Gemini 1.5 Flash" :symbol 'gemini-1.5-flash
:capabilities '(generation tool-use image-input audio-input video-input)
Expand Down

0 comments on commit a0ee062

Please sign in to comment.