Skip to content

Commit

Permalink
chore: shorten code
Browse files Browse the repository at this point in the history
  • Loading branch information
aaa006bd committed Sep 8, 2023
1 parent 3163a46 commit 38ece57
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ai/question.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,8 @@ def _get_chat(chat_id: str)->str:
memory_key="chat_history", return_messages=True, output_key="answer"
),
"lastQuestionTime": time.time(),
})

chatMemories[chat_id]["lastQuestion"] = time.time()

}).set('lastQuestionTime',time.time())

return chatMemories.get(chat_id,{}).get("memory")


Expand Down

0 comments on commit 38ece57

Please sign in to comment.