import React, { useState } from 'react'; import { useDispatch } from 'react-redux'; import { setText } from '~/store/textSlice'; import useDocumentTitle from '~/hooks/useDocumentTitle'; import Templates from '../Prompts/Templates'; import SunIcon from '../svg/SunIcon'; import LightningIcon from '../svg/LightningIcon'; import CautionIcon from '../svg/CautionIcon'; import ChatIcon from '../svg/ChatIcon'; export default function Landing({ title }) { const [showingTemplates, setShowingTemplates] = useState(false); const dispatch = useDispatch(); useDocumentTitle(title); const clickHandler = (e) => { e.preventDefault(); const { innerText } = e.target; const quote = innerText.split('"')[1].trim(); dispatch(setText(quote)); }; const showTemplates = (e) => { e.preventDefault(); setShowingTemplates(!showingTemplates); }; return (

ChatGPT Clone

Examples

Capabilities

  • Remembers what user said earlier in the conversation
  • Allows user to provide follow-up corrections
  • Trained to decline inappropriate requests

Limitations

  • May occasionally generate incorrect information
  • May occasionally produce harmful instructions or biased content
  • Limited knowledge of world and events after 2021
{!showingTemplates && (
)} {!!showingTemplates && }
); }