fix: used for security comment

This commit is contained in:
Alex
2025-02-13 11:10:44 +00:00
parent 84f4812189
commit 2d8aa229c6

View File

@@ -57,7 +57,7 @@ def check_required_fields(data, required_fields):
def get_hash(data):
return hashlib.md5(data.encode()).hexdigest()
return hashlib.md5(data.encode(), usedforsecurity=False).hexdigest()
def limit_chat_history(history, max_token_limit=None, gpt_model="docsgpt"):
"""