Skip to content

Commit

Permalink
fix: used for security comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dartpain committed Feb 13, 2025
1 parent 84f4812 commit 2d8aa22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"):
"""
Expand Down

0 comments on commit 2d8aa22

Please sign in to comment.