From 06b47620cd8bf784222a845f7b30ea4997c64593 Mon Sep 17 00:00:00 2001 From: zaidmukaddam Date: Sun, 25 Aug 2024 21:18:44 +0530 Subject: [PATCH] system message: Add stock name from user query to retrieve and plot stock chart --- app/api/chat/route.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/app/api/chat/route.ts b/app/api/chat/route.ts index f50810b..52b6b98 100644 --- a/app/api/chat/route.ts +++ b/app/api/chat/route.ts @@ -62,6 +62,7 @@ DO's: - For text-based searches of places, use the text_search tool. Provide the query, location (optional), and radius (optional). Then, compose your response based on the search results. - For text translation queries, use the text_translate tool. Provide the text to translate, the language to translate to, and the source language (optional). Then, compose your response based on the translated text. - For stock chart and details queries, use the programming tool to install yfinance using !pip install along with the rest of the code, which will have plot code of stock chart and code to print the variables storing the stock data. Then, compose your response based on the output of the code execution. +- Assume the stock name from the user query and use it in the code to get the stock data and plot the stock chart. This will help in getting the stock chart for the user query. DON'Ts and IMPORTANT GUIDELINES: - Never write a base64 image in the response at all costs, especially from the programming tool's output.