* added changes for user specific message dumplication filter, added error codes, and settings variable as described in Draft PR #926, ran precommit
* removed debug statements
* add missing await to async_managed_tx_method
* add 2nd missing await to async_managed_tx_method
* added changes for user specific message dumplication filter, added error codes, and settings variable as described in Draft PR #926, ran precommit
* removed debug statements
* assert task user matches prompt_repository user
* removed assert statments
* moved duplicate_message_filter and message_length check into store_text_reply
* removed old checks in tree_manager
* add parsing of additional x-oasst-user header field
* simplify passing FrontendUserId to PromptRepository, use frontend_user_id on more message enpoints
* remove unrelated change
* website: Move labelling to message ... menu and add reporting and emoji reactions
We can add more emoji easily in future, we just need to pick ones that we have consistent icons for.
Also added "open in new tab" option so that messages can be navigated to from tasks on mobile.
* website: Make new label and report strings translatable.
* website: Move report api call to oasst client
* small fixes
* pre-commit
---------
Co-authored-by: AbdBarho <ka70911@gmail.com>
* fix: transaction error handling
* refactor: retry handling for all decorators as per review comments
* fix: raising retry exhausted error
* fix: avoid auto refresh on RollBack and review comments
* removed refresh_result param from managed_tx_function
---------
Co-authored-by: James Melvin <melvin@gameface.ai>
Co-authored-by: Andreas Köpf <andreas.koepf@xamla.com>
* add LabelDescription list to labeling tasks
* make +1 & -1 emoji exclusive (only one of both or none)
* add red_flag emoji to message when reported
* fix task's valid labels
* fix typo
* add preferred lonely_children extension
* simplify sampling process, lower the probability to 25%
* exclude parents for replies that were recently used
* lonely children := count > 0
* consider only tasks not done for parent exclusion
* increase lonely child sampling probability