Merge pull request #19 from langchain-ai/brace/no-api-req-note

fix: Dont require ls api key for local deployments
This commit is contained in:
Brace Sproul
2025-03-05 12:17:57 -08:00
committed by GitHub

View File

@@ -110,7 +110,9 @@ export const StreamProvider: React.FC<{ children: ReactNode }> = ({
className="flex flex-col gap-6 p-6 bg-muted/50"
>
<div className="flex flex-col gap-2">
<Label htmlFor="apiUrl">Deployment URL</Label>
<Label htmlFor="apiUrl">
Deployment URL<span className="text-rose-500">*</span>
</Label>
<p className="text-muted-foreground text-sm">
This is the URL of your LangGraph deployment. Can be a local, or
production deployment.
@@ -120,11 +122,14 @@ export const StreamProvider: React.FC<{ children: ReactNode }> = ({
name="apiUrl"
className="bg-background"
defaultValue={apiUrl ?? "http://localhost:2024"}
required
/>
</div>
<div className="flex flex-col gap-2">
<Label htmlFor="assistantId">Assistant / Graph ID</Label>
<Label htmlFor="assistantId">
Assistant / Graph ID<span className="text-rose-500">*</span>
</Label>
<p className="text-muted-foreground text-sm">
This is the ID of the graph (can be the graph name), or
assistant to fetch threads from, and invoke when actions are
@@ -135,14 +140,17 @@ export const StreamProvider: React.FC<{ children: ReactNode }> = ({
name="assistantId"
className="bg-background"
defaultValue={assistantId ?? "agent"}
required
/>
</div>
<div className="flex flex-col gap-2">
<Label htmlFor="apiKey">LangSmith API Key</Label>
<p className="text-muted-foreground text-sm">
This value is stored in your browser's local storage and is only
used to authenticate requests sent to your LangGraph server.
This is <strong>NOT</strong> required if using a local LangGraph
server. This value is stored in your browser's local storage and
is only used to authenticate requests sent to your LangGraph
server.
</p>
<PasswordInput
id="apiKey"