Skip to content

Commit 0879680

Browse files
authored
docs: keep tutorial runnable in CI (#30556)
1 parent b075eab commit 0879680

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

docs/docs/tutorials/llm_chain.ipynb

+5-11
Original file line numberDiff line numberDiff line change
@@ -90,16 +90,9 @@
9090
"export LANGSMITH_PROJECT=\"default\" # or any other project name\n",
9191
"```\n",
9292
"\n",
93-
"Or, if in a notebook, you can set them with:"
94-
]
95-
},
96-
{
97-
"cell_type": "code",
98-
"execution_count": 4,
99-
"id": "599bb688",
100-
"metadata": {},
101-
"outputs": [],
102-
"source": [
93+
"Or, if in a notebook, you can set them with:\n",
94+
"\n",
95+
"```python\n",
10396
"import getpass\n",
10497
"import os\n",
10598
"\n",
@@ -125,7 +118,8 @@
125118
"if \"OPENAI_API_KEY\" not in os.environ:\n",
126119
" os.environ[\"OPENAI_API_KEY\"] = getpass.getpass(\n",
127120
" prompt=\"Enter your OpenAI API key (required if using OpenAI): \"\n",
128-
" )"
121+
" )\n",
122+
"```"
129123
]
130124
},
131125
{

0 commit comments

Comments
 (0)