-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enhance: if no default text-embedding set, disable knowledge for agen…
…t/workflows (#833) * enhance: if no default text-embedding set, disable knowledge for agent/workflows * Update WarningAlert.tsx
- Loading branch information
1 parent
080af7b
commit 661fc1c
Showing
4 changed files
with
62 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { CircleAlertIcon } from "lucide-react"; | ||
|
||
import { Alert, AlertDescription, AlertTitle } from "~/components/ui/alert"; | ||
|
||
export function WarningAlert({ | ||
title, | ||
description, | ||
}: { | ||
title: string; | ||
description: React.ReactNode; | ||
}) { | ||
return ( | ||
<Alert variant="default"> | ||
<CircleAlertIcon className="w-4 h-4 !text-warning" /> | ||
<AlertTitle>{title}</AlertTitle> | ||
<AlertDescription>{description}</AlertDescription> | ||
</Alert> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters