PawanOsman / ChatGPT

OpenAI API Free Reverse Proxy
https://discord.pawan.krd
GNU Affero General Public License v3.0
5.62k stars 991 forks source link

An error occurred. please try again. Additionally, ensure that your request complies with OpenAI's policy. #143

Closed baabullah closed 3 months ago

baabullah commented 3 months ago
fetch("http://localhost:3040/v1/chat/completions", {
  body: '{    "model": "gpt-4o-mini",    "messages": [      {        "role": "system",        "content": "You are a poetic assistant, skilled in explaining complex programming concepts with creative flair."      },      {        "role": "user",        "content": "Compose a poem that explains the concept of recursion in programming."      }    ]  }',
  headers: {
    Authorization: "Bearer $OPENAI_API_KEY",
    "Content-Type": "application/json"
  },
  method: "POST"
});
{
    "status": false,
    "error": {
        "message": "An error occurred. please try again. Additionally, ensure that your request complies with OpenAI's policy.",
        "type": "invalid_request_error"
    },
    "support": "https://discord.pawan.krd"
}
DevinNorgarb commented 3 months ago

Same here.

Additionally, I get these in the logs:


chatgpt-next-web-1  | [Base Url] http://chatgpt:3040
chatgpt-next-web-1  | fetchUrl http://chatgpt:3040/v1/chat/completions?provider=openai&path=v1&path=chat&path=completions
chatgpt-1           | Request: POST /v1/chat/completions?provider=openai&path=v1&path=chat&path=completions 3 messages (stream-disabled)
chatgpt-next-web-1  | [Org ID] is not set up.
harshit-budhraja commented 2 months ago

@baabullah @DevinNorgarb Since I couldn't find any working API and even this doesn't work anymore, I decided to build one myself over a weekend. Here's the POC: https://t.ly/0nfaa

I'm also rolling out invites to a few early users to try it out. Link is in the post description.