Skip to content

Commit

Permalink
DH-4917 Encrypt llm_api_key
Browse files Browse the repository at this point in the history
  • Loading branch information
jcjc712 committed Oct 30, 2023
1 parent d8439f3 commit f08225d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dataherald/sql_database/models/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def set_uri_without_ssh(cls, v, values):
raise ValueError("When use_ssh is False set uri")
return v

@validator("uri", pre=True, always=True)
@validator("uri", "llm_api_key", pre=True, always=True)
def encrypt(cls, value: str):
fernet_encrypt = FernetEncrypt()
try:
Expand Down

0 comments on commit f08225d

Please sign in to comment.