Authentication Error with Course API Key in Jupyter

I’m encountering an AuthenticationError (see attached screenshot) when using the course-provided API key in Jupyter, as mentioned in the course materials. I’m not sure if the key is correct or if there’s something else going wrong. Has anyone else faced this issue? Could you confirm if the course key is correct, or share any advice on how to fix this error?l

Are you running the course notebook in the DL.AI platform, or are you trying to run the notebook locally on your own computer?

1 Like

I’m running the notebook locally on my own Jupyter, not on the DLAI platform. I used the course API key, but I’m getting the AuthenticationError.

Additional im beginner user with very basic skill. This course is my first one related to AI.

To run a code locally successfully pre-requisite to be followed

  1. Make sure download all the files including the lab assignment codes.
  2. make sure the module version the codes were run down in course platform, you have the same module version for codes to run successfully. (you will find a requirement txt file name when you click File==> Open option which has this file, download this file too)
  3. Lastly some codes require you to have your own API keys when running codes on your local computer.

All the best exploring and practicing

1 Like

You can’t use the DL.AI API key for your own work. You need your own.

1 Like

Hi Deepti, Thank you for message. Did you face the same problem.

no

Thank you for asking @Jani1 !

As you can see the responses for this question, when running locally you need to use your own API KEY, you can get one for this chatgpt prompting course, here in the OPEN AI PLATFORM - API KEYS you need to sign up and create a new API Key for testing your experiments locally (Remember to keep well the value of the API key because it won’t be shown again by the platform in the future) - Let us know if you try this!

Also, I’m very interested in what you mention about course materials, are you referring to this short course ChatGPT Prompt Engineering for Developers, right? would you let us know please, which section, in the course, are you referring to… when saying “course materials” for “API Key”? That will be super helpful for us to improve on resources for our learners.

Lesly -DLAI