|
|
@@ -84,17 +84,17 @@ LongjoeAgent/
|
|
|
2. 克隆项目
|
|
|
|
|
|
3. 创建并激活虚拟环境
|
|
|
- #### 进入项目目录
|
|
|
+ 进入项目目录
|
|
|
```bash
|
|
|
cd your_project_folder
|
|
|
```
|
|
|
|
|
|
- #### 创建名为 venv 的虚拟环境
|
|
|
+ 创建名为 venv 的虚拟环境
|
|
|
```bash
|
|
|
python -m venv venv
|
|
|
```
|
|
|
|
|
|
- #### 激活环境
|
|
|
+ 激活环境
|
|
|
```bash
|
|
|
venv\Scripts\activate
|
|
|
```
|
|
|
@@ -107,17 +107,23 @@ pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
|
|
|
5. 配置DEEPSEEK_API_KEY
|
|
|
参考`.env.development.example`创建 `.env.development` 文件并配置DEEPSEEK_API_KEY
|
|
|
|
|
|
+6. 获取设备码, 并向耀申请注册码
|
|
|
+```bash
|
|
|
+python get_device_id.py
|
|
|
+```
|
|
|
+
|
|
|
+7. 配置注册码
|
|
|
+参考`.registration.example`创建 `.registration` 文件并配置REGISTRATION_CODE
|
|
|
+
|
|
|
|
|
|
-6. 启动服务
|
|
|
+8. 启动服务
|
|
|
```bash
|
|
|
python app.py
|
|
|
```
|
|
|
|
|
|
-7. 服务启动后访问
|
|
|
-健康检查: http://localhost:8888/health, 复制"device_id"的值,向耀申请注册码
|
|
|
+9. 服务启动后访问
|
|
|
+健康检查: http://localhost:8888/health, 确认服务启动成功
|
|
|
|
|
|
-8. 配置注册码
|
|
|
-参考`.registration.example`创建 `.registration` 文件并配置REGISTRATION_CODE
|
|
|
|
|
|
## API接口
|
|
|
|