-
Notifications
You must be signed in to change notification settings - Fork 150
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
Empty response from ChatGPT #251
Comments
I tested the latest commit in a sandbox and I'm not able to reproduce this bug.
Run
Then in Emacs:
And EDIT: You could also try |
I suspect it will continue to work with curl if you turn off streaming responses. If none of the above work, could you run the following and test too? (setq gptel-use-curl t
gptel-stream nil) |
I have the same problem. I'm registered user having access to 4.0 in the browser. When (use-package gptel
:ensure t :defer t
:custom
(gptel-api-key "_____")) with the _____ replaced with my API key I get back
|
This is a separate issue that's unrelated to gptel. I'm guessing you don't have sufficient credits in your OpenAI billing account. |
I also have this problem (empty response) except I am trying to connect to Gemini. To make it more annoying, I can't set either error in process sentinel: string-trim-right: Wrong type argument: stringp, nil If they are set to t, I get the empty response. |
|
@freddez Just pushed a fix for what I'm guessing is the problem. Please update and test. |
I deleted and reloaded gptel. I still had (setq gptel-stream nil) in my init, so I got the sentinel error I described earlier. This was apparently because the model was overloaded, but maybe the error should be different? I tried it again and got the empty response message. But in fact, the response in gptel-log did not look empty. Here it is:
Just FYI, here's the response when I got the 503 message:
And thank you for the package! |
This is on the docket for me to fix, see #210. Will take a look at the other logs soon, thanks for the bug report! |
Hi, |
Please update and try with the default settings (i.e. with streaming responses). It should be fixed now. |
Using (setq gptel-use-curl t
gptel-stream nil) I'm still getting
Is another issue? I am able to use my paid OpenAI account in the browser just now. How do I verify that gptel is picking up my secret key in |
I have the same issue. With streaming I can see the streamed response in the log but I still get the "Emtpy Response" message. dot not work:
works:
|
With (use-package gptel
:ensure t :defer t
:custom
(gptel-use-curl nil)
(gptel-stream nil)
) followed by
. How can I check that gptel is picking up my creds using |
There are several unconnected issues in this thread so I created new ones and I'm closing this one. Please use your respective threads for further troubleshooting. |
Hello,
I've tried my api key with curl, it works, but when I try gptel prompt, I am stuck with an "Empty response" message, and no error.
I am using emacs 29.2 with doom. I've also tried to purge eln-cache with no success.
Edit : It works if I disable gptel-use-curl
I'm using curl 8.2.1 on Ubuntu mantic
The text was updated successfully, but these errors were encountered: