Skip to content

Commit 19ff023

Browse files
committed
simplify headers
1 parent 973e6b1 commit 19ff023

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

google-gemini.el

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -99,16 +99,7 @@ If BASE-URL is not specified, it defaults to `google-gemini-base-url'."
9999
100100
Arguments CONTENT-TYPE are common request headers."
101101
(google-gemini--alist-omit-null
102-
`(("Content-Type" . ,content-type)
103-
,(if (or (null key)
104-
(string-empty-p key))
105-
""
106-
(pcase openai-key-type
107-
(:bearer `("Authorization" . ,(concat "Bearer " key)))
108-
(:azure-api `("api-key" . ,key))
109-
(_ (user-error "Invalid key type: %s"
110-
openai-key-type))))
111-
)))
102+
`(("Content-Type" . ,content-type))))
112103

113104
(defun google-gemini--json-encode (object)
114105
"Wrapper for function `json-encode' but it remove nil value before

0 commit comments

Comments
 (0)