import React, { useState } from 'react'; import { useRecoilValue } from 'recoil'; 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'; import store from '~/store'; export default function Landing() { const [showingTemplates, setShowingTemplates] = useState(false); const conversation = useRecoilValue(store.conversation); const { title = 'New Chat' } = conversation || {}; 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 && } */}
); }