Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sunls24/nextai
一个简单而优雅的 AI 聊天程序
https://github.com/sunls24/nextai
ai chatgpt dall-e nextjs
Last synced: 16 days ago
JSON representation
一个简单而优雅的 AI 聊天程序
- Host: GitHub
- URL: https://github.com/sunls24/nextai
- Owner: sunls24
- Created: 2023-10-26T08:15:31.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-28T13:12:23.000Z (5 months ago)
- Last Synced: 2024-07-31T08:19:13.401Z (4 months ago)
- Topics: ai, chatgpt, dall-e, nextjs
- Language: TypeScript
- Homepage: https://next.sunls.de
- Size: 1000 KB
- Stars: 16
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 💬 概述
一个简单而优雅的 AI 聊天程序
支持 ChatGPT **函数调用:**
- Google 搜索 (使用[`Programmable Search Engine`](https://programmablesearchengine.google.com/about/))
## ⚙️ 设置
#### 环境变量
- `OPENAI_API_KEY`:懂得都懂
- `OPENAI_BASE_URL`: OpenAI 代理或者 OneAPI 地址(可选)
- `GOOGLE_API_KEY`:用于 Google 搜索插件(可选)
- `GOOGLE_ENGINE_ID`:用于 Google 搜索插件(可选)_Google 的 Gemini 模型需要使用 [OneAPI](https://github.com/songquanpeng/one-api) 进行接口分发_
## 🚀 本地运行
1. 克隆仓库:
```sh
git clone https://github.com/sunls24/nextai
```2. 安装依赖项:
```bash
pnpm install
```3. 本地运行:
```bash
# 设置环境变量 OPENAI_API_KEY=sk-xxx
touch .env.local
# 本地运行
pnpm dev
```## ☁️ 使用 Vercel 部署
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fsunls24%2Fnextai&env=OPENAI_API_KEY,OPENAI_BASE_URL,GOOGLE_API_KEY,GOOGLE_ENGINE_ID)