feat: vertexai

This commit is contained in:
Zheng Kai
2023-09-01 17:33:51 +08:00
parent e620651059
commit bdf34ab55b
18 changed files with 394 additions and 25 deletions

View File

@@ -78,6 +78,6 @@ func (pr *row) fetchRemote() (ab []byte, err error) {
func writeFailLog(hash [16]byte, ab []byte) {
date := time.Now().Format(`0102/150405`)
file := fmt.Sprintf(`fail/%s-%x.txt`, date, hash)
os.MkdirAll(path.Dir(util.StaticFile(file)), 0755)
os.MkdirAll(path.Dir(util.Static(file)), 0755)
util.WriteFile(file, ab)
}