diff --git a/src/components/Settings.tsx b/src/components/Settings.tsx index 531f0fa..d1c7bd8 100644 --- a/src/components/Settings.tsx +++ b/src/components/Settings.tsx @@ -73,6 +73,7 @@ import { KeyIcon, ListIcon, MoveHorizontalIcon, + TriangleAlertIcon, } from "lucide-react"; import { Separator } from "@/components/ui/separator"; import { Slider } from "@/components/ui/slider"; @@ -519,6 +520,9 @@ export default (props: {}) => { {Tr("Settings")} + {(!ctx.chatStore.apiKey || !ctx.chatStore.apiEndpoint) && ( + + )} diff --git a/src/pages/Chatbox.tsx b/src/pages/Chatbox.tsx index 07a3c91..dad1ea9 100644 --- a/src/pages/Chatbox.tsx +++ b/src/pages/Chatbox.tsx @@ -428,24 +428,6 @@ export default function ChatBOX() { return ( <> - {!chatStore.apiKey && ( - - - Heads up! - - {Tr("Please click above to set")} (OpenAI) API KEY - - - )} - {!chatStore.apiEndpoint && ( - - - Heads up! - - {Tr("Please click above to set")} API Endpoint - - - )} {ctx.templateAPIs.length > 0 && (