Skip to content

Add ability to call an endpoint#4

Open
whoisarpit wants to merge 1 commit into
mainfrom
add_ability_to_call_endpoint
Open

Add ability to call an endpoint#4
whoisarpit wants to merge 1 commit into
mainfrom
add_ability_to_call_endpoint

Conversation

@whoisarpit

Copy link
Copy Markdown

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

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(

Comment thread test.py
history += messages
history += [response_message]

return response_message.content

Copilot AI Nov 20, 2024

Copy link

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.
Comment thread test.py
history += messages
history += [response_message]

return response_message.content

Copilot AI Nov 20, 2024

Copy link

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