feat(*): 创作配置 - 支持 Midjourney、多图保存与自定义公告

Co-authored-by: ddcat666 <26564566+ddcat666@users.noreply.github.com>
This commit is contained in:
DAO-QIN
2026-10-04 10:43:31 +08:00
committed by ddcat666
parent 002a45f0c3
commit 853c7d2ce7
107 changed files with 9261 additions and 408 deletions

View File

@@ -228,6 +228,10 @@ func (s *Service) ValidateTaskCapability(input map[string]any) error {
if normalizeErr != nil || normalized == nil || normalized.Video == nil {
return BadAuthRequest("当前视频模型能力参数无效")
}
applyAutoDLVideoScreenSpec(&taskInput, normalized.Video)
if config, ok := input["config"].(map[string]any); ok {
config["size"], config["vquality"] = taskInput.Config.Size, taskInput.Config.VQuality
}
return validateVideoTask(normalized.Video, taskInput)
}
item, err := s.repo.ChannelModelByKey(channelID, providerChannelModelKey(taskInput.Config))
@@ -252,8 +256,10 @@ func (s *Service) ValidateTaskCapability(input map[string]any) error {
if normalizeErr != nil || normalized == nil || normalized.Video == nil {
return BadAuthRequest("当前视频模型能力参数无效")
}
applyAutoDLVideoScreenSpec(&taskInput, normalized.Video)
applyFixedVideoResolution(&taskInput, normalized.Video)
if config, ok := input["config"].(map[string]any); ok {
config["size"] = taskInput.Config.Size
config["vquality"] = taskInput.Config.VQuality
}
return validateVideoTask(normalized.Video, taskInput)