-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow initiate_chat without passing message #1244
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1244 +/- ##
===========================================
+ Coverage 33.34% 66.53% +33.19%
===========================================
Files 33 33
Lines 4456 4462 +6
Branches 1041 1098 +57
===========================================
+ Hits 1486 2969 +1483
+ Misses 2848 1182 -1666
- Partials 122 311 +189
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
If folks are OK with this change, a test should be added to cover the added case. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One nice thing about supporting user-first chats is that it matches what users of ChatGPT are used to.
@bitnom could you add a test to cover the new line added? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great PR! A test is needed to cover this case.
it is committed |
should be good now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor suggestion.
* allow initiate_chat without passing message * test human input * assert called * Add missing method a_generate_init_message * fix tests * add back skipif * Update test/agentchat/test_async_get_human_input.py --------- Co-authored-by: Chi Wang <[email protected]>
* allow initiate_chat without passing message * test human input * assert called * Add missing method a_generate_init_message * fix tests * add back skipif * Update test/agentchat/test_async_get_human_input.py --------- Co-authored-by: Chi Wang <[email protected]>
A very minor change to call
self.get_human_input()
ifmessage
is not supplied.