diff --git a/src/components/GenerateRoadmap/OpenAISettings.tsx b/src/components/GenerateRoadmap/OpenAISettings.tsx index fcf46b101..ced58b7cb 100644 --- a/src/components/GenerateRoadmap/OpenAISettings.tsx +++ b/src/components/GenerateRoadmap/OpenAISettings.tsx @@ -8,6 +8,7 @@ import { import { cn } from '../../lib/classname.ts'; import { CloseIcon } from '../ReactIcons/CloseIcon.tsx'; import { useToast } from '../../hooks/use-toast.ts'; +import { httpPost } from '../../lib/http.ts'; type OpenAISettingsProps = { onClose: () => void; @@ -20,6 +21,8 @@ export function OpenAISettings(props: OpenAISettingsProps) { const [hasError, setHasError] = useState(false); const [openaiApiKey, setOpenaiApiKey] = useState(''); + const [isLoading, setIsLoading] = useState(false); + const toast = useToast(); useEffect(() => { @@ -50,7 +53,7 @@ export function OpenAISettings(props: OpenAISettingsProps) {