Skip to content

Commit

Permalink
fix default value
Browse files Browse the repository at this point in the history
  • Loading branch information
Wang Zhao committed Dec 9, 2022
1 parent 86b430d commit 68c9bc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ibl_ai_chatgpt_langchain/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def __init__(self):
self.timeout = 3600

def get_chat(self, unique_id, email: t.Optional[str], passowrd: t.Optional[str]):
client_data = self.chat_clients.get(unique_id)
client_data = self.chat_clients.get(unique_id, {})
if not client_data.get("timestamp"):
self.make_chat(unique_id, email, passowrd)
elif time.time() > client_data["timestamp"] + 3600:
Expand Down

0 comments on commit 68c9bc9

Please sign in to comment.