Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Artawower opened this issue Feb 4, 2023 · 1 comment
Open

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

Artawower opened this issue Feb 4, 2023 · 1 comment

Comments

@Artawower
Copy link
Contributor

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
Copy link
Member

jcs090218 commented Feb 4, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants