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

@@ -32,6 +32,7 @@ func (c *Core) getAB(p *pb.Req, r *http.Request) (ab []byte, cached bool, pr *ro
go func() {
reqFile := util.CacheName(p.Hash()) + `-req.json`
if !util.FileExists(reqFile) {
util.Mkdir(reqFile)
util.WriteFile(reqFile, p.Body)
}
}()