Skip to content

Conversation

@whoisarpit
Copy link

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 suggestions.

Comments skipped due to low confidence (2)

test.py:62

  • Add a test case to cover the behavior when the last message is not a HumanMessage.
if not isinstance(last_message, HumanMessage):

ps_fuzz/prompt_injection_fuzzer.py:219

  • The new behavior introduced by the 'target_client_initializer' and 'target_client' parameters in 'run_fuzzer' is not explicitly covered by tests. Add a test case to ensure this new behavior works as expected.
def run_fuzzer(

history += messages
history += [response_message]

return response_message.content
Copy link

Copilot AI Nov 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The method interact should return response_message instead of response_message.content to match the method signature.

Suggested change
return response_message.content
return response_message

Copilot uses AI. Check for mistakes.
history += messages
history += [response_message]

return response_message.content
Copy link

Copilot AI Nov 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The method interact should return response_message instead of response_message.content to match the method signature.

Suggested change
return response_message.content
return response_message

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants