Add ability to call an endpoint#4
Open
whoisarpit wants to merge 1 commit into
Open
Conversation
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
| history += messages | ||
| history += [response_message] | ||
|
|
||
| return response_message.content |
There was a problem hiding this comment.
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.