Skip to content

Commit 7b21368

Browse files
committed
update link
1 parent d67372d commit 7b21368

File tree

2 files changed

+23
-5
lines changed

2 files changed

+23
-5
lines changed

README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,20 @@
1+
[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
2+
[![JCS-ELPA](https://raw.githubusercontent.com/jcs-emacs/badges/master/elpa/v/codegpt.svg)](https://jcs-emacs.github.io/jcs-elpa/#/codegpt)
3+
14
# codegpt
2-
Use GPT-3 inside Emacs
5+
> Use GPT-3 inside Emacs
6+
7+
[![CI](https://github.com/emacs-openai/codegpt/actions/workflows/test.yml/badge.svg)](https://github.com/emacs-openai/codegpt/actions/workflows/test.yml)
8+
9+
## Contribute
10+
11+
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](http://makeapullrequest.com)
12+
[![Elisp styleguide](https://img.shields.io/badge/elisp-style%20guide-purple)](https://github.com/bbatsov/emacs-lisp-style-guide)
13+
[![Donate on paypal](https://img.shields.io/badge/paypal-donate-1?logo=paypal&color=blue)](https://www.paypal.me/jcs090218)
14+
[![Become a patron](https://img.shields.io/badge/patreon-become%20a%20patron-orange.svg?logo=patreon)](https://www.patreon.com/jcs090218)
15+
16+
If you would like to contribute to this project, you may either
17+
clone and make pull requests to this repository. Or you can
18+
clone the project and establish your own branch of this tool.
19+
Any methods are welcome!
20+

codegpt.el

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ boundaries of that region in buffer."
5252
(buffer-string)
5353
(lambda (data)
5454
(openai--with-buffer openai-completion-buffer-name
55-
(openai--pop-to-buffer openai-completion-buffer-name)
56-
(let* ((choices (openai-completion--data-choices data))
57-
(result (openai-completion--get-choice choices)))
58-
(insert result "\n"))))))))
55+
(openai--pop-to-buffer openai-completion-buffer-name)
56+
(let* ((choices (openai-completion--data-choices data))
57+
(result (openai-completion--get-choice choices)))
58+
(insert (string-trim result) "\n"))))))))
5959

6060
;;;###autoload
6161
(defun codegpt-doc (start end)

0 commit comments

Comments
 (0)