Skip to content

Commit 0138f08

Browse files
gptel-gh: Fix indentation
1 parent b291596 commit 0138f08

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

gptel-gh.el

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136
:input-cost 1
137137
:output-cost 5
138138
:cutoff-date "2025-02")
139-
(claude-opus-4
139+
(claude-opus-4
140140
:description "Most capable model for complex reasoning and advanced coding"
141141
:capabilities (media tool-use cache)
142142
:mime-types ("image/jpeg" "image/png" "image/gif" "image/webp" "application/pdf")
@@ -291,24 +291,24 @@ in your local browser, enter the code, and authorize. Press ENTER after authori
291291
(format "Your one-time code %s is copied. \
292292
Press ENTER to open GitHub in your browser. \
293293
If your browser does not open automatically, browse to %s."
294-
user_code verification_uri))
295-
(browse-url verification_uri)
296-
(read-from-minibuffer "Press ENTER after authorizing."))
297-
(thread-last
298-
(plist-get
299-
(gptel--url-retrieve
300-
"https://github.com/login/oauth/access_token"
301-
:method 'post
302-
:headers gptel--gh-auth-common-headers
303-
:data `( :client_id ,gptel--gh-client-id
304-
:device_code ,device_code
305-
:grant_type "urn:ietf:params:oauth:grant-type:device_code"))
306-
:access_token)
307-
(gptel--gh-save-github-token))
308-
(let ((github-token (gptel--gh-load-github-token)))
309-
(if (and github-token (not (string-empty-p github-token)))
310-
(message "Successfully logged in to GitHub Copilot")
311-
(user-error "Error: You might not have access to GitHub Copilot Chat!"))))))
294+
user_code verification_uri))
295+
(browse-url verification_uri)
296+
(read-from-minibuffer "Press ENTER after authorizing."))
297+
(thread-last
298+
(plist-get
299+
(gptel--url-retrieve
300+
"https://github.com/login/oauth/access_token"
301+
:method 'post
302+
:headers gptel--gh-auth-common-headers
303+
:data `( :client_id ,gptel--gh-client-id
304+
:device_code ,device_code
305+
:grant_type "urn:ietf:params:oauth:grant-type:device_code"))
306+
:access_token)
307+
(gptel--gh-save-github-token))
308+
(let ((github-token (gptel--gh-load-github-token)))
309+
(if (and github-token (not (string-empty-p github-token)))
310+
(message "Successfully logged in to GitHub Copilot")
311+
(user-error "Error: You might not have access to GitHub Copilot Chat!"))))))
312312

313313
(defun gptel--gh-renew-token ()
314314
"Renew session token."

0 commit comments

Comments
 (0)