Skip to content

Commit 000f38e

Browse files
committed
updated requires to reflect functional changes in package
it looks like the openai-completion--data-choices and openai-completion--get-choices functions were renamed to openai--data-choices and openai--get-choices in the openai package. I also changed the require to openai vs openai-collections as that is the full package name. addresses #5.
1 parent f06adfc commit 000f38e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

codegpt.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
;;; Code:
3333

34-
(require 'openai-completion)
34+
(require 'openai)
3535

3636
(defgroup codegpt nil
3737
"Use GPT-3 tp help you write code."
@@ -84,8 +84,8 @@ boundaries of that region in buffer."
8484
(lambda (data)
8585
(openai--with-buffer codegpt-buffer-name
8686
(openai--pop-to-buffer codegpt-buffer-name)
87-
(let* ((choices (openai-completion--data-choices data))
88-
(result (openai-completion--get-choice choices))
87+
(let* ((choices (openai--data-choices data))
88+
(result (openai--get-choice choices))
8989
(original-point (point)))
9090
(insert (string-trim result) "\n")
9191
(fill-region original-point (point))))

0 commit comments

Comments
 (0)