From d08f951dd06ac45a6ef31127ae3cf83aa3648bdd Mon Sep 17 00:00:00 2001 From: Pooria Date: Wed, 4 Jun 2025 11:50:26 -0700 Subject: [PATCH 1/2] Fix typo in Gemini prompt --- backend/app/services/gemini_with_history.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/services/gemini_with_history.py b/backend/app/services/gemini_with_history.py index b41cde6..86f4a4f 100644 --- a/backend/app/services/gemini_with_history.py +++ b/backend/app/services/gemini_with_history.py @@ -30,7 +30,7 @@ def get_gemini_response( {user_prompt} The user might provide some information about their trading strategy, their risk tolerance, or their investment goals, or their budgets and etc. - First action is to check the user prompt. If it is unrelated to the stock marker, then return some response like this: + First action is to check the user prompt. If it is unrelated to the stock market, then return some response like this: "The user prompt is not relevant to the stock market. Please provide a valid prompt." Otherwise, continue with the analysis. Based on the provided information, provide some technical analysis, fundamental analysis, From f47e49ab917abf1784b8c36bf85c667c77f3d581 Mon Sep 17 00:00:00 2001 From: Pooria Date: Wed, 4 Jun 2025 11:51:49 -0700 Subject: [PATCH 2/2] Update gemini_with_history.py