emacs-openai / codegpt

Use GPT-3 inside Emacs
GNU General Public License v3.0
88 stars 12 forks source link

Error in process sentinel #5

Closed antonhibl closed 1 year ago

antonhibl commented 1 year ago

Running codegpt-XXXX on a selection of code returns:

error in process sentinel: let*: Symbol’s function definition is void: openai-completion--data-choices
error in process sentinel: Symbol’s function definition is void: openai-completion--data-choices
error in process sentinel: let*: Symbol’s function definition is void: openai-completion--get-choices
error in process sentinel: Symbol’s function definition is void: openai-completion--get-choices

This is because the openai package renamed these functions to openai--data-choices and openai-get-choices. the require in the codegpt.el file also needs to be changed to (require 'openai) to reflect the full package name.

antonhibl commented 1 year ago

6 addresses this

jcs090218 commented 1 year ago

Thank you!