We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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