From cd36bcade882873ffd6e810e3b0e4eec5a04cae8 Mon Sep 17 00:00:00 2001 From: Jacob Lee Date: Mon, 19 Feb 2024 21:11:01 -0800 Subject: [PATCH] Fix typos in JS readme (#455) @hinthornw @dqbd --- js/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/README.md b/js/README.md index 73eed5728..0716d9ca4 100644 --- a/js/README.md +++ b/js/README.md @@ -91,8 +91,8 @@ Langsmith's `traceable` wrapper function makes it easy to trace any function or -The easiest ways to trace calls from the [OpenAI SDK](https://platform.openai.com/docs/api-reference) with LangSmith -is using the `traceable` wrapper function available in LangSmith 0.1.0 and up. +The easiest way to trace calls from the [OpenAI SDK](https://platform.openai.com/docs/api-reference) with LangSmith +is using the `wrapOpenAI` wrapper function available in LangSmith 0.1.3 and up. In order to use, you first need to set your LangSmith API key: @@ -106,7 +106,7 @@ Next, you will need to install the LangSmith SDK and the OpenAI SDK: npm install langsmith openai ``` -After that, initialize your OpenAI client and wrap the client with `wrapOpenAI` method to enable tracing for Completion and Chat completion API: +After that, initialize your OpenAI client and wrap the client with `wrapOpenAI` method to enable tracing for the completions and chat completions methods: ```ts import { OpenAI } from "openai";