From f9d894f487f9bef916c85b1ae069a5b3ff15ea59 Mon Sep 17 00:00:00 2001 From: antonhibl Date: Mon, 13 Feb 2023 14:31:04 -0700 Subject: [PATCH] comments --- gptai.el | 1 + 1 file changed, 1 insertion(+) diff --git a/gptai.el b/gptai.el index 84c253a..614b512 100644 --- a/gptai.el +++ b/gptai.el @@ -171,6 +171,7 @@ Argument GPTAI-LANGUAGE language to generate." (interactive (list (read-string "Instructions: ") (read-string "Language: "))) + ;; place code in current buffer (with-current-buffer (current-buffer) (let ((response (gptai-request (format "%s(%s)" gptai-instructions gptai-language)))) (let ((text (cdr (assoc 'text (elt (cdr (assoc 'choices response)) 0)))))