Skip to content

Commit 55e5b54

Browse files
authored
Merge pull request #6 from antonhibl/master
updated requires to reflect functional changes in package
2 parents f06adfc + 824aa82 commit 55e5b54

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

codegpt.el

+3-2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131

3232
;;; Code:
3333

34+
(require 'openai)
3435
(require 'openai-completion)
3536

3637
(defgroup codegpt nil
@@ -84,8 +85,8 @@ boundaries of that region in buffer."
8485
(lambda (data)
8586
(openai--with-buffer codegpt-buffer-name
8687
(openai--pop-to-buffer codegpt-buffer-name)
87-
(let* ((choices (openai-completion--data-choices data))
88-
(result (openai-completion--get-choice choices))
88+
(let* ((choices (openai--data-choices data))
89+
(result (openai--get-choice choices))
8990
(original-point (point)))
9091
(insert (string-trim result) "\n")
9192
(fill-region original-point (point))))

0 commit comments

Comments
 (0)