refactor: replace isLoading with status (#861)

This commit is contained in:
Jeremy 2025-03-11 15:33:18 -07:00 committed by GitHub
parent 8e561dced4
commit 553a3d825a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 72 additions and 109 deletions

View file

@ -36,7 +36,7 @@ export function Chat({
input,
setInput,
append,
isLoading,
status,
stop,
reload,
} = useChat({
@ -74,7 +74,7 @@ export function Chat({
<Messages
chatId={id}
isLoading={isLoading}
status={status}
votes={votes}
messages={messages}
setMessages={setMessages}
@ -90,7 +90,7 @@ export function Chat({
input={input}
setInput={setInput}
handleSubmit={handleSubmit}
isLoading={isLoading}
status={status}
stop={stop}
attachments={attachments}
setAttachments={setAttachments}
@ -107,7 +107,7 @@ export function Chat({
input={input}
setInput={setInput}
handleSubmit={handleSubmit}
isLoading={isLoading}
status={status}
stop={stop}
attachments={attachments}
setAttachments={setAttachments}