feat: add logging for model details and enhance action assignment in relay tasks

This commit is contained in:
CaIon
2025-10-11 11:56:44 +08:00
parent 5fbf860020
commit 07b099006c
3 changed files with 14 additions and 6 deletions

View File

@@ -173,7 +173,6 @@ func ValidateMultipartDirect(c *gin.Context, info *RelayInfo) *dto.TaskError {
if hasInputReference {
action = constant.TaskActionGenerate
}
info.Action = action
if strings.HasPrefix(model, "sora-2") {
if size == "" {
@@ -199,6 +198,8 @@ func ValidateMultipartDirect(c *gin.Context, info *RelayInfo) *dto.TaskError {
}
}
info.Action = action
return nil
}