An AI-powered search engine with a generative UI
TypeScript generative-aigenerative-uinextjsollamareactsearxngshadcn-uitailwindcsstavilytypescriptupstashvercel-ai-sdk
Merge branch 'main' of https://github.com/miurla/morphic into feat/refactor-streaming-for-manual-tools
Yoshiki Miurada25b9861206
diff --cc bun.lockbindex 98c3f94f,20cfbb3d..7ee58a2dBinary files differdiff --cc components/chat.tsxindex 557dd5de,14cb22f1..f9e73486--- a/components/chat.tsx+++ b/components/chat.tsx@@@ -53,17 -50,10 +53,17 @@@ export function Chat(})}+ const onSubmit = (e: React.FormEvent<HTMLFormElement>) => {+ e.preventDefault()+ setData(undefined) // reset data to clear tool call+ handleSubmit(e)+ }+return (- <div className="flex flex-col w-full max-w-3xl pt-10 pb-20 mx-auto stretch">+ <div className="flex flex-col w-full max-w-3xl pt-14 pb-36 mx-auto stretch"><ChatMessagesmessages={messages}+ data={data}onQuerySelect={onQuerySelect}isLoading={isLoading}chatId={id}diff --cc package.jsonindex d8548635,5efcc291..7d83ec10--- a/package.json+++ b/package.json@@@ -31,9 -31,10 +32,10 @@@"@radix-ui/react-tooltip": "^1.0.7","@tailwindcss/typography": "^0.5.12","@upstash/redis": "^1.34.0",- "ai": "^4.1.0",- "class-variance-authority": "^0.7.1",- "clsx": "^2.1.1",+ "ai": "^4.1.9",+ "class-variance-authority": "^0.7.0",+ "clsx": "^2.1.0",+ "cmdk": "1.0.0","embla-carousel-react": "^8.0.0","exa-js": "^1.0.12","jsdom": "^22.1.0",