feat: 添加 Option 类型和模型选择数据结构
This commit is contained in:
4
src/lib/types/base.ts
Normal file
4
src/lib/types/base.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export type Option<T> = {
|
||||
label: string;
|
||||
value: T;
|
||||
};
|
||||
14
src/lib/types/models.ts
Normal file
14
src/lib/types/models.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import type { Option } from "$lib/types/base";
|
||||
|
||||
export type TargetModels = 'sd15' | 'sdxl' | 'qwen' | 'qwen edit' | 'zimage' | 'zimage turbo' | 'flux' | 'flux2';
|
||||
|
||||
export const ModelChoices: Option<TargetModels>[] = [
|
||||
{ label: 'Stable Diffusion 1.5', value: 'sd15' },
|
||||
{ label: 'Stable Diffusion XL', value: 'sdxl' },
|
||||
{ label: 'Qwen Image', value: 'qwen' },
|
||||
{ label: 'Qwen Image Edit', value: 'qwen edit' },
|
||||
{ label: 'Z-Image Base', value: 'zimage' },
|
||||
{ label: 'Z-Image Turbo', value: 'zimage turbo' },
|
||||
{ label: 'Flux', value: 'flux' },
|
||||
{ label: 'Flux 2', value: 'flux2' },
|
||||
]
|
||||
Reference in New Issue
Block a user