diff --git a/proiect-nutritie-java/src/main/webapp/index.html b/proiect-nutritie-java/src/main/webapp/index.html index b5a2020..21db6eb 100644 --- a/proiect-nutritie-java/src/main/webapp/index.html +++ b/proiect-nutritie-java/src/main/webapp/index.html @@ -3,7 +3,7 @@ - NutriAI Elite v22.0 + NutriAI Elite v23.0 @@ -114,8 +114,8 @@
-
System Refined.
- Shopping lists will only be generated upon button request. All units are synced. +
Precision Sync Active.
+ The AI is now strictly calibrated to use **DRY/RAW weights** for all ingredient measurements and calorie counts.
@@ -185,11 +185,11 @@ async function talk(custom) { const box = document.getElementById('chat'), input = document.getElementById('uIn'); const isShopReq = custom === 'GENERATE_SHOPPING_LIST'; - const text = isShopReq ? "Please generate a shopping list for the current meal plan." : (custom || input.value); + const text = isShopReq ? "Generate a shopping list based on the current plan." : (custom || input.value); if(!text) return; if(!custom) { box.innerHTML += `
${text}
`; input.value=""; } - const id = 'ai-'+Date.now(); box.innerHTML += `
Processing...
`; + const id = 'ai-'+Date.now(); box.innerHTML += `
Calculating with RAW weights...
`; box.scrollTop = box.scrollHeight; try { @@ -198,10 +198,11 @@ body: JSON.stringify({ model:"llama-3.3-70b-versatile", messages:[ {role:"system", content: `Expert Nutritionist. Target: ${document.getElementById('kcal').innerText} kcal. SYSTEM: ${isMetric ? 'METRIC' : 'IMPERIAL'}. MANDATORY RULES: - 1. ALWAYS use raw weights for ingredients in meal plans. - 2. DO NOT generate a shopping list unless the user explicitly asks for one. - 3. If requested, provide shopping list quantities in ${isMetric ? 'grams/kilograms' : 'ounces/lbs'}. - 4. Use Markdown tables.`}, + 1. ALWAYS use DRY/RAW weights for ingredients (e.g., 100g raw oats = ~380kcal, NOT 100g cooked). + 2. Explicitly label weights as "(dry)" or "(raw)" in the meal plan tables. + 3. DO NOT generate a shopping list unless requested via "GENERATE_SHOPPING_LIST". + 4. If requested, provide shopping list quantities in ${isMetric ? 'grams/kilograms' : 'ounces/lbs'}. + 5. Format response in Markdown tables.`}, {role:"user", content:text} ]}) });