diff --git a/notebooks/Session_1.ipynb b/notebooks/Session_1.ipynb index 543cb6c..9628c6d 100644 --- a/notebooks/Session_1.ipynb +++ b/notebooks/Session_1.ipynb @@ -479,6 +479,9 @@ " #generate and share \"your\" unique hash\n", " os.environ['USER_HASH'] = secrets.token_hex(nbytes=6)\n", " print(f\"Your unique user hash is: {os.environ['USER_HASH']}\")\n", + "\n", + " #get the current API key and combine with your hash\n", + " os.environ['OPENAI_API_KEY'] = f\"{os.environ['OPENAI_API_KEY']} {os.environ['USER_HASH']}\"\n", "else:\n", " openai.api_type = os.environ['OPENAI_API_TYPE']\n", " openai.api_version = os.environ['OPENAI_API_VERSION']\n", diff --git a/notebooks/Session_2.ipynb b/notebooks/Session_2.ipynb index 2508e05..0b014f0 100644 --- a/notebooks/Session_2.ipynb +++ b/notebooks/Session_2.ipynb @@ -66,7 +66,10 @@ "\n", " #generate and share \"your\" unique hash\n", " os.environ['USER_HASH'] = secrets.token_hex(nbytes=6)\n", - " print(f\"Your unique user hash is: {os.environ['USER_HASH']}\")\n" + " print(f\"Your unique user hash is: {os.environ['USER_HASH']}\")\n", + "\n", + " #get the current API key and combine with your hash\n", + " os.environ['OPENAI_API_KEY'] = f\"{os.environ['OPENAI_API_KEY']} {os.environ['USER_HASH']}\"\n" ] }, {