mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-21 22:29:51 +00:00
docs: keep tutorial runnable in CI (#30556)
This commit is contained in:
parent
b075eab3e0
commit
08796802ca
@ -90,16 +90,9 @@
|
|||||||
"export LANGSMITH_PROJECT=\"default\" # or any other project name\n",
|
"export LANGSMITH_PROJECT=\"default\" # or any other project name\n",
|
||||||
"```\n",
|
"```\n",
|
||||||
"\n",
|
"\n",
|
||||||
"Or, if in a notebook, you can set them with:"
|
"Or, if in a notebook, you can set them with:\n",
|
||||||
]
|
"\n",
|
||||||
},
|
"```python\n",
|
||||||
{
|
|
||||||
"cell_type": "code",
|
|
||||||
"execution_count": 4,
|
|
||||||
"id": "599bb688",
|
|
||||||
"metadata": {},
|
|
||||||
"outputs": [],
|
|
||||||
"source": [
|
|
||||||
"import getpass\n",
|
"import getpass\n",
|
||||||
"import os\n",
|
"import os\n",
|
||||||
"\n",
|
"\n",
|
||||||
@ -125,7 +118,8 @@
|
|||||||
"if \"OPENAI_API_KEY\" not in os.environ:\n",
|
"if \"OPENAI_API_KEY\" not in os.environ:\n",
|
||||||
" os.environ[\"OPENAI_API_KEY\"] = getpass.getpass(\n",
|
" os.environ[\"OPENAI_API_KEY\"] = getpass.getpass(\n",
|
||||||
" prompt=\"Enter your OpenAI API key (required if using OpenAI): \"\n",
|
" prompt=\"Enter your OpenAI API key (required if using OpenAI): \"\n",
|
||||||
" )"
|
" )\n",
|
||||||
|
"```"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user