From c77dbacceef06b865d432d74377cd355533fe00a Mon Sep 17 00:00:00 2001 From: Shigma Date: Wed, 14 Aug 2024 23:39:38 +0800 Subject: [PATCH] chore: bump versions --- package.json | 2 +- src/config.ts | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index cdca978..cab32b3 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "koishi-plugin-novelai", "description": "Generate images by diffusion models", - "version": "1.23.4", + "version": "1.24.0", "main": "lib/index.js", "typings": "lib/index.d.ts", "files": [ diff --git a/src/config.ts b/src/config.ts index b48c4ad..40aaf0c 100644 --- a/src/config.ts +++ b/src/config.ts @@ -32,12 +32,13 @@ type Orient = keyof typeof orientMap export const models = Object.keys(modelMap) as Model[] export const orients = Object.keys(orientMap) as Orient[] + export namespace scheduler { export const nai = ['native', 'karras', 'exponential', 'polyexponential'] as const export const sd = ['Automatic', 'Uniform', 'Karras', 'Exponential', 'Polyexponential', 'SGM Uniform'] as const export const horde = ['karras'] as const + export const comfyUI = ['normal', 'karras', 'exponential', 'sgm_uniform', 'simple', 'ddim_uniform'] as const } -export const schedulerComfyUI = ['normal', 'karras', 'exponential', 'sgm_uniform', 'simple', 'ddim_uniform'] as const export namespace sampler { export const nai = { @@ -361,7 +362,7 @@ export const Config = Schema.intersect([ filters: [{ name: '', extensions: ['.json'] }], allowCreate: true, }).description('API 格式的图像到图像工作流。'), - scheduler: Schema.union(schedulerComfyUI).description('默认的调度器。').default('normal'), + scheduler: Schema.union(scheduler.comfyUI).description('默认的调度器。').default('normal'), }), Schema.intersect([ Schema.object({