I have been trying to make a android application but have am having some trouble with the API. Whatever i try returns a code 400 and empty message... Does anyone know what i am doing wrong in this code? (I use retrofit2 and okhttp3)
#code 400 and empty message
22 messages · Page 1 of 1 (latest)
Can you print the error message that you received from the API along with the 400 error code?
the response is: Response{protocol=h2, code=400, message=, url=https://api.openai.com/v1/completions}. Srr for the late response, I somehow missed it..
Im getting a Request failed with status code 400 when sending API requests, wonder if they are related
Could be, I just figured out a way to make it in python/java since i was able to get that working...
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
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
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
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
Ohh, ty!!
I it was just an easy way of testing but i did not know it was against their tos, thanks for letting me know
The wrapper still works for me and seems to work by using a browser.. But i will try to look for some other way
For sure. I'm honestly not too sure if it breaks ToS
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.