Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions chatgpt-shell-google.el
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,9 @@ supports \"generateContent\".
This is used to filter the list of models returned from
https://generativelanguage.googleapis.com"
(let-alist api-response
(unless (string-match-p (rx (or "discontinued" "deprecated")) .description)
(seq-contains-p .supportedGenerationMethods "generateContent"))))
(and .supportedGenerationMethods
(not (and .description (string-match-p (rx (or "discontinued" "deprecated")) .description)))
(seq-contains-p .supportedGenerationMethods "generateContent"))))

(defun chatgpt-shell-google--fetch-model-versions ()
"Retrieves the list of generative models from the Google API."
Expand Down