langchain-ai / langsmith-sdk

LangSmith Client SDK Implementations
https://smith.langchain.com/
MIT License
346 stars 59 forks source link

DOC: Quick start for Log in browser #818

Open themez opened 1 week ago

themez commented 1 week ago

Issue with current documentation:

The current method for wrapping utilizes an async hook, which is available in the Node.js runtime but not in the browser.

import { wrapOpenAI } from "langsmith/wrappers";

Is there an alternative way to trace OpenAI SDK calls in a browser environment?

Idea or request for content:

No response

hinthornw commented 1 week ago

cc @dqbd I'm not aware of a recommended way for this, given that tracing currently would require putting a key within the browser code as well