diff --git a/buyer/src/ui/components/ChatForm.tsx b/buyer/src/ui/components/ChatForm.tsx index e094dea..ab20996 100644 --- a/buyer/src/ui/components/ChatForm.tsx +++ b/buyer/src/ui/components/ChatForm.tsx @@ -102,6 +102,25 @@ async function streamChat( } } +/** Animated "Thinking …" placeholder shown while waiting for the model's + * first token (the assistant bubble exists but no content has streamed yet). */ +function ThinkingDots(): JSX.Element { + return ( + + Thinking + + {[0, 150, 300].map((d) => ( + + ))} + + + ); +} + export default function ChatForm({ advertRef, payment_lovelace }: ChatFormProps = {}): JSX.Element { const isPaid = advertRef !== undefined && payment_lovelace !== undefined; const advertRefStr = advertRef ? `${advertRef.txHash}#${advertRef.index}` : null; @@ -301,7 +320,7 @@ export default function ChatForm({ advertRef, payment_lovelace }: ChatFormProps {streaming !== null && (