Let's use AI to Earn!
TypeScript auto-publishdouyindouyin-apielectron-appelectron-reactkuaishoukwaipublishedshipinhaotoolxiaohongshu
import type { UserType } from '@yikart/common'
import type { AiLogChannel, AiLogType } from '@yikart/mongodb'
/**
* AI图片异步生成任务数据
*/
export interface AiImageData {
/** 日志ID */
logId: string
/** 用户ID */
userId: string
/** 用户类型 */
userType: UserType
/** 模型名称 */
model: string
/** 渠道 */
channel?: AiLogChannel
/** 日志类型 */
type: AiLogType
/** 失败后的额外重试次数 */
retry?: number
/** 请求参数 */
request: unknown
/** 任务类型 */
taskType: 'generation' | 'edit'
}