修复chat生成参数提交错误BUG|模型引擎积分设置关联开发优化成功|视频/图片生成引擎API开发完成
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user