feat: complete chat sessions and production startup
This commit is contained in:
+2
-2
@@ -31,7 +31,7 @@ EMBEDDING_MODEL_PATH=/models/bge-m3
|
||||
也可以启动后在“模型设置”页面填写 API Key。密钥由后端加密保存,浏览器不会直接调用模型服务。`WISEGRADE_SECRET_KEY` 一旦用于加密设置,不要随意更换,否则已保存的密钥将无法解密。
|
||||
|
||||
```bash
|
||||
docker compose up --build -d
|
||||
docker compose up
|
||||
docker compose ps
|
||||
curl http://127.0.0.1:18080/api/health
|
||||
```
|
||||
@@ -46,7 +46,7 @@ curl http://127.0.0.1:18080/api/health
|
||||
2. 在 PowerShell 中进入项目目录:`Copy-Item .env.example .env`。
|
||||
3. 编辑 `.env` 中的 `WISEGRADE_DATA_DIR`,使用正斜杠绝对路径,例如 `D:/WiseGradeData`。不要在 `.env` 中添加引号。
|
||||
4. 将离线模型目录放在 `models/bge-m3`,填写 API 配置和随机 `WISEGRADE_SECRET_KEY`。
|
||||
5. 运行 `docker compose up --build -d`,访问 <http://127.0.0.1:18080>。
|
||||
5. 运行 `docker compose up`,访问 <http://127.0.0.1:18080>。
|
||||
|
||||
如果挂载失败,先确认 `WISEGRADE_DATA_DIR` 存在、Docker Desktop 已取得对应磁盘访问权,再运行 `docker compose config` 查看展开后的挂载路径。首次启动后若修改了 `.env` 中的 API Key 等配置,运行 `docker compose up -d --force-recreate api worker web`,使容器读取新值。当前仓库尚未在 Windows 实机验证上述路径和文件挂载。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user