Vercel x xAI Chatbot

R
Renaudil y a 2 jours
0

Description

An open-source AI chatbot built with Next.js, the AI SDK, and xAI.

npx boilerapp vercel-x-xai-chatbot

文档

Features

  • Streaming text responses powered by the AI SDK by Vercel, allowing multiple AI providers to be used interchangeably with just a few lines of code.
  • Built-in tool integration for extending AI capabilities (demonstrated with a weather tool example).
  • Reasoning model support.
  • shadcn/ui components for a modern, responsive UI powered by Tailwind CSS.
  • Built with the latest Next.js App Router.

Deploy Your Own

You can deploy your own version to Vercel by clicking the button below:

Deploy with Vercel

Running Locally

  1. Clone the repository and install dependencies:

    npm install
    # or
    yarn install
    # or
    pnpm install
    
  2. Install the Vercel CLI:

    npm i -g vercel
    # or
    yarn global add vercel
    # or
    pnpm install -g vercel
    

    Once installed, link your local project to your Vercel project:

    vercel link
    

    After linking, pull your environment variables:

    vercel env pull
    

    This will create a .env.local file with all the necessary environment variables.

  3. Run the development server:

    npm run dev
    # or
    yarn dev
    # or
    pnpm dev
    
  4. Open http://localhost:3000 to view your new AI chatbot application.

Authors

This repository is maintained by the Vercel team and community contributors.

Contributions are welcome! Feel free to open issues or submit pull requests to enhance functionality or fix bugs.

Prix

Gratuit

FREE

评论 (0)

常见问题

常见问题解答 (FAQ)

有问题?我们有答案。如果您找不到想要的答案,请随时联络我们。

Boilerapp 是一个专门用于分享 Boilerplates、入门套件(Starter Kits)和项目模版的开发者社区平台。我们的目标很简单:为您节省初始配置(Setup)的时间,让您可以专注于真正重要的代码。无论您是在寻找简单的代码库还是完整的 SaaS 项目,都能在这里找到。

还有其他问题?

我们的团队随时为您提供帮助。联络我们,我们将尽快回复。