Skip to content

Commit

Permalink
bedrock: redact authentication model args from eval logs
Browse files Browse the repository at this point in the history
  • Loading branch information
jjallaire committed Dec 27, 2024
1 parent d188548 commit 65b5c6c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## Unreleased

- Bedrock: redact authentication model args from eval logs.

## v0.3.54 (26 December 2024)

- [Tracing](https://inspect.ai-safety-institute.org.uk/tracing.html) for diagnosing runs with unterminated action (e.g. model calls, docker commands, etc.).
Expand Down
3 changes: 2 additions & 1 deletion src/inspect_ai/_eval/task/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,11 @@ def __init__(
)
packages = {PKG_NAME: importlib_metadata.version(PKG_NAME)}

# remove api_key from model_args
# redact authentication oriented model_args
model_args = model_args.copy()
if "api_key" in model_args:
del model_args["api_key"]
model_args = {k: v for k, v in model_args.items() if not k.startswith("aws_")}

# cwd_relative_path for sandbox config
if sandbox and isinstance(sandbox.config, str):
Expand Down

0 comments on commit 65b5c6c

Please sign in to comment.