diff --git a/client/src/components/Chat/Input/ChatForm.tsx b/client/src/components/Chat/Input/ChatForm.tsx index 632944eb8e..9fce650c83 100644 --- a/client/src/components/Chat/Input/ChatForm.tsx +++ b/client/src/components/Chat/Input/ChatForm.tsx @@ -1,6 +1,7 @@ import { useRecoilState } from 'recoil'; import type { ChangeEvent } from 'react'; import { useChatContext } from '~/Providers'; +import { useRequiresKey } from '~/hooks'; import AttachFile from './Files/AttachFile'; import StopButton from './StopButton'; import SendButton from './SendButton'; @@ -28,6 +29,8 @@ export default function ChatForm({ index = 0 }) { setText(''); }; + const { requiresKey } = useRequiresKey(); + return (