ChatGPT.Net icon indicating copy to clipboard operation
ChatGPT.Net copied to clipboard

Unofficial Api return a 400 bad request

Open yangar opened this issue 1 year ago • 3 comments

image

yangar avatar Apr 13 '23 10:04 yangar

UPD same problem

devopsalexandr avatar May 25 '23 07:05 devopsalexandr

I have Response status code does not indicate success: 502 (Bad Gateway).

SwathingSoap avatar Jan 17 '24 13:01 SwathingSoap

According to discord chat history, the API provided by Pawan would not include openai models for it is hosted by creator. To use openai models, use reverse proxy instead, but that would not be free, you still need OpenAI's API key.

you can use our API as a reverse proxy and use it with OpenAI libraries in your Apps but note that you have to use our models you can't use gpt-3.5-turbo or other OpenAI models

if you mean the self-hosted version, No, the self hosted version is only a reverse proxy, you need to use your own OpenAI key to use it you can use our API if you want to use a text completion and chat completion API for free note that its not ChatGPT or OpenAI models, because we hosted our model PAI we only provide PAI

These messages is posted around 2023.9.25, at discord channel's /chat area. The API provided free pai models though, available models are pai-001-light and pai-001. They are already great at English, but use with other languages like Chinese will not be as good as gpt-3.5 etc. So maybe pai-002 would fix internationalization quality.

So the 400 code usually means you are trying to use non-support models, or the json you sent is not correct that API would not recognize. The 502 code might means you need to check if you are using right endpoint, or try reset ip. Though I haven't try to access from different IP to see what code will it return yet.

EndsM avatar Jan 22 '24 10:01 EndsM