refactor(workflow): 统一 OSS 接口并重构恢复锁
- 将文件地址前缀与上传逻辑迁移至 common/oss - 恢复执行改用 utils.WithLock 自动续期锁 - 转写提示词增加单镜头最小时长约束
This commit is contained in:
@@ -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 URI:data:<mime>;base64,<payload>
|
||||
|
||||
Reference in New Issue
Block a user