diff --git a/application/utils.py b/application/utils.py index 54d2086f..38bbc622 100644 --- a/application/utils.py +++ b/application/utils.py @@ -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"): """