vercel/ai-chatbot-svelte
소개
Vercel이 만든 기능이 풍부하고 자유롭게 수정할 수 있는 SvelteKit AI 챗봇입니다.
AI 및 머신러닝What you can do
- SvelteKit + Svelte 5
- Unified API for generating text, structured objects, and tool calls with LLMs
- Hooks for building dynamic chat and generative user interfaces
- Supports xAI (default), Groq, and other model providers
측정된 스타 증가
- in 24h
- 0
- in 7 days
- -1
- in 15 days
- -1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Original
SvelteKit AI Chatbot
An Open-Source AI Chatbot Template Built With SvelteKit and the AI SDK by Vercel.
Features · Model Providers · Deploy Your Own · Running locally
Features
- SvelteKit + Svelte 5
- AI SDK
- Unified API for generating text, structured objects, and tool calls with LLMs
- Hooks for building dynamic chat and generative user interfaces
- Supports xAI (default), Groq, and other model providers
- shadcn-svelte
- Styling with Tailwind CSS
- Component primitives from Bits UI for accessibility and flexibility
- Data Persistence
- Vercel Postgres powered by Neon for saving chat history and user data
- Vercel Blob for efficient file storage
Model Providers
This template ships with xAI grok-2-1212 as the default chat model. However, with the AI SDK, you can switch LLM providers to OpenAI, Anthropic, Cohere, and many more with just a few lines of code.
Deploy Your Own
You can deploy your own version of the SvelteKit AI Chatbot to Vercel with one click:
Running locally
You will need to use the environment variables defined in .env.example to run SvelteKit AI Chatbot. It's recommended you use Vercel Environment Variables for this, but a .env file is all that is necessary.
Note: You should not commit your
.envfile or it will expose secrets that will allow others to control access to your various AI and authentication provider accounts.
- Install Vercel CLI:
npm i -g vercel - Link local instance with Vercel and GitHub accounts (creates
.verceldirectory):vercel link - Download your environment variables:
vercel env pull
pnpm install
pnpm db:generate
pnpm dev
Your app template should now be running on localhost:5173.
관련 프로젝트 살펴보기
불러오는 중…