We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 79a4300 + 5f29117 commit b47049aCopy full SHA for b47049a
chatgpt-shell-google.el
@@ -94,8 +94,9 @@ supports \"generateContent\".
94
This is used to filter the list of models returned from
95
https://generativelanguage.googleapis.com"
96
(let-alist api-response
97
- (unless (string-match-p (rx (or "discontinued" "deprecated")) .description)
98
- (seq-contains-p .supportedGenerationMethods "generateContent"))))
+ (and .supportedGenerationMethods
+ (not (and .description (string-match-p (rx (or "discontinued" "deprecated")) .description)))
99
+ (seq-contains-p .supportedGenerationMethods "generateContent"))))
100
101
(defun chatgpt-shell-google--fetch-model-versions ()
102
"Retrieves the list of generative models from the Google API."
0 commit comments