ai cooking
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #75 from paulgmiller/pmiller/dupe

don't double save silly

authored by

Paul Miller and committed by
GitHub
be4b37d1 df4292b7

-6
-6
internal/recipes/generator.go
··· 168 168 return fmt.Errorf("failed to regenerate recipes with AI: %w", err) 169 169 } 170 170 slog.InfoContext(ctx, "regenerated chat", "location", p.String(), "duration", time.Since(start), "hash", hash) 171 - 172 - paramsJSON := lo.Must(json.Marshal(p)) 173 - if err := g.cache.Set(p.Hash()+".params", string(paramsJSON)); err != nil { 174 - slog.ErrorContext(ctx, "failed to cache params", "location", p.String(), "error", err) 175 - return err 176 - } 177 171 return saveShoppingList(ctx, g.cache, shoppingList, p) 178 172 } 179 173 slog.InfoContext(ctx, "Generating recipes for location", "location", p.String())