Suggestions updated

This commit is contained in:
nicoagostini committed 2025-06-07 11:04:15 -07:00
1 parent 19b340b004
commit 33fa0b4a89
3 files changed
+9 -3

No files matched your search

+6 -2
View File
@@ -10,10 +10,14 @@ async function generateFact(factInput) {
return response.text;
}
async function generateSuggestions() {
async function generateSuggestions(totalUserAssetValue, plan) {
const response = await ai.models.generateContent({
model: "gemini-2.0-flash",
contents: "Return a mock investment suggestion 3-5 lines only, please do not include any extra text or explanation.",
contents: `Return an investment suggestion 3-5 based on the user's total asset value and their plan. Please do not include any extra text or explanation.
Total User Asset Value: ${totalUserAssetValue}
Plan: ${plan}`,
});
return response.text;
}