missuo / FreeGPT35

Utilize the unlimited free GPT-3.5-Turbo API service provided by the login-free ChatGPT Web.
GNU Affero General Public License v3.0
3.34k stars 1.03k forks source link

An incorrect status code needs to be returned #17

Closed anhao closed 5 months ago

anhao commented 5 months ago

https://github.com/missuo/FreeGPT35/blob/85a36ba9235e0f1c4668ca413566275ecb6cc93b/app.js#L249

res.status(400).write(
      JSON.stringify({
        status: false,
        error: {
          message:
            "An error happened, please make sure your request is SFW, or use a jailbreak to bypass the filter.",
          type: "invalid_request_error",
        },
      })
    );
chris-ss commented 5 months ago

same