You can control the website through environment variables.
- API_KEY
- MODEL
- AUTH_SECRET
- AUTH_GITHUB_ID
- AUTH_GITHUB_SECRET
- KV_URL
- KV_REST_API_URL
- KV_REST_API_TOKEN
- KV_REST_API_READ_ONLY_TOKEN
If you in China, maybe change app/api/chat/route.tss
and add next code:
// npm i undici
const { setGlobalDispatcher, ProxyAgent } = require("undici");
const dispatcher = new ProxyAgent({ uri: new URL('http://127.0.0.1:7890').toString() });
// Global fetch call enables proxy
setGlobalDispatcher(dispatcher);
The more about TypeError: fetch failed
This project is inspired by and based on the following open-source project:
- vercel/ai-chatbot - For the foundational codebase and features.