From c9f1fc1beaf03f64ab0054b13525aae6c2a668f1 Mon Sep 17 00:00:00 2001 From: hackerESQ Date: Thu, 14 Nov 2024 23:44:04 -0600 Subject: [PATCH] feat: make the system prompt aware of current date --- resources/views/holding/show.blade.php | 2 +- resources/views/portfolio/show.blade.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/holding/show.blade.php b/resources/views/holding/show.blade.php index 2cd8380..545ea4e 100644 --- a/resources/views/holding/show.blade.php +++ b/resources/views/holding/show.blade.php @@ -207,7 +207,7 @@ * 52 week high: {$holding->market_data->fifty_two_week_high} * Dividend yield: {$holding->market_data->dividend_yield} - Based on this current market data, quantity owned, and average cost basis, you should determine if the {$holding->symbol} holding is making or losing money. + This data is current as of today's date: " . now()->format('Y-m-d') . ". Based on this current market data, quantity owned, and average cost basis, you should determine if the {$holding->symbol} holding is making or losing money. Below is the question from the investor. Considering these facts, provide a concise response to the following question (give a direct response). Limit your response to no more than 75 words and consider using a common decision framework. Use github style markdown for any formatting:" ]) diff --git a/resources/views/portfolio/show.blade.php b/resources/views/portfolio/show.blade.php index a7184ea..e8057aa 100644 --- a/resources/views/portfolio/show.blade.php +++ b/resources/views/portfolio/show.blade.php @@ -173,7 +173,7 @@ {$formattedHoldings} - Based on the current market data, quantity owned, and average cost basis, you can determine the performance of any holding. + This data is current as of today's date: " . now()->format('Y-m-d') . ". Based on the current market data, quantity owned, and average cost basis, you can determine the performance of any holding. Below is the question from the investor. Considering these facts, provide a concise response to the following question (give a direct response). Limit your response to no more than 75 words and consider using a common decision framework. Use github style markdown for any formatting:" ])