Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
antonhibl committed Feb 21, 2023
2 parents 84db312 + f9d894f commit 6f31687
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gptai.el
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,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)))))
Expand Down

0 comments on commit 6f31687

Please sign in to comment.