feat(agent): add built-in image and video generation tools and settings (#382)

* feat(agent): add built-in image and video generation tools and settings

* fix(settings): refine media generation layout and expose media tools in agent and quota forms

* feat(media-generation): add alibaba, bytedance, minimax, prodia, and azure providers

* feat(agent): support s3 key references for media generation and s3KeyOnly in read_asset
This commit is contained in:
Yiling-J
2026-09-06 09:28:53 +08:00
committed by GitHub
parent 1e60933cdb
commit 6285ff8618
114 changed files with 6392 additions and 78 deletions
+19
View File
@@ -61,8 +61,27 @@ declare global {
hardwareAcceleration?: HardwareAcceleration
}
export interface MediaProviderConfig {
apiKey?: string
}
export interface EnabledMediaModelConfig {
id: string
type: 'image' | 'video'
provider: string
modelId: string
name?: string
createdAt: string
}
export interface MediaGenerationSettings {
providers?: Record<string, MediaProviderConfig>
enabledModels?: EnabledMediaModelConfig[]
}
export interface Settings {
transcode: TranscodeSettings
mediaGeneration?: MediaGenerationSettings
}
// ----------------------------------------------------------------------