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

openai layer returns 400 error #16657

Open
mhaffner opened this issue Nov 13, 2024 · 1 comment
Open

openai layer returns 400 error #16657

mhaffner opened this issue Nov 13, 2024 · 1 comment

Comments

@mhaffner
Copy link

Description :octocat:

openai layer returns 400 error. I can retrieve the available models and generate images, but other functionality doesn't seem to be working.

Reproduction guide 🪲

  • Start Emacs
  • Press SPC $ o g
  • Press enter
  • Type "how r u"
  • Press enter

Observed behaviour: 👀 💔
400 - Bad request. Please check error message and your parameters

Expected behaviour: ❤️ 😄
openai returns a response.

System Info 💻

  • OS: gnu/linux
  • Emacs: 29.4
  • Spacemacs: 0.999.0
  • Spacemacs branch: develop (rev. d52d633)
  • Graphic display: t
  • Running in daemon: nil
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:
(rust bibtex
      (auto-completion :variables auto-completion-return-key-behavior 'nil auto-completion-tab-key-behavior 'complete disabled-for 'eshell)
      colors csv docker emacs-lisp ess git helm html ipython-notebook javascript latex lua markdown openai
      (org :variables org-enable-reveal-js-support t org-hide-emphasis-markers t org-src-tab-acts-natively nil)
      pdf polymode
      (python :variables python-backend 'anaconda python-formatter 'yapf)
      (ranger :variables ranger-show-preview t)
      (shell :variables shell-default-shell 'eshell shell-default-height 35 shell-default-position 'bottom shell-default-full-span nil :packages
             (not company))
      shell-scripts spacemacs-layouts spell-checking sql syntax-checking theming version-control yaml)
  • System configuration features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB

Backtrace 🐾

400 - Bad request.  Please check error message and your parameters
@fnussbaum
Copy link
Collaborator

Using a default configuration, the reproduction steps lead to a correct response for me. I can only reproduce the 400 error by misconfiguration, e.g. by incorrectly setting the variable openai-user. See also the documentation of the underlying packages https://github.com/emacs-openai/openai and https://github.com/emacs-openai/chatgpt. Does the error still occur for you?

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