remove invalid key

This commit is contained in:
Frank Xu
2024-07-29 13:49:50 -04:00
parent 265b9fa024
commit 04a6c5841f

View File

@@ -246,7 +246,7 @@
"source": [
"#### Step 2: Config LangChain with gemini\n",
"- You `MUST` have a Gemini key\n",
"- You can load an an api key from `api_key.txt` file\n",
"- You can load an api key from `my_config.env` file\n",
"- or, hard code your open api later when you create a model"
]
},
@@ -311,7 +311,7 @@
" model=\"gemini-pro\",\n",
" generation_config=generation_config,\n",
" safety_settings=safety_settings,\n",
" # You can hardcode the key AIzaSyCDqn8xVJ4cFeiXSvhPUcnR60jfBLj5dO4k\n",
" # You can hardcode the key \n",
" google_api_key=GOOGLE_AI_STUDIO,\n",
")"
]
@@ -414,6 +414,17 @@
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
},
{
"ename": "",
"evalue": "",
"output_type": "error",
"traceback": [
"\u001b[1;31mThe Kernel crashed while executing code in the current cell or a previous cell. \n",
"\u001b[1;31mPlease review the code in the cell(s) to identify a possible cause of the failure. \n",
"\u001b[1;31mClick <a href='https://aka.ms/vscodeJupyterKernelCrash'>here</a> for more info. \n",
"\u001b[1;31mView Jupyter <a href='command:jupyter.viewOutput'>log</a> for further details."
]
}
],
"source": [