docs: fix migrate agent (#26353)

This commit is contained in:
Bagatur
2024-09-11 16:08:55 -07:00
committed by GitHub
parent 1ee432e904
commit cacd68b2a7

View File

@@ -65,9 +65,11 @@
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
"import getpass\n",
"import os\n", "import os\n",
"\n", "\n",
"os.environ[\"OPENAI_API_KEY\"] = \"sk-...\"" "if \"OPENAI_API_KEY\" not in os.environ:\n",
" os.environ[\"OPENAI_API_KEY\"] = getpass.getpass(\"OpenAI API key:\\n\")"
] ]
}, },
{ {
@@ -1325,7 +1327,7 @@
"name": "python", "name": "python",
"nbconvert_exporter": "python", "nbconvert_exporter": "python",
"pygments_lexer": "ipython3", "pygments_lexer": "ipython3",
"version": "3.11.2" "version": "3.11.9"
} }
}, },
"nbformat": 4, "nbformat": 4,