-
Notifications
You must be signed in to change notification settings - Fork 20
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
Support any type of id #110
Conversation
This reverts commit eecec62.
… fix frontend typing
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.
Overall it's on the right direction. Please check comments, I think we can simplify this.
Thanks! I'll work on that today. |
@@ -287,4 +287,6 @@ def delete_message( | |||
if not can_delete_message(message=message, user=user, request=request): | |||
raise AIUserNotAllowedError("User is not allowed to delete this message") | |||
|
|||
return DjangoChatMessageHistory(thread_id=message.thread_id).remove_messages([str(message.id)]) | |||
return DjangoChatMessageHistory(thread_id=message.thread_id).remove_messages( | |||
message_ids=[str(message.id)] |
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.
Now I think the str conversion is not needed anymore. Can you check that?
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.
LGTM, but it's good if @pamella reviews too
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.
LGTM
Oops, I was still testing haha |
Closes #51