Repository navigation
Fix Selected Response Bug #274
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
Merged
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
623481b
fix : update select_response method
sepandhaghighi 64fa69a
fix : update remove_response method
sepandhaghighi 51435a8
fix : update clear_responses method
sepandhaghighi 24c6ad4
fix : update update_responses method
sepandhaghighi d7e9a28
fix : update selected_response property
sepandhaghighi a93feb3
fix : update to_dict method
sepandhaghighi 9ea7842
fix : update _validate_extract_json method
sepandhaghighi a12f289
fix : update from_json method
sepandhaghighi 8ad65be
fix : update prompt tests
sepandhaghighi a99f607
fix : fix select_response method bug
sepandhaghighi 768f2d5
fix : update tests
sepandhaghighi d8ef327
fix : update tests
sepandhaghighi d1145e1
fix : update select_response method
sepandhaghighi 44e89c5
fix : update tests
sepandhaghighi 443183d
fix : update selected_response_id validation
sepandhaghighi 8284ef3
fix : update tests
sepandhaghighi 8910160
fix : update remove_response method
sepandhaghighi 4645d8a
fix : update update_responses method
sepandhaghighi 8af3322
fix : update from_json method
sepandhaghighi 9eaf7a5
fix : fix render method
sepandhaghighi d77a46e
fix : fix from_json method
sepandhaghighi e2cedc3
fix : update tests
sepandhaghighi 6f44034
fix : update tests
sepandhaghighi 8039076
fix : update prompt render tests
sepandhaghighi c3f36c7
fix : fix codacy issues
sepandhaghighi 38f11e9
doc : update CHANGELOG.md
sepandhaghighi 959a661
fix : update INVALID_RESPONSE_IDENTIFIER_MESSAGE
sepandhaghighi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
Oops, something went wrong.
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.
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.
I don't understand the relatedness of this change. Is this related to the response id issue or a separate bug fix?
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.
Previously, we only used an index to select a response. The default
selected_responsewas the first one in the list. Now that we use a message ID for this purpose, the default selected response isNone. This will lead to failures of some templates that use the termresponse. To make Memor backward-compatible and ensure a smoother flow, I added this if-else statement to therendermethod.