Ai_GirlFriend/开发/0-项目启动配置清单.md
2026-02-05 10:06:07 +08:00

79 lines
1.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 项目启动配置清单
## 📁 相关文档
- `0-项目启动配置清单.md` - 本文档,配置说明
- `1-启动项目.bat` - 启动脚本
- `2-迁移图片到新OSS.md` - 图片迁移说明
- `3-迁移图片到新OSS.bat` - 图片迁移工具
## 📋 需要的服务和密钥
### 1. 阿里云 DashScope必需
**用途:** AI 大模型服务(对话、语音、图像、视频)
**需要申请:**
- DashScope API Key
**申请地址:**
- https://dashscope.aliyun.com/
**配置位置:**
```env
DASHSCOPE_API_KEY=sk-xxxxxxxxxxxxxxxx
```
**使用的模型:**
- `qwen-plus` - 对话模型
- `cosyvoice-v2` - 语音合成TTS
- `paraformer-realtime-v2` - 语音识别ASR
- `wan2.6-t2i` - 图像生成
- `wan2.6-i2v-flash` - 视频生成
- `qwen3-vl-flash` - 视觉理解
---
### 2. 阿里云 OSS必需
**用途:** 存储图片、音频、视频文件
**需要申请:**
- OSS Access Key ID
- OSS Access Key Secret
- OSS Bucket存储桶
**申请地址:**
- https://oss.console.aliyun.com/
**配置位置:**
```env
ALIYUN_OSS_ACCESS_KEY_ID=LTAI5xxxxxxxxxxxxx
ALIYUN_OSS_ACCESS_KEY_SECRET=xxxxxxxxxxxxxxxx
ALIYUN_OSS_BUCKET_NAME=你的bucket名称
ALIYUN_OSS_ENDPOINT=https://oss-cn-hangzhou.aliyuncs.com
ALIYUN_OSS_CDN_DOMAIN=https://你的bucket名称.oss-cn-hangzhou.aliyuncs.com
```
**OSS 配置步骤:**
1. 创建 Bucket选择杭州区域
2. 设置读写权限为"公共读"
3. 获取 Access Key ID 和 Secret
4. 填入配置文件
---
### 3. MySQL 数据库
**用途:** 存储用户数据、聊天记录等
**配置位置:**
```env
DATABASE_URL=mysql+pymysql://root:root@127.0.0.1:3306/fastadmin?charset=utf8mb4
```
**数据库信息:**
- 数据库名:`fastadmin`
- 用户名:`root`
- 密码:`root`
- 端口:`3306`