From db9277d383c2b44ec0471e738c14b1a796a5ad85 Mon Sep 17 00:00:00 2001 From: bracesproul Date: Fri, 7 Mar 2025 14:27:28 -0800 Subject: [PATCH] fix: Update LangChain to LangSmith for API key --- src/components/agent-inbox/components/settings-popover.tsx | 4 ++-- src/components/agent-inbox/contexts/ThreadContext.tsx | 2 +- src/components/app-sidebar/index.tsx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/agent-inbox/components/settings-popover.tsx b/src/components/agent-inbox/components/settings-popover.tsx index 7fbbccf..a2d14c7 100644 --- a/src/components/agent-inbox/components/settings-popover.tsx +++ b/src/components/agent-inbox/components/settings-popover.tsx @@ -38,7 +38,7 @@ export function SettingsPopover() { setLangchainApiKey(langchainApiKeyLS); } } catch (e) { - console.error("Error getting/setting LangChain API key", e); + console.error("Error getting/setting LangSmith API key", e); } }, [langchainApiKey]); @@ -89,7 +89,7 @@ export function SettingsPopover() {

This value is stored in your browser's local storage and diff --git a/src/components/agent-inbox/contexts/ThreadContext.tsx b/src/components/agent-inbox/contexts/ThreadContext.tsx index 0bf09b1..d04301c 100644 --- a/src/components/agent-inbox/contexts/ThreadContext.tsx +++ b/src/components/agent-inbox/contexts/ThreadContext.tsx @@ -111,7 +111,7 @@ const getClient = ({ agentInboxes, getItem, toast }: GetClientArgs) => { if (!langchainApiKeyLS && deploymentUrl.includes("us.langgraph.app")) { toast({ title: "Error", - description: "Please add your LangChain API key in settings.", + description: "Please add your LangSmith API key in settings.", variant: "destructive", duration: 5000, }); diff --git a/src/components/app-sidebar/index.tsx b/src/components/app-sidebar/index.tsx index ff01a33..bf3a57b 100644 --- a/src/components/app-sidebar/index.tsx +++ b/src/components/app-sidebar/index.tsx @@ -82,7 +82,7 @@ export function AppSidebar() { setLangchainApiKey(langchainApiKeyLS); } } catch (e) { - console.error("Error getting/setting LangChain API key", e); + console.error("Error getting/setting LangSmith API key", e); } }, [langchainApiKey]);