emacs-openai / chatgpt

Use ChatGPT inside Emacs
GNU General Public License v3.0
185 stars 21 forks source link

I'm not able to send a message #29

Closed jcubic closed 10 months ago

jcubic commented 10 months ago

I keep getting 400 error when I try to add this prompt:

I have this Emacs configuration for seding email:

(setq message-send-mail-function 'message-smtpmail-send-it)
(setq smtpmail-smtp-server "jcubic.<server>")
(setq smtpmail-smtp-service 465)
(setq user-mail-address "jcubic@<server>")
(setq smtpmail-auth-credentials
      '(("jcubic.<server>" 465 "jcubic@<server>" "<passoword>")))
(setq smtpmail-stream-type 'ssl)

THis is exact information provided by my email provider and exact same setup I have in my email
client.
Why I keep getting error "Relay access denied" when trying to send email in Emacs?
jcs090218 commented 10 months ago

Can you try (setq openai--show-log t) and see what the error message is? Maybe paste it here so I can take a look? Thank you!

jcubic commented 10 months ago

Ok the error say it all, it say it's too many tokens. I've set it to 4000 because I thought that it reached the limit during conversation when it was showing almost 2000 tokens.