Skip to content

Commit

Permalink
don't redact text
Browse files Browse the repository at this point in the history
  • Loading branch information
joelbalcaen committed May 1, 2024
1 parent 109e760 commit 6e4ab33
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lambdas/bedrock_invoker/src/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,6 @@ def lambda_handler(event, context):
]
}

# Replace all the text values in messages with "redacted" since we don't want to log sensitive data
redacted_claude_body = claude_body.copy()

for message in redacted_claude_body["messages"]:
for content in message["content"]:
if 'text' in content:
content['text'] = "redacted"

print(f"Invoke bedrock with this body: ", claude_body)
bedrock_model = 'anthropic.claude-3-sonnet-20240229-v1:0'
print(f"Invoke bedock with this model: ", bedrock_model)
Expand Down

0 comments on commit 6e4ab33

Please sign in to comment.