File /usr/local/lib/python3.9/site-packages/openai/api_requestor.py:687, in APIRequestor._interpret_response_line(self, rbody, rcode, rheaders, stream)
685 stream_error = stream and "error" in resp.data
686 if stream_error or not 200 <= rcode < 300:
--> 687 raise self.handle_error_response(
688 rbody, rcode, resp.data, rheaders, stream_error=stream_error
689 )
690 return resp
AuthenticationError: Your authentication token is not from a valid issuer.
Also attaching browser console error messages, It might help in debugging the issue.
I tried running it, and everything ran fine on my end. I’m guessing something changed on your end. Are you using a different API key than what is provided in the platform ?
Just in case, this is the first code cell:
import os
import openai
import sys
sys.path.append('../..')
import utils
from dotenv import load_dotenv, find_dotenv
_ = load_dotenv(find_dotenv()) # read local .env file
openai.api_key = os.environ['OPENAI_API_KEY']
When you open the lab again after a while, by then it has “reset”. So I’m guessing something unexpectedly changed, which later got reset. But all is well that ends well! Glad it is working for you now.