refactor(workflow): 统一 OSS 接口并重构恢复锁

- 将文件地址前缀与上传逻辑迁移至 common/oss
- 恢复执行改用 utils.WithLock 自动续期锁
- 转写提示词增加单镜头最小时长约束
This commit is contained in:
2026-08-29 11:51:30 +08:00
parent 740003a192
commit 67d049e586
13 changed files with 173 additions and 226 deletions
+2 -2
View File
@@ -23,7 +23,7 @@ import (
"sync"
"gitea.redpowerfuture.com/red-future/common/db/gfdb"
"gitea.redpowerfuture.com/red-future/common/utils"
"gitea.redpowerfuture.com/red-future/common/oss"
"github.com/cloudwego/eino-examples/compose/batch/batch"
"github.com/cloudwego/eino/compose"
"github.com/gogf/gf/v2/database/gdb"
@@ -670,7 +670,7 @@ func resolveFileContent(val any) (isPath bool, path string, fileBytes []byte, ex
return true, s, nil, ""
}
// MinIO 对象裸路径(无 http 前缀,模型网关转存 OSS 后返回)
if utils.IsOSSPath(s) {
if oss.IsOSSPath(s) {
return true, s, nil, ""
}
// data URIdata:<mime>;base64,<payload>