Skip to content

Commit 7f816a3

Browse files
author
zhukai
committed
Update docs
1 parent f9f4161 commit 7f816a3

File tree

1 file changed

+30
-29
lines changed

1 file changed

+30
-29
lines changed

docs/config.md

Lines changed: 30 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,36 @@
11
## 配置项
22

3-
| 变量名 | 非空 | 描述 |
4-
| :-----| :----: | :---- |
5-
| mj.accounts || 参考 [账号池配置](./config.md#%E8%B4%A6%E5%8F%B7%E6%B1%A0%E9%85%8D%E7%BD%AE%E5%8F%82%E8%80%83),配置后不需要额外设置mj.discord |
6-
| mj.account-store-type || 账号存储方式,默认in_memory(内存\重启后丢失),可选redis |
7-
| mj.account-choose-rule || 账号选择策略:默认 BestWaitIdleRule(最少等待空闲)、RoundRobinRule(轮循) |
8-
| mj.api-secret || 接口密钥,为空不启用鉴权;调用接口时需要加请求头 mj-api-secret |
9-
| mj.username || 后台管理登录的用户名 |
10-
| mj.password || 后台管理登录的密码,默认为接口密钥(两者均未设置默认admin) |
11-
| mj.task-store.type || 任务存储方式,默认in_memory(内存\重启后丢失),可选redis |
12-
| mj.task-store.timeout || 任务存储过期时间,过期后删除,默认30天 |
13-
| mj.notify-hook || 全局的任务状态变更回调地址 |
14-
| mj.notify-notify-pool-size || 通知回调线程池大小,默认10 |
15-
| mj.proxy.host || 代理host,全局代理不生效时设置 |
16-
| mj.proxy.port || 代理port,全局代理不生效时设置 |
17-
| mj.ng-discord.server || https://discord.com 反代地址 |
18-
| mj.ng-discord.cdn || https://cdn.discordapp.com 反代地址 |
19-
| mj.ng-discord.wss || wss://gateway.discord.gg 反代地址 |
20-
| mj.translate-way || 中文prompt翻译成英文的方式,可选null(默认)、baidu、gpt、deepl |
21-
| mj.translate-zh-way || describe、shorten等结果转中文的方式,可选null(默认)、baidu、gpt、deepl |
22-
| mj.baidu-translate.appid || 百度翻译的appid |
3+
| 变量名 | 非空 | 描述 |
4+
|:------------------------------| :----: | :---- |
5+
| mj.accounts || 参考 [账号池配置](./config.md#%E8%B4%A6%E5%8F%B7%E6%B1%A0%E9%85%8D%E7%BD%AE%E5%8F%82%E8%80%83),配置后不需要额外设置mj.discord |
6+
| mj.account-store-type || 账号存储方式,默认in_memory(内存\重启后丢失),可选redis |
7+
| mj.account-choose-rule || 账号选择策略:默认 BestWaitIdleRule(最少等待空闲)、RoundRobinRule(轮循) |
8+
| mj.api-secret || 接口密钥,为空不启用鉴权;调用接口时需要加请求头 mj-api-secret |
9+
| mj.username || 后台管理登录的用户名 |
10+
| mj.password || 后台管理登录的密码,默认为接口密钥(两者均未设置默认admin) |
11+
| mj.task-store.type || 任务存储方式,默认in_memory(内存\重启后丢失),可选redis |
12+
| mj.task-store.timeout || 任务存储过期时间,过期后删除,默认30天 |
13+
| mj.notify-hook || 全局的任务状态变更回调地址 |
14+
| mj.notify-notify-pool-size || 通知回调线程池大小,默认10 |
15+
| mj.proxy.host || 代理host,全局代理不生效时设置 |
16+
| mj.proxy.port || 代理port,全局代理不生效时设置 |
17+
| mj.ng-discord.server || https://discord.com 反代地址 |
18+
| mj.ng-discord.cdn || https://cdn.discordapp.com 反代地址 |
19+
| mj.ng-discord.wss || wss://gateway.discord.gg 反代地址 |
20+
| mj.ng-discord.resume-wss || wss://gateway-us-east1-b.discord.gg 反代地址 |
21+
| mj.translate-way || 中文prompt翻译成英文的方式,可选null(默认)、baidu、gpt、deepl |
22+
| mj.translate-zh-way || describe、shorten等结果转中文的方式,可选null(默认)、baidu、gpt、deepl |
23+
| mj.baidu-translate.appid || 百度翻译的appid |
2324
| mj.baidu-translate.app-secret || 百度翻译的app-secret |
24-
| mj.openai.gpt-api-url || 自定义gpt的接口地址,默认不需要配置 |
25-
| mj.openai.gpt-api-key || gpt的api-key |
26-
| mj.openai.timeout || openai调用的超时时间,默认30秒 |
27-
| mj.openai.model || openai的模型,默认gpt-3.5-turbo |
28-
| mj.openai.max-tokens || 返回结果的最大分词数,默认2048 |
29-
| mj.openai.temperature || 相似度(0-2.0),默认0 |
30-
| mj.deepl-translate.auth-key || DEEPL翻译的鉴权密钥 |
31-
| mj.error-desc || 任务错误原因转换,默认使用mj提供的英文描述 |
32-
| spring.redis || 存储方式设置为redis,需配置redis相关属性 |
25+
| mj.openai.gpt-api-url || 自定义gpt的接口地址,默认不需要配置 |
26+
| mj.openai.gpt-api-key || gpt的api-key |
27+
| mj.openai.timeout || openai调用的超时时间,默认30秒 |
28+
| mj.openai.model || openai的模型,默认gpt-3.5-turbo |
29+
| mj.openai.max-tokens || 返回结果的最大分词数,默认2048 |
30+
| mj.openai.temperature || 相似度(0-2.0),默认0 |
31+
| mj.deepl-translate.auth-key || DEEPL翻译的鉴权密钥 |
32+
| mj.error-desc || 任务错误原因转换,默认使用mj提供的英文描述 |
33+
| spring.redis || 存储方式设置为redis,需配置redis相关属性 |
3334

3435
### 账号池配置参考
3536
```yaml

0 commit comments

Comments
 (0)