Skip to content

Commit fc06fe9

Browse files
committed
gptel: Linting
Linting changes across buffers. * gptel-openai-extras.el (gptel-make-perplexity): (gptel--parse-buffer): (gptel-make-deepseek): * gptel-openai.el (gptel-make-openai): * gptel-transient.el (gptel-add):
1 parent 289a5cc commit fc06fe9

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

gptel-openai-extras.el

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ the response."
219219
;;;###autoload
220220
(cl-defun gptel-make-perplexity
221221
(name &key curl-args stream key
222-
(header
222+
(header
223223
(lambda () (when-let* ((key (gptel--get-api-key)))
224224
`(("Authorization" . ,(concat "Bearer " key))))))
225225
(host "api.perplexity.ai")
@@ -309,7 +309,7 @@ parameters."
309309
(when (and (stringp reasoning) (length> reasoning 0))
310310
(plist-put info :reasoning reasoning))))
311311

312-
(cl-defmethod gptel--parse-buffer :around ((_backend gptel-deepseek) max-entries)
312+
(cl-defmethod gptel--parse-buffer :around ((_backend gptel-deepseek) _max-entries)
313313
"Merge successive prompts in the prompts list that have the same role.
314314
315315
The Deepseek API requires strictly alternating roles (user/assistant) in messages."
@@ -346,7 +346,9 @@ The Deepseek API requires strictly alternating roles (user/assistant) in message
346346
:context-window 64
347347
:input-cost 0.27
348348
:output-cost 1.10))))
349-
"Register a DeepSeek backend for gptel with NAME."
349+
"Register a DeepSeek backend for gptel with NAME.
350+
351+
For the meanings of the keyword arguments, see `gptel-make-openai'."
350352
(declare (indent 1))
351353
(let ((backend (gptel--make-deepseek
352354
:name name

gptel-openai.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ information, in the form
522522
(model-name . plist)
523523
524524
For a list of currently recognized plist keys, see
525-
`gptel--openai-models'. An example of a model specification
525+
`gptel--openai-models'. An example of a model specification
526526
including both kinds of specs:
527527
528528
:models

gptel-transient.el

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1129,6 +1129,7 @@ supports. See `gptel-track-media' for more information."
11291129

11301130
(declare-function gptel-context--at-point "gptel-context")
11311131
(declare-function gptel-add "gptel-context")
1132+
(declare-function gptel-context-add-current-kill "gptel-context")
11321133

11331134
(transient-define-suffix gptel--infix-context-add-current-kill (&optional arg)
11341135
"Add current kill to gptel's context."

0 commit comments

Comments
 (0)