Skip to content

Commit

Permalink
update stream time
Browse files Browse the repository at this point in the history
  • Loading branch information
alissacrane-cb committed Nov 8, 2024
1 parent fefe345 commit cfbc085
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions app/components/AgentBalance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ export default function AgentBalance() {
query: { refetchInterval: 5000 },
});

if (!data) {
return null;
}

return (
<div className="rounded-sm border-zinc-700">
<span className="text-[#5788FA] text-base">
Expand Down
4 changes: 2 additions & 2 deletions app/components/Stream.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default function Stream({ className }: StreamProps) {
setStreamEntries((prev) => [...prev, streamEntry]);
setTimeout(() => {
setIsThinking(true);
}, 5000);
}, 800);
}, []);

const { postChat, isLoading } = useChat({
Expand All @@ -51,7 +51,7 @@ export default function Stream({ className }: StreamProps) {
if (!isLoading) {
postChat(DEFAULT_PROMPT);
}
}, 1500);
}, 6000);

return () => {
clearInterval(streamInterval);
Expand Down

0 comments on commit cfbc085

Please sign in to comment.