diff --git a/.gitignore b/.gitignore index e79f203..da7db7f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ node_modules dist +.idea *.log .DS_Store .eslintcache diff --git a/playground/src/Chat.tsx b/playground/src/Chat.tsx index a45c2ea..ea4dd95 100644 --- a/playground/src/Chat.tsx +++ b/playground/src/Chat.tsx @@ -42,7 +42,10 @@ export function Chat() { if (!backend) { throw new Error("Backend is not initialized"); } - const { messages, input, setMessages } = useChat(backend, initialMessages); + const { messages, input, setMessages, isPending } = useChat( + backend, + initialMessages, + ); const onClear = () => { setPrompt(""); @@ -57,6 +60,7 @@ export function Chat() { className="px-4 w-full max-w-full" messages={messages} background="right-solid" + isPending={isPending} footer={