This commit is contained in:
11
README.md
11
README.md
@@ -43,6 +43,11 @@ Use AI (DashScope Qwen) to generate authentic WeChat Moments copy instantly.
|
||||
```env
|
||||
VITE_API_KEY=your_dashscope_api_key_here
|
||||
```
|
||||
|
||||
For Docker / production deployment, prefer using server-side env:
|
||||
```env
|
||||
DASHSCOPE_API_KEY=your_dashscope_api_key_here
|
||||
```
|
||||
|
||||
4. **Start Development Server**
|
||||
```bash
|
||||
@@ -65,13 +70,13 @@ Use AI (DashScope Qwen) to generate authentic WeChat Moments copy instantly.
|
||||
|
||||
```bash
|
||||
docker build -t wx-pyq .
|
||||
docker run -p 80:80 wx-pyq
|
||||
docker run -p 80:80 -e DASHSCOPE_API_KEY=your_dashscope_api_key_here wx-pyq
|
||||
```
|
||||
|
||||
## Note / 注意事项
|
||||
|
||||
- This is a frontend-only demo. The API Key is exposed in the browser network requests. For production, please use a backend proxy.
|
||||
- 本项目为纯前端演示。API Key 会暴露在浏览器请求中。生产环境请务必使用后端代理。
|
||||
- For dev, it can call DashScope directly (API Key is exposed in the browser). For production/Docker, the app uses a same-origin server proxy (`/api/chat/completions`) so streaming is more reliable and the key is not bundled into frontend assets.
|
||||
- 开发环境可直连 DashScope(API Key 会暴露在浏览器请求中)。生产环境/Docker 默认走同源后端代理(`/api/chat/completions`),流式更稳定且不会把 Key 打进前端静态资源。
|
||||
|
||||
## License
|
||||
|
||||
|
||||
Reference in New Issue
Block a user