Skip to content

Commit 47f00fb

Browse files
authored
Fix: printing target inputs/outputs causing false positive credential leaks (#44377)
* Fix: printing target inputs/outputs causing false positive credential leaks * switch to debug
1 parent 174aa88 commit 47f00fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/red_team/_callback_chat_target.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ async def send_prompt_async(self, *, prompt_request: PromptRequestResponse) -> P
4646

4747
messages.append(request.to_chat_message())
4848

49-
logger.info(f"Sending the following prompt to the prompt target: {request}")
49+
logger.debug(f"Sending the following prompt to the prompt target: {request}")
5050

5151
# Extract context from request labels if available
5252
# The context is stored in memory labels when the prompt is sent by orchestrator
@@ -100,7 +100,7 @@ async def send_prompt_async(self, *, prompt_request: PromptRequestResponse) -> P
100100
response_entry.request_pieces[0].labels["token_usage"] = token_usage
101101
logger.debug(f"Captured token usage from callback: {token_usage}")
102102

103-
logger.info("Received the following response from the prompt target" + f"{response_text}")
103+
logger.debug("Received the following response from the prompt target" + f"{response_text}")
104104
return response_entry
105105

106106
def _validate_request(self, *, prompt_request: PromptRequestResponse) -> None:

0 commit comments

Comments
 (0)