From 65658aced694e40468b9d997167e56590e40e4e3 Mon Sep 17 00:00:00 2001 From: bracesproul Date: Wed, 31 Jul 2024 15:49:06 -0700 Subject: [PATCH] fix npm2yarn --- .../docs/integrations/chat/azure.ipynb | 48 +++++++------------ 1 file changed, 16 insertions(+), 32 deletions(-) diff --git a/docs/core_docs/docs/integrations/chat/azure.ipynb b/docs/core_docs/docs/integrations/chat/azure.ipynb index ae38a699394a..9511b78d3137 100644 --- a/docs/core_docs/docs/integrations/chat/azure.ipynb +++ b/docs/core_docs/docs/integrations/chat/azure.ipynb @@ -51,8 +51,6 @@ "\n", "Once you have your instance running, make sure you have the name of your instance and key. You can find the key in the Azure Portal, under the \"Keys and Endpoint\" section of your instance. Then, if using Node.js, you can set your credentials as environment variables:\n", "\n", - "```{=mdx}\n", - "\n", "```bash\n", "AZURE_OPENAI_API_INSTANCE_NAME=\n", "AZURE_OPENAI_API_DEPLOYMENT_NAME=\n", @@ -60,40 +58,27 @@ "AZURE_OPENAI_API_VERSION=\"2024-02-01\"\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 AzureChatOpenAI integration lives in the `@langchain/openai` package:\n", "\n", "```{=mdx}\n", "\n", - "```bash npm2yarn\n", - "npm i @langchain/openai\n", - "```\n", + "import IntegrationInstallTooltip from \"@mdx_components/integration_install_tooltip.mdx\";\n", + "import Npm2Yarn from \"@theme/Npm2Yarn\";\n", + "\n", + "\n", + "\n", + "\n", + " @langchain/openai\n", + "\n", "\n", "```" ] @@ -105,9 +90,7 @@ "source": [ "## Instantiation\n", "\n", - "Now we can instantiate our model object and generate chat completions:\n", - "\n", - "- TODO: Update model instantiation with relevant params." + "Now we can instantiate our model object and generate chat completions:" ] }, { @@ -210,9 +193,7 @@ "source": [ "## Chaining\n", "\n", - "We can [chain](/docs/how_to/sequence/) our model with a prompt template like so:\n", - "\n", - "- TODO: Run cells so output can be seen." + "We can [chain](/docs/how_to/sequence/) our model with a prompt template like so:" ] }, { @@ -351,11 +332,14 @@ "\n", "```{=mdx}\n", "\n", - "```bash npm2yarn\n", - "npm install @langchain/openai\n", - "npm uninstall @langchain/azure-openai\n", + "\n", + " @langchain/openai\n", + "\n", + "\n", "```\n", "\n", + "```bash\n", + "npm uninstall @langchain/azure-openai\n", "```\n", "\n", " \n",