From 5b3b484990c69e83b47b683d08666efb6004ed6e Mon Sep 17 00:00:00 2001 From: Shigma Date: Fri, 14 Oct 2022 20:01:33 +0800 Subject: [PATCH] chore: change default value of requestTimeout to 1min as mentioned in #40 --- package.json | 2 +- src/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 2f92714..72ff356 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "koishi-plugin-novelai", "description": "Generate images by NovelAI", - "version": "1.7.4", + "version": "1.7.7", "main": "lib/index.js", "typings": "lib/index.d.ts", "files": [ diff --git a/src/index.ts b/src/index.ts index 152fbc0..5fe146a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -83,7 +83,7 @@ export const Config = Schema.intersect([ allowAnlas: Schema.boolean().default(true).description('是否允许使用点数。禁用后部分功能 (图片增强和手动设置某些参数) 将无法使用。'), basePrompt: Schema.string().description('默认的附加标签。').default('masterpiece, best quality'), forbidden: Schema.string().role('textarea').description('违禁词列表。含有违禁词的请求将被拒绝。').default(''), - requestTimeout: Schema.number().role('time').description('当请求超过这个时间时会中止并提示超时。').default(Time.minute * 0.5), + requestTimeout: Schema.number().role('time').description('当请求超过这个时间时会中止并提示超时。').default(Time.minute), recallTimeout: Schema.number().role('time').description('图片发送后自动撤回的时间 (设置为 0 以禁用此功能)。').default(0), maxConcurrency: Schema.number().description('单个频道下的最大并发数量 (设置为 0 以禁用此功能)。').default(0), }).description('功能设置'),