chat

nuxt-ui-templatesMIT活跃维护

基于 Nuxt UI 和 Vercel AI SDK 的聊天机器人模板,开箱即用,帮开发者快速搭建带流式对话的 AI 聊天界面。

Nuxt AI Chatbot Template made with Nuxt UI and Vercel AI SDK.

暂无版本380star112fork同步于 2026-11-10 18:01 UTC

怎么上手

由 README 提炼,执行前请确认
npm create nuxt@latest -- -t ui/chat
pnpm install
pnpm db:migrate
pnpm dev
硬件要求按 README 说明

README 未说明,模型推理走 Vercel AI Gateway 云端,本地只需能跑 Nuxt 开发服务器

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

基于 Nuxt UI 和 Vercel AI SDK 的全功能 AI 聊天机器人模板,开箱即用

基于 Nuxt UI 和 Vercel AI SDK 的聊天机器人模板,开箱即用,帮开发者快速搭建带流式对话的 AI 聊天界面。

核心能力

  • 用 AI SDK 流式输出消息并支持思考推理
  • 通过 Vercel AI Gateway 切换 Claude、Gemini、GPT 多模型
  • 内置 Anthropic、Google、OpenAI 联网搜索工具可开关
  • GitHub OAuth 登录并用 SQLite/Turso 持久化聊天记录
  • 支持拖拽上传文件、Markdown 流式代码高亮与图表工具调用

容易踩的坑

本地开发需在 .env 设置 AI_GATEWAY_API_KEY,否则无法调用模型;认证与文件上传为可选功能,需自行创建 GitHub OAuth 应用并配置密钥;生产环境需配置 Turso 数据库连接,文件上传还需额外配置 Blob 存储驱动

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

0 个版本

暂无 release 数据(可能没有发版,或尚未同步)。

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    Nuxt AI Chatbot Template

    Nuxt UI

    Full-featured AI Chatbot Nuxt application with authentication, chat history, collapsible sidebar, keyboard shortcuts, light & dark mode, command palette and more. Built using Nuxt UI components and integrated with AI SDK for a complete chat experience.

    The chat template for Vue is on https://github.com/nuxt-ui-templates/chat-vue.

    Features

    • ⚡️ Streaming AI messages powered by the AI SDK with thinking/reasoning support
    • 🤖 Multiple model support — Claude Haiku 5.5, Gemini 3 Flash and GPT-5.6 Luna via Vercel AI Gateway
    • 🔍 Web search with built-in provider tools (Anthropic, Google, OpenAI), toggleable from the prompt menu along with extended thinking
    • 🎤 Dictation in the prompt with live streaming transcription over WebSocket through AI Gateway
    • 📊 Charts and weather tool calling with rich UI rendering
    • 🔐 Authentication via GitHub OAuth using nuxt-auth-utils
    • 💾 Chat history persistence using SQLite database (Turso in production) and Drizzle ORM
    • 📎 File uploads with drag & drop using NuxtHub Blob (requires authentication)
    • ✨ Markdown rendering with streaming code highlighting via Comark

    Quick Start

    npm create nuxt@latest -- -t ui/chat
    

    Deploy your own

    Deploy with Vercel

    Setup

    Make sure to install the dependencies:

    pnpm install
    

    Run database migrations:

    pnpm db:migrate
    

    [!NOTE] In production, configure your database connection. On Vercel, add the Turso integration to automatically provision TURSO_DATABASE_URL and TURSO_AUTH_TOKEN.

    AI Integration

    This template uses the Vercel AI SDK for streaming AI responses with support for multiple providers through Vercel AI Gateway. When deployed on Vercel, the AI Gateway is configured automatically.

    For local development, set your API key in .env:

    AI_GATEWAY_API_KEY=<your-vercel-ai-gateway-api-key>
    

    [!TIP] With Vercel AI Gateway, you don't need individual API keys for OpenAI, Anthropic, etc. It provides a unified API to access hundreds of models through a single endpoint with automatic load balancing, fallbacks, and spend monitoring.

    Authentication (Optional)

    This template uses nuxt-auth-utils for authentication with GitHub OAuth.

    To enable authentication, create a GitHub OAuth application and set:

    NUXT_OAUTH_GITHUB_CLIENT_ID=<your-github-oauth-app-client-id>
    NUXT_OAUTH_GITHUB_CLIENT_SECRET=<your-github-oauth-app-client-secret>
    NUXT_APP_SECRET=<output-of-openssl-rand-base64-32>
    

    Blob Storage (Optional)

    This template uses NuxtHub Blob for file uploads, which supports multiple storage drivers:

    • Local filesystem (default for development, stored in .data/blob)
    • Vercel Blob (auto-configured when deployed to Vercel)
    • Cloudflare R2 (when deployed to Cloudflare)
    • Amazon S3 (with manual configuration)

    For Vercel Blob, assign a Blob Store to your project from the Vercel dashboard (Project → Storage), then set the token for local development:

    BLOB_READ_WRITE_TOKEN=<your-vercel-blob-token>
    

    [!NOTE] File uploads require authentication. See the NuxtHub Blob documentation for configuring other storage drivers.

    Development Server

    Start the development server on http://localhost:3000:

    pnpm dev
    

    Production

    Build the application for production:

    pnpm build
    

    Locally preview production build:

    pnpm preview
    

    Check out the deployment documentation for more information.

    Renovate integration

    Install Renovate GitHub app on your repository and you are good to go.