4
0
forked from crowetic/commerce

Dont reco on 1

This commit is contained in:
Malte Ubl 2024-02-03 09:58:59 -08:00
parent 9c3cc1f8b6
commit 59a00fe9ea

View File

@ -48,6 +48,7 @@ export async function getPitch({ currentProduct }: { currentProduct: Product })
const products = cart.lines
.filter((line) => line.merchandise.product.id !== currentProduct.id)
.map((line) => `"${line.merchandise.product.title}"`);
if (!products.length) return null;
const prompt = `Write a 30 word pitch for why a person who has ${products.join(
' and '