| Filename | Latest commit message | Latest commit date |
|---|---|---|
- Update ReasoningBlock to start expanded and show live reasoning content - Add timing tracking with start/end timestamps for reasoning duration - Auto-collapse reasoning blocks after completion with 500ms delay - Show timing summary (e.g. 'Thought for 0.4s') instead of content when collapsed - Add streaming cursor animation and real-time content updates - Update types to support reasoning timing and streaming state - Stream reasoning content live as tokens arrive during thinking phase This provides a much better UX where users can see the model thinking in real-time, then get a clean timing summary after completion. |
||
| .. | ||
| api | ||
| e2e | ||
| public | ||
| src | ||
| .gitignore | ||
| .prettierrc | ||
| AGENT.md | ||
| eslint.config.js | ||
| index.html | ||
| package.json | ||
| playwright.config.ts | ||
| pnpm-lock.yaml | ||
| README.md | ||
| tailwind.config.js | ||
| tsconfig.app.json | ||
| tsconfig.json | ||
| tsconfig.node.json | ||
| tsconfig.worker.json | ||
| vite.config.ts | ||
| wrangler.jsonc | ||
AI chat template
An unofficial template for ⚛️ React ⨉ ⚡️ Vite ⨉ ⛅️ Cloudflare Workers AI.
Full-stack AI chat application using Workers for the APIs (using the Cloudflare vite-plugin) and Vite for the React application (hosted using Workers Static Assets). Provides chat functionality with Workers AI, stores conversations in the browser's IndexedDB, and uses ai-sdk, tailwindcss and workers-ai-provider.
Get started
Create the project using create-cloudflare:
npm create cloudflare@latest -- --template thomasgauvin/ai-chat-template
Run the project and deploy it:
cd <project-name>
npm install
npm run dev
npm run deploy
What's next?
- Change the name of the package (in
package.json) - Change the name of the worker (in
wrangler.jsonc)