Commit Graph

1999 Commits

Author SHA1 Message Date
Alex Ott dfd2c35276 Feat/task handler (#1056)
* move task logic to task handlers

* rename command

* remove test code

* rename classes and add missing handler creations

* switch task back to random and fetch log_channel_id from db
2023-02-02 17:28:00 +01:00
Andreas Köpf 2db3450e9a add trollboards 2023-02-02 16:10:38 +01:00
Keith Stevens fa53505369 Merge pull request #1069 from LAION-AI/flag-label-desciptions
website: show descriptions for label flags
2023-02-02 21:09:53 +09:00
Keith Stevens 242a1e6f3d Merge pull request #1066 from LAION-AI/hide_system_emojis
hide system emojis starting with '_'
2023-02-02 21:06:27 +09:00
AbdBarho 2d10c9f72b Merge pull request #1067 from notmd/side_menu_regression
fix side menu regression
2023-02-02 11:36:10 +01:00
Adrian Cowan b1d86ebc65 website: show descriptions for label flags
Desciptions are shown both via tooltips, which are easier to read on desktop browsers, and via an explain (i) button so that mobile users can get the description (though in one larger list).
2023-02-02 21:34:35 +11:00
Andreas Köpf c84453900f simplify destructuring
Co-authored-by: notmd <33456881+notmd@users.noreply.github.com>
2023-02-02 10:23:06 +01:00
AbdBarho e1f52c76d7 Merge pull request #1051 from notmd/bundle_analyzer
Setup bundle analyzer
2023-02-02 10:13:09 +01:00
notmd 9fa22be66e fix side menu regression 2023-02-02 16:07:45 +07:00
Vechtomov cbf3c22560 Add new datasets contribution guide (#1061)
* Add readme

* change link in CONTRIBUTING
2023-02-02 07:52:39 +01:00
Andreas Köpf aa39019e1c hide system emojis starting with '_' 2023-02-02 00:23:33 +00:00
Andreas Köpf 5f7013fb81 add '_' prefix to special emoji codes, fix skip rankings 2023-02-02 00:51:20 +01:00
Andreas Köpf f4b534eb17 no task ack check for skip 2023-02-02 00:27:27 +01:00
Andreas Köpf d33fb9ce88 fix alembic downgrade script of 7b8f0011e0b0 2023-02-02 00:15:49 +01:00
Andreas Köpf 779f522385 Skip tasks permanently based on special skip emoji codes (#1064)
* add skip emojis

* extend tree_manager queries to exclude tasks based on skip-emojis

* remove unrelated columns

* change skip_reason max_length to 512

* update down_revision to 55361f323d12
2023-02-02 00:07:08 +01:00
Andreas Köpf bbf038677c Add terms of service acceptance date to user table (#1046)
* add tos_acceptance_date column to user

* send 451 UNAVAILABLE_FOR_LEGAL_REASONS status

* add create user REST endpoint

* adapt text-frontend to ToS requirements

* set DEBUG_IGNORE_TOS_ACCEPTANCE default to True (temporary change)

* update down revision to f60958968ff8
2023-02-01 23:53:21 +01:00
Andreas Köpf e0df9f0b7c Add infty prompting + prompt-lottery (#1055)
* first bits of prompt-lottery

* add tree prompt lottery

* minor text changes
2023-02-01 23:49:21 +01:00
AbdBarho 638d8c1572 Merge pull request #1059 from occupytheweb/1058_fix__instruction_not_displayed
1058: Fix display of task instruction
2023-02-01 21:49:25 +01:00
Alan Jean 91d3045595 fix(website): fix display of task instruction
Fixes the misuse of the i18n lib which caused the task instruction not
to appear above the response text-area when an 'instruction' translation
key exists for the current task.

Fixes #1058
2023-02-01 23:00:00 +04:00
notmd ff94e3a6e0 support window 2023-02-01 20:30:04 +07:00
sryu1 d145f6677a Minor updates to prompting guide (#1050) 2023-02-01 13:00:23 +00:00
notmd fdd57eda85 setup bundle analyzer 2023-02-01 19:45:43 +07:00
Keith Stevens caa6331a72 Merge pull request #1049 from notmd/cleanup
Various website cleanup
2023-02-01 21:07:55 +09:00
notmd 79a39771aa remove root styles folder 2023-02-01 17:55:29 +07:00
notmd c6bf5bc907 Merge branch 'main' into cleanup 2023-02-01 17:31:03 +07:00
notmd 1e2948743d wip 2023-02-01 17:22:44 +07:00
AbdBarho 2d97ffa371 Merge pull request #1048 from LAION-AI/missing-message-functions-initial-label-task
website: Add missing message features in label initial prompt
2023-02-01 10:00:24 +01:00
AbdBarho 849996c22d Merge pull request #1040 from notmd/995_available_task
Display number of available tasks
2023-02-01 09:44:43 +01:00
Adrian Cowan 530d3e1d1d website: Add missing message features in label initial prompt
Now the backend passes a single message conversation for the label initial prompt task,
this allows us to just show the conversation the same way we do for the other labelling tasks.

The MessageView component was now no longer used and all messages shown are using MessageTableEntry.
2023-02-01 19:36:52 +11:00
Korbinian Pöppel 2d2fdef889 Update FAQs for docker port problems. (#1045) 2023-02-01 08:31:04 +00:00
notmd 36e55c9bf4 extract to theme 2023-02-01 14:53:28 +07:00
notmd c8cd869594 extract type 2023-02-01 14:34:47 +07:00
Keith Stevens 04e81edf5c Merge pull request #932 from notmd/911_sigin_captcha
911 signin captcha
2023-02-01 15:56:14 +09:00
Keith Stevens 0351dd74ae Merge pull request #1042 from chs20/fix/newline-full-text-modal
Display newlines in full text modal during ranking
2023-02-01 14:46:20 +09:00
chs20 25ca82f7e5 Fix #1034 - display newlines in full text modal during ranking 2023-01-31 22:27:14 +01:00
Alan Jean bc8d352bf4 Merge pull request #1024 from occupytheweb/913_inference_server_docker_setup
inference: Define container images and compose descriptor for the inference stack
2023-01-31 20:33:45 +04:00
notmd f569c6d12b Display number of available tasks 2023-01-31 22:00:14 +07:00
Andreas Köpf af0ae71bbe Add message to prompt-labeling task (#1035)
* add full message to prompt-labeling & always require full prompt labeling

* always sending conversation, also for initial prompt labeling

* update type annotation
2023-01-31 14:42:04 +00:00
Andreas Köpf 9b8574f247 Limit number of replies to assistant messages (#1036)
* limit replies to assistant messages

* revert some debug changes

* use uuid for random message id in auto_main

* Update config.py
2023-01-31 15:08:54 +01:00
Andreas Köpf b6bdb84019 Add endpoint to query nearby leaderboard rows (#1038)
* add is_current_user bool

* add user leaderboard surrounding window function
2023-01-31 15:05:05 +01:00
notmd 4d2baf09a7 fix typo 2023-01-31 20:13:52 +07:00
Keith Stevens 355d621488 Merge pull request #1033 from paulovn/fix/website-fail-label
website: changed the UI label for failed answer to avoid implicit negative
2023-01-31 22:06:11 +09:00
notmd 158cb02025 try disable captcha 2023-01-31 19:53:37 +07:00
Andreas Köpf 8198c10a46 Merge branch 'main' of github.com:LAION-AI/Open-Chat-GPT into main 2023-01-31 13:08:22 +01:00
Andreas Köpf 65d69dac66 fix steak interaction changes 2023-01-31 13:08:13 +01:00
Keith Stevens c262255986 Merge pull request #1021 from rjmacarthy/feature/admin-user-link
website: Add link to user admin page in messages dropdown for admin users
2023-01-31 21:03:01 +09:00
James Melvin Ebenezer 063157355c 906: update user streaks (#1016)
* fix: update user streaks
* Moved  streak_last_day_date & streak_days from UserStats to User
* Updated Alembic version
* update last_activity after tm.handle_interaction()
* periodically executed function in main.py to update the user_streak every 4hrs

* fix:removed log messages

* fix: pre commit issues

* refactor: incorporated review comments

* fix: removed the managed -scope.

* refactor: managed_tx to Outer REST Db Ops in /interaction API

* fix: pre-commit changes

* fix: added streak and last_activity_date to protocol.FrontEndUser

* fix: pre-commit fixes after merge

* fix: added streak info to user_stat_repository, leaderboard and review comments

* fix: proper 4h delay and simpler startup_time initialisation

---------

Co-authored-by: James Melvin <melvin@gameface.ai>
2023-01-31 12:27:45 +01:00
rjmacarthy d5e94b5a5e Fix Messages stories wrap with SessionProvider 2023-01-31 10:04:13 +00:00
Andreas Köpf 2b561a0dde add endpoint to put message tree into 'halted_by_moderator' state (#1025)
* add PUT endpoint to put message tree into halted_by_moderator state

* add private _reactivate_tree() method
2023-01-31 09:28:33 +01:00
Paulo Villegas 9aca76daa7 changed the UI label for failed answer to avoid implicit negative 2023-01-31 09:28:29 +01:00