addTimeAware

include the current date in the awareness of location
This commit is contained in:
SpudGunMan
2024-09-03 23:05:00 -07:00
parent 9b02611700
commit 0869b19408
+1
View File
@@ -102,6 +102,7 @@ def llm_query(input, nodeID=0, location_name=None):
response = ""
result = ""
location_name = location_name + f" at the current time of {datetime.now().strftime('%Y-%m-%d %H:%M:%S')}"
result = chain_prompt_model.invoke({"input": input, "llmModel": llmModel, "userID": nodeID, \
"history": llmChat_history, "context": googleResults, "location_name": location_name})
#logger.debug(f"System: LLM Response: " + result.strip().replace('\n', ' '))