* 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
* add disposition to text labeling tasks
* add emoji stats to ConversationMessage
* add user emoji augmentation for message queries
* add auth_method,username to message queries (query emoji status)
* add auth_method+username for single message
* fix param name typo
* only join rows when message.emojis != JSON.NULL
* formatting
* make sure emojis and user_emojis default to {}, []
* remove init_user(), use fresh empty default collections
* Added - Basic functions to export trees for users, export-ready trees and specific tree ids to files
* Added print to logger by default for no file specified
* linting to remove extra imports
* Added cli for exporting trees which are ready to export
Fixed some accidental removal
Updated message lookup to use dict for better perf
* removed unused imports
* changed export flag for including deleted prompts back to include_deleted for better understandability
* Use native collection types list, tuple, dict
* pre-commit fix
Co-authored-by: Andreas Köpf <andreas.koepf@provisio.com>