File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,11 @@ retrieve the key from an auth-source entry under the `:host` key `api.google-gem
3232(setq google-gemini-key #'google-gemini-key-auth-source)
3333```
3434
35+ > 💡 Tip
36+ >
37+ > The two variables ` google-gemini-key ` is the default values for sending requests!
38+ > However, you can still overwrite the value by passing the keywords ` :key ` !
39+
3540## 🛠️ Contribute
3641
3742[ ![ PRs Welcome] ( https://img.shields.io/badge/PRs-welcome-brightgreen.svg )] ( http://makeapullrequest.com )
Original file line number Diff line number Diff line change 3333(cl-defun google-gemini-content-generate ( text callback
3434 &key
3535 (content-type " application/json" )
36+ (key google-gemini-key)
3637 (category " HARM_CATEGORY_DANGEROUS_CONTENT" )
3738 (threshold " BLOCK_ONLY_HIGH" )
3839 stop-sequences
4142 top-p
4243 top-k )
4344 " Send generate content request."
44- (request (format " https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent?key=%s "
45- google-gemini-key)
45+ (request (format " https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent?key=%s " key)
4646 :type " POST"
4747 :headers (google-gemini--headers content-type)
4848 :data (google-gemini--json-encode
You can’t perform that action at this time.
0 commit comments