emacs-openai / openai

Elisp library for the OpenAI API
GNU General Public License v3.0
103 stars 17 forks source link

Usernames with special characters generate a 400 error #17

Closed rommeswi closed 1 year ago

rommeswi commented 1 year ago

How to reproduce:

Expected behavior: It would probably be best to see an informative error message if one uses a username that is disallowed.

jcs090218 commented 1 year ago

Can you try our debug section, see https://github.com/emacs-openai/openai#-debugging.

It should print out the reason message for the failed request.

rommeswi commented 1 year ago

Great, that helps! I think a reference to (setq openai--show-log t) in the 400 error would be useful, though.