[Bugfix][Frontend] Redact hf_token in the non-default args log (#53625)

Signed-off-by: mhuzaifa3 <mhuzaifa3@outlook.com>
This commit is contained in:
Moe Huzaifa
2026-08-25 03:06:46 +00:00
committed by GitHub
parent b2dd9ce73d
commit d3e2888c75
2 changed files with 27 additions and 4 deletions
+1 -1
View File
@@ -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]: