fix(recipe-generation): robustare Gemini-enheter, butter-densitet, utökad pilot-output
This commit is contained in:
@@ -110,11 +110,23 @@ async function main() {
|
||||
rejectedCount: result.rejectedCount,
|
||||
candidates: result.verificationResults.map((r) => ({
|
||||
title: r.candidate.titleSv,
|
||||
descriptionSv: r.candidate.descriptionSv,
|
||||
status: r.status,
|
||||
reasons: r.reasons,
|
||||
allergens: r.allergens,
|
||||
nutritionPerPortion: r.nutritionPerPortion,
|
||||
ingredients: r.candidate.ingredients.map((i) => i.canonicalIngredientId),
|
||||
ingredients: r.candidate.ingredients.map((i) => ({
|
||||
id: i.canonicalIngredientId,
|
||||
name: i.displayNameSv,
|
||||
quantity: i.quantity,
|
||||
unit: i.unit,
|
||||
optional: i.optional,
|
||||
})),
|
||||
steps: r.candidate.steps.map((s, idx) => ({
|
||||
number: idx + 1,
|
||||
instruction: s.instructionSv,
|
||||
durationMinutes: s.durationMinutes ?? null,
|
||||
})),
|
||||
})),
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user