same here…I was trying to complete the course today and ran into the same problem. Even previous modules (which I had completed before) I am unable to run. WHat happened?
This happened to e today in the middle of the l2-guidelines notebook.
AuthenticationError: Your authentication token is not from a valid issuer.
on this line:
Cell In[11], line 18
1 text = f"""
2 You should express what you want a model to do by \
3 providing instructions that are as clear and \
(...)
11 more detailed and relevant outputs.
12 """
13 prompt = f"""
14 Summarize the text delimited by triple backticks \
15 into a single sentence.
16 ```{text}```
17 """
---> 18 response = get_completion(prompt)
19 print(response)
Authentication error is because of 2 factors as it is not getting any response from the chat GPT as the key is not recognized .
First – Modify the program by deleting. “from dotenv import load_dotenv, find_dotenv
_ = load_dotenv(find_dotenv()) # read local .env file”
Then place the OPEN_AI_KEY as you have it from platform.openai like----
openai.api_key = “sk-q5YbaIFlwn70KwD8gdy*************************SEF”
Second please make sure your key is valid if you are using the free credit