Andreas Köpf and GitHub
8906854dbf
Extract UserRepository and TaskRepository from PromptRepository
...
* Extract classes UserRepository and TaskRepository from PromptRepository
* move close_task() to TaskRepository and get_user_leaderboard to UserRepository()
* Use UserRepository in leaderboards endpoint, add type annotation to leaderboards endpoint
2023-01-08 19:08:47 +01:00
kostiak and GitHub
d183c343a9
Temporary fix for #506 to get the frontend working ( #508 )
2023-01-07 23:55:44 +01:00
Andreas Köpf and GitHub
d910c310c0
fix text_frontend 204 & creation of labeling tasks ( #487 )
2023-01-07 21:58:29 +01:00
Oliver Stanley and GitHub
45f2f3a60e
Validate text labels in text frontend ( #495 )
...
* Validate text labels in text frontend
* Correct task type
2023-01-07 21:30:18 +01:00
Daniel Hug and GitHub
f75a07301b
Conversation messages refactor add msg ids ( #500 )
...
* update ConversationMessage in protocal.py
* updated ConversationMessage instantiations in tasks.py and util.py to include message_id and frontend_message_id
* changed message_id and frontend_message_id to type UUID
* update ConversationMessage instantiation in main.py to include message_id and frontend_message_id"
* changed frontend_message_id to type str
* ran precomit
2023-01-07 19:16:32 +01:00
Andreas Köpf and GitHub
96d6717be4
Fetch conversation for seed data tasks, minor model fixes ( #485 )
...
* Fetch conversation for seed data, fix models, remove redundant payload type checks
2023-01-07 15:59:54 +01:00
Oliver Stanley and GitHub
69bc799cd9
344: Create tasks for text labels ( #381 )
...
* Implement label task for initial prompts and replies
* Resolve formatting
* Include missing argument
* Modify text_labels API to match new model, update DB schema accordingly
* Send valid labels as part of label tasks
* Send correctly formatted valid_labels list
* Fix request format
* Fix request details for text-frontend reply label task
* Include message_id in tasks
* Address review comments
* Fix alembic tree
2023-01-06 18:39:04 +01:00
Vechtomov
df0c48c4fa
clean up
2023-01-05 22:59:12 +03:00
Vechtomov
aafe93ff82
simplified random task generation
2023-01-05 22:50:51 +03:00
croumegous
fc7f8cbc1f
chore: add fastapi response model to every endpoints, add openapi documentation for API response
2023-01-02 22:55:08 +01:00
Jack Michaud and GitHub
c7ac01718c
refactor: move OasstError into oasst_shared.exceptions ( #289 )
...
* refactor: move OasstError into oasst_shared.exceptions
* fix: update OasstError import
* fix: linter errors
2023-01-02 22:03:53 +01:00
kiritowu
aa6d5786c6
Add rate limiter for task request
2023-01-03 00:28:05 +08:00
Gareth Davidson
7000e10bc0
apply pre-commit rules
2023-01-02 00:01:45 +00:00
Jack Michaud and Andreas Köpf
ea40a22049
fix: nack and ack should return empty responses
2023-01-01 18:58:01 +01:00
Jack Michaud and Andreas Köpf
e15e208b20
fix: add response_model to tasks_interaction
...
This is required for output validation and for the mock server.
2023-01-01 18:58:01 +01:00
Alex Ott
1bdd02c821
fix breaking api changes
2022-12-30 22:52:57 -08:00
Andreas Köpf and Andreas Köpf
534c99610b
missing 'user' -> 'prompter' replacement
2022-12-31 00:18:55 +01:00
Andreas Köpf and Andreas Köpf
ee14554e1b
role='user' -> role='prompter'
2022-12-31 00:18:55 +01:00
Andreas Köpf and Andreas Köpf
8b225430a4
BREAKING-CHANGES: Renaming several models/database objects + API protocol
...
person -> user
work_package -> task
post -> message
thread -> message_tree
2022-12-31 00:18:55 +01:00
alexandrelefourner and Andreas Köpf
35e0c32a08
Updating work_package to task
2022-12-31 00:18:55 +01:00
alexandrelefourner and Andreas Köpf
7743459220
Renaming post to message
2022-12-31 00:18:55 +01:00
Igor Miagkov
efafc0173a
added support for collective tasks
2022-12-29 21:32:17 +04:00
Andreas Köpf
a4e5f566a8
disable summarize_story & rate_summary tasks, we focus on conversation tasks
2022-12-29 01:31:36 +01:00
Andreas Köpf
11f249101f
Merge branch '55_backend_HTTP_error_feedback' into main
2022-12-29 00:06:22 +01:00
Igor Miagkov and Andreas Köpf
2786ad6132
Sampling random posts for tasks
2022-12-28 22:23:16 +01:00
Andreas Köpf
0c3103838b
add OasstErrorCode IntEnum, use http.HTTPStatus enum
2022-12-28 19:25:39 +01:00
Andreas Köpf
dda668bcd5
Add OasstError exception class and exception filter
2022-12-28 14:10:15 +01:00
Andreas Köpf and Andreas Köpf
602ec355cd
moved workpackage-lookup for text-replies to prompt-repository
2022-12-27 22:37:48 +01:00
Andreas Köpf
3a96cb062b
fix duplicate ack_task api-calls
2022-12-22 18:58:19 +01:00
Andreas Köpf
8c9f80c636
bot: test reaction, use logger instead of print
2022-12-20 21:03:10 +01:00
Yannic Kilcher
b34ef75423
started re-working python code
2022-12-19 18:00:09 +01:00