-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue: 401 Unauthorized when following langsmith tracing instructions #666
Comments
Could you confirm that if you create a new API key in the app and re-run this code it still doesn't work? |
I've already created a new API key twice now. |
What is the actual code you are running? |
Omitting some details for brevity. this.openAI = new ChatOpenAI({
openAIApiKey: process.env.OPENAI_API_KEY,
modelName: 'gpt-4-turbo-preview',
temperature: 0.8,
});
const prompt = await hub.pull<ChatPromptTemplate>(
'seanhellebusch/[redacted]',
);
const res = await prompt
.pipe(this.openAI)
.pipe(this.outputParser)
.invoke({ input, data: this.getDataXml() }); |
I have the same problem and I think the cause is we haven't added the payment yet? |
No payment is required to send traces to langsmith. @sahellebusch are you including the literal '"' quotes in your api key? |
@hinthornw - nope. |
Having the same issue. |
thanks @hinthornw, it's working |
@VINHTRAN-VICIDEV - Does your issues relate to mine at all? If yes, how did you resolve? |
Welp, not sure where I copy/pasted it from but it's the "HUB" api key, needs to just be https://github.com/langchain-ai/langsmith-sdk/blob/main/js/src/client.ts#L445 |
Issue you'd like to raise.
Added my first project and API keys to test out the tracing functionality. Followed the instructions in the docs and set the following values:
And I keep getting the following:
Everything else works. The model calls and responds correctly. Any advice here?
Suggestion:
No response
The text was updated successfully, but these errors were encountered: