File tree Expand file tree Collapse file tree 2 files changed +23
-5
lines changed
Expand file tree Collapse file tree 2 files changed +23
-5
lines changed Original file line number Diff line number Diff line change 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+
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments