修复chat生成参数提交错误BUG|模型引擎积分设置关联开发优化成功|视频/图片生成引擎API开发完成

This commit is contained in:
2026-05-28 13:00:27 +08:00
parent 5021cfd35b
commit edef601f7c
17 changed files with 890 additions and 483 deletions
+50
View File
@@ -147,6 +147,56 @@ export interface AdminNotification {
createdAt: string;
}
export type GenerationAiGenType = 'image' | 'video';
export interface GenerationAiImageEngine {
id: string;
name: string;
provider: string;
modelName: string;
supportedModels: string[];
supportedSizes: Record<string, Record<string, string>>;
defaultSize: string;
priority: number;
}
export interface GenerationAiVideoEngine {
id: string;
name: string;
provider: string;
modelName: string;
supportedModels: string[];
supportedRatios: string[];
supportedResolutions: string[];
supportedDurations: number[];
maxDuration: number;
priority: number;
}
export interface GenerationAiEnginesResponse {
engine: {
image: GenerationAiImageEngine[];
video: GenerationAiVideoEngine[];
};
}
export interface GenerationAiEngineOption {
id: string;
name: string;
provider: string;
modelName: string;
supportedModels?: string[];
supportedRatios?: string[];
supportedResolutions?: string[];
supportedDurations?: number[];
supportedSizes?: Record<string, Record<string, string>>;
defaultSize?: string;
maxDuration?: number;
priority: number;
genType: GenerationAiGenType;
}
export interface AdminGenerationRecord {
id: string;
userId: string;