Skip to content

Commit

Permalink
scripts[patch]: Nits to codeblocks in chat template (#6301)
Browse files Browse the repository at this point in the history
* scripts[patch]: Nits to codeblocks in chat template

* fix npm2yarn
  • Loading branch information
bracesproul authored Jul 31, 2024
1 parent 30515d6 commit 32569e6
Showing 1 changed file with 7 additions and 23 deletions.
30 changes: 7 additions & 23 deletions libs/langchain-scripts/src/cli/docs/templates/chat.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -45,46 +45,30 @@
"\n",
"Head to (TODO: link) to sign up to `__ModuleName__` and generate an API key. Once you've done this set the `__MODULE_NAME_ALL_CAPS___API_KEY` environment variable:\n",
"\n",
"```{=mdx}\n",
"\n",
"```bash\n",
"export __MODULE_NAME_ALL_CAPS___API_KEY=\"your-api-key\"\n",
"```\n",
"\n",
"```"
]
},
{
"cell_type": "markdown",
"id": "72ee0c4b-9764-423a-9dbf-95129e185210",
"metadata": {},
"source": [
"If you want to get automated tracing of your model calls you can also set your [LangSmith](https://docs.smith.langchain.com/) API key by uncommenting below:\n",
"\n",
"```{=mdx}\n",
"\n",
"```bash\n",
"# export LANGCHAIN_TRACING_V2=\"true\"\n",
"# export LANGCHAIN_API_KEY=\"your-api-key\"\n",
"```\n",
"\n",
"```"
]
},
{
"cell_type": "markdown",
"id": "0730d6a1-c893-4840-9817-5e5251676d5d",
"metadata": {},
"source": [
"### Installation\n",
"\n",
"The LangChain __ModuleName__ integration lives in the `__package_name_pretty__` package:\n",
"\n",
"```{=mdx}\n",
"import IntegrationInstallTooltip from \"@mdx_components/integration_install_tooltip.mdx\";\n",
"import Npm2Yarn from \"@theme/Npm2Yarn\";\n",
"\n",
"```bash npm2yarn\n",
"npm i __package_name_pretty__\n",
"```\n",
"<IntegrationInstallTooltip></IntegrationInstallTooltip>\n",
"\n",
"<Npm2Yarn>\n",
" __package_name_pretty__\n",
"</Npm2Yarn>\n",
"\n",
"```"
]
Expand Down

0 comments on commit 32569e6

Please sign in to comment.