Skip to content

Commit

Permalink
Update docs/observability/index.mdx
Browse files Browse the repository at this point in the history
Co-authored-by: Tanushree <[email protected]>
  • Loading branch information
isahers1 and tanushree-sharma authored Jan 30, 2025
1 parent 04eaeb9 commit 032e8f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/observability/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ it has an LLM call!

## 5. Trace OpenAI calls

The first thing you might want to trace is all your OpenAI calls. LangSmith makes this easy with the [`wrap_openai`](https://docs.smith.langchain.com/reference/python/wrappers/langsmith.wrappers._openai.wrap_openai_)/[`wrapOpenAI`](https://docs.smith.langchain.com/reference/js/functions/wrappers_openai.wrapOpenAI) wrappers.
The first thing you might want to trace is all your OpenAI calls. LangSmith makes this easy with the [`wrap_openai`](https://docs.smith.langchain.com/reference/python/wrappers/langsmith.wrappers._openai.wrap_openai_) (Python) or [`wrapOpenAI`](https://docs.smith.langchain.com/reference/js/functions/wrappers_openai.wrapOpenAI) (TypeScript) wrappers.
All you have to do is modify your code to use the wrapped client instead of using the `OpenAI` client directly.

<CodeTabs
Expand Down

0 comments on commit 032e8f9

Please sign in to comment.