opt: optimize image compress alg, add cache control for image

This commit is contained in:
RockYang
2023-12-21 15:00:46 +08:00
parent 33aebf9cb5
commit 113cfae2dc
13 changed files with 130 additions and 34 deletions

View File

@@ -165,6 +165,11 @@ func main() {
// MidJourney service pool
fx.Provide(mj.NewServicePool),
fx.Invoke(func(pool *mj.ServicePool) {
if pool.HasAvailableService() {
pool.DownloadImages()
}
}),
// Stable Diffusion 机器人
fx.Provide(sd.NewServicePool),