diff --git a/ui/app/(prowler)/lighthouse/chat.tsx b/ui/app/(prowler)/lighthouse/chat.tsx index 201f49c038..f47916c454 100644 --- a/ui/app/(prowler)/lighthouse/chat.tsx +++ b/ui/app/(prowler)/lighthouse/chat.tsx @@ -1,6 +1,7 @@ "use client"; import { useChat } from "@ai-sdk/react"; +import Link from "next/link"; import { useEffect, useRef } from "react"; import { MemoizedMarkdown } from "@/components/memoized-markdown"; @@ -12,7 +13,11 @@ interface SuggestedAction { action: string; } -export default function Chat() { +interface ChatProps { + hasApiKey: boolean; +} + +export default function Chat({ hasApiKey }: ChatProps) { const { messages, input, handleSubmit, handleInputChange, append, status } = useChat({ api: "/api/lighthouse/analyst", @@ -82,7 +87,27 @@ export default function Chat() { }; return ( -
+ Please configure your OpenAI API key to use the Lighthouse Cloud + Security Analyst. +
+ + Configure API Key + +