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

Can't get it to work #5

Closed
agzam opened this issue Mar 9, 2023 · 10 comments
Closed

Can't get it to work #5

agzam opened this issue Mar 9, 2023 · 10 comments
Labels
bug Something isn't working

Comments

@agzam
Copy link

agzam commented Mar 9, 2023

I'm using latest --head Emacs:

GNU Emacs 30.0.50 (build 1, aarch64-apple-darwin22.3.0, NS appkit-2299.40 Version 13.2.1 (Build 22D68)) of 2023-03-06

And can't figure out why it's not working. The API key is set, gptel opens the buffer, it says "Ready". I would type something and press "C-c RET", and it immediately fails with 'Response Error: nil'.

I'm not sure how to debug aio functions. Edebug doesn't work nicely with them. I'm not sure if it matters (featurep 'gptel-transient) always returns nil for me.

@agzam
Copy link
Author

agzam commented Mar 9, 2023

Oh, it looks like maybe it doesn't handle the insufficient_quota error.

@karthink
Copy link
Owner

karthink commented Mar 9, 2023 via email

@agzam
Copy link
Author

agzam commented Mar 9, 2023

If you're up to it, could you find the curl output (from the cli) for this kind of error?

darn, I knew I needed to save it, and I honestly thought I did. But then I restarted Emacs and it's gone now. :(

But guess what?

image

@minad
Copy link
Contributor

minad commented Mar 10, 2023

@agzam How quickly did you reach this quota limit? I wonder how much regular usage of ChatGPT costs per month.

@agzam
Copy link
Author

agzam commented Mar 10, 2023

How quickly did you reach this quota limit?

I just tried the package without openai paid account. If you don't want to deal with the quota error right now, perhaps adding a note in the readme would be enough.

@karthink
Copy link
Owner

I'd like to handle this error, actually. I'm pretty sure ChatGPT's output above is wrong. The JSON should have the error field, but the rest of it looks incorrect. If you run into this error again, please evaluate the function from #10 and try again? That should give you the full response from the API.

@agzam
Copy link
Author

agzam commented Mar 10, 2023

I'm sorry I didn't save the output. To run into this error again, I have to either cut my credit card and wait for it to fail or I have to register a new account, but I got only one phone number to use. IIRC, it does need a proper phone number.

@karthink
Copy link
Owner

Oh, please don't bother with any of that! I only meant if you run into this error again, whenever that might be.

@karthink karthink added the bug Something isn't working label Mar 11, 2023
@karthink
Copy link
Owner

If you run into this error again, please set gptel--debug to t and try again. This should produce a buffer with the result of the API request.

@karthink
Copy link
Owner

Indicating useful errors is now fully implemented in gptel. Feel free to reopen if you get cryptic error messages again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants