|
136 | 136 | :input-cost 1 |
137 | 137 | :output-cost 5 |
138 | 138 | :cutoff-date "2025-02") |
139 | | - (claude-opus-4 |
| 139 | + (claude-opus-4 |
140 | 140 | :description "Most capable model for complex reasoning and advanced coding" |
141 | 141 | :capabilities (media tool-use cache) |
142 | 142 | :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 |
291 | 291 | (format "Your one-time code %s is copied. \ |
292 | 292 | Press ENTER to open GitHub in your browser. \ |
293 | 293 | 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!")))))) |
312 | 312 |
|
313 | 313 | (defun gptel--gh-renew-token () |
314 | 314 | "Renew session token." |
|
0 commit comments