[Bugfix][Frontend] Redact hf_token in the non-default args log (#53625)
Signed-off-by: mhuzaifa3 <mhuzaifa3@outlook.com>
This commit is contained in:
@@ -268,7 +268,7 @@ def jsonify_non_default_args(
|
||||
|
||||
|
||||
# Fields whose values must never be logged verbatim.
|
||||
_SENSITIVE_ARG_FIELDS = frozenset({"api_key"})
|
||||
_SENSITIVE_ARG_FIELDS = frozenset({"api_key", "hf_token"})
|
||||
|
||||
|
||||
def _redact_sensitive_args(args: dict[str, Any]) -> dict[str, Any]:
|
||||
|
||||
Reference in New Issue
Block a user