refactor(*): 平台架构 - 拆分后端领域模块并同步插件协议与模型能力
This commit is contained in:
@@ -2,12 +2,25 @@ import { http } from "@/services/api/request";
|
||||
|
||||
export type InputConstraint = { min: number; max: number };
|
||||
export type OptionConstraint = { values?: unknown[]; min?: number; max?: number; step?: number };
|
||||
export type CapabilityImageSizePreset = {
|
||||
size: string;
|
||||
tier: "1k" | "2k" | "4k";
|
||||
ratio: string;
|
||||
width: number;
|
||||
height: number;
|
||||
};
|
||||
export type CapabilityImageSize = {
|
||||
parameter?: "size" | "aspect_ratio";
|
||||
allowCustom?: boolean;
|
||||
presets?: CapabilityImageSizePreset[];
|
||||
};
|
||||
export type CapabilitySpec = {
|
||||
version: 1;
|
||||
capability: "text" | "image" | "video" | "audio";
|
||||
operations?: string[];
|
||||
inputs?: Record<string, InputConstraint>;
|
||||
options?: Record<string, OptionConstraint>;
|
||||
imageSize?: CapabilityImageSize;
|
||||
};
|
||||
|
||||
export type ModelRequestIntent = {
|
||||
|
||||
Reference in New Issue
Block a user