svelte-ai
所属分类:GPT/ChatGPT
开发工具:Svelte
文件大小:0KB
下载次数:0
上传日期:2024-04-01 02:12:29
上 传 者:
sh-1993
说明: 使用Sveltekit、OpenAI、Vercel的AI SDK、TailwindCSS和DaisyUI进行 ChatGPT的完美入门
(A perfect starter for chatGPT using Sveltekit, OpenAI, Vercel s AI SDK, TailwindCSS, and DaisyUI)
文件列表:
src/
static/
tests/
.env.example
.eslintignore
.eslintrc.cjs
.npmrc
.prettierignore
.prettierrc
package.json
playwright.config.ts
pnpm-lock.yaml
postcss.config.cjs
svelte.config.js
tailwind.config.cjs
tsconfig.json
vite.config.ts
# svelte-ai
Everything you need to build a Svelte project with Vercel's AI SDK, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/main/packages/create-svelte).
## Creating a project
If you're seeing this, you've probably already done this step. Congrats!
```bash
# create a new project in the current directory
git clone https://github.com/engageintellect/svelte-ai.git
```
## OpenAI API Key
```bash
/.env.local
OPENAI_API_KEY=sk-
```
## Developing
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
```bash
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
```
## Building
To create a production version of your app:
```bash
npm run build
```
You can preview the production build with `npm run preview`.
> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.
近期下载者:
相关文件:
收藏者: