#code 400 and empty message

22 messages · Page 1 of 1 (latest)

mild venture
wintry pumice
#

Can you print the error message that you received from the API along with the 400 error code?

mild venture
turbid sphinx
#

Im getting a Request failed with status code 400 when sending API requests, wonder if they are related

mild venture
#

Could be, I just figured out a way to make it in python/java since i was able to get that working...

turbid sphinx
#

Oh nice

#

Can you share?

#

i might be able to pick out what i might be doing wrong

#

i use python for my script too

mild venture
#

oh sure, i have not really used it a lot however since it was just a test.. Here is an example i made with kivy and chatgpt_wrapper (python modules) @turbid sphinx

#

Also, i ran these commands to make it work:

  • pip install git+https://github.com/mmabrouk/chatgpt-wrapper
  • pip install kivy
  • chatgpt install firefox *can also be another browser
GitHub

API for interacting with ChatGPT using Python and from Shell. - GitHub - mmabrouk/chatgpt-wrapper: API for interacting with ChatGPT using Python and from Shell.

warped raven
#

This wrapper is using ChatGPT in a way that isn't recommended, and could possibly be against their ToS. There is no API for ChatGPT

#

You should be using the actual API that OpenAI offers

worldly scroll
warped raven
# worldly scroll > There is no API for ChatGPT ??

ChatGPT is only available using their web service. A good reason why the wrapper doesn't work is the recent updates they've made which breaks the wrapper - which may be breaking their terms of service.

#

You can use the same GPT3.5 engine with their recent Davinci-003 model using their API - which of course is a paid service.

Otherwise you will run into problems, in many forms

mild venture
#

The wrapper still works for me and seems to work by using a browser.. But i will try to look for some other way

warped raven
mild venture
#

I also did not thinks so since you still log in with an account onto chatgpt and it seems to just make a request to the website.. but, i will look into it.