Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f06adfc + 824aa82 commit 55e5b54Copy full SHA for 55e5b54
codegpt.el
@@ -31,6 +31,7 @@
31
32
;;; Code:
33
34
+(require 'openai)
35
(require 'openai-completion)
36
37
(defgroup codegpt nil
@@ -84,8 +85,8 @@ boundaries of that region in buffer."
84
85
(lambda (data)
86
(openai--with-buffer codegpt-buffer-name
87
(openai--pop-to-buffer codegpt-buffer-name)
- (let* ((choices (openai-completion--data-choices data))
88
- (result (openai-completion--get-choice choices))
+ (let* ((choices (openai--data-choices data))
89
+ (result (openai--get-choice choices))
90
(original-point (point)))
91
(insert (string-trim result) "\n")
92
(fill-region original-point (point))))
0 commit comments