Chat GPT 4 Access Issues -

I’ve been granted access to GPT-4 through the waitlist but I can’t figure out how to use it.
In the website it doesn’t let me switch between 3.5 and 4.

2 Likes

Had a similar problem. One solution that worked for me was to generate a new API key (one created after you got access) and implement the below Javascript:

const { Configuration, OpenAIApi } = require("openai");


  const configuration = new Configuration({
    apiKey: "<INSERT-API-KEY-HERE>",
  });

  const openai = new OpenAIApi(configuration);

  const response = await openai.createChatCompletion({
    model: "gpt-4",
    messages: [
      { role: "system", content: "You are a helpful assistant." },
      { role: "user", content: "Who won the world series in 2020?" },
      { role: "assistant", content: "The Los Angeles Dodgers." },
      { role: "user", content: "Where was it played?" },
    ],
    max_tokens: 50,
    n: 1,
    stop: null,
    temperature: 1,
  });

  console.log(response.data.choices[0].message.content);

Easiest way to check which version you’re using is to check your API usage requests.

Another thing to call out is that I’m unsure you can try GPT-4 for “free” so if you haven’t added a credit card yet, try doing so. It’s very cheap anyway.

Here is a quick detailed guide as well of how to do an API request using Javascript & Next.js to Chat GPT-4 - maybe it can help out.

I had this issue and i just reinstalled openAI package? See if that works for you :slight_smile:

I have the same issue. How do you resolve this for the playground?