mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-27 19:34:38 +00:00
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:
@@ -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
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user