mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-07-06 01:41:45 +02:00
addTimeAware
include the current date in the awareness of location
This commit is contained in:
@@ -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', ' '))
|
||||
|
||||
Reference in New Issue
Block a user