emacs-openai / codegpt

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

How to get trace/explanation of error messages? #1

Open Artawower opened 1 year ago

Artawower commented 1 year ago

When i try explain or documentate long code (more then few lines) i get next error message:

[error] request--callback: peculiar error: 400
error in process sentinel: openai--handle-error: 400 - Bad request.  Please check error message and your parameters
error in process sentinel: 400 - Bad request.  Please check error message and your parameters

How can i check details of such errors?

jcs090218 commented 1 year ago

Sorry, there isn't a way to do that yet. I am still playing with the request library, and hopefully, I can somewhat improve this behavior. The relevant code is:

https://github.com/emacs-openai/openai/blob/master/openai.el#L59-L69

When i try explain or documentate long code (more then few lines) i get next error message:

From what I have heard, OpenAI will refuse any long query now, so there are not many things we can do on the client side.