8c632f9ef9
add lang filter option to message endpoints ( #902 )
...
* add lang filter option to message endpoints
* add lang filter option to frontend_users endpoints
* move lang param before api_client
Co-authored-by: Andreas Köpf <andreas.koepf@xamla.com >
2023-01-23 21:46:59 +00:00
Andreas Köpf
0b8ed52102
fix desc ordering of message cursor endpoints
2023-01-22 18:37:09 +01:00
Andreas Köpf
186aabe3a5
improve prev,next cursor values
2023-01-21 12:19:45 +01:00
Andreas Köpf and GitHub
94e5d50537
add users/cursor keyset_pagination endpoint ( #866 )
...
* add users/cursor endpoint
* add messages/cursor endpoint
* add user/{user_id}/messages/cursor, frontend_user/{auth_method}/{username}/messages/cursor
* user regex to parse cursor value
2023-01-21 00:29:53 +01:00
Andreas Köpf
7a1a8c8b54
fetch whole message tree for purge (including non-reviewed & deleted)
2023-01-19 16:42:13 +01:00
Andreas Köpf
547e355e27
add update_leaderboard..(), admin/purge/{user-id}/messages, ban param for purge_user()
2023-01-19 15:10:22 +01:00
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
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
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
Gareth Davidson
7000e10bc0
apply pre-commit rules
2023-01-02 00:01:45 +00:00
Andreas Köpf
7b29582cbb
add to protocol.Message
2022-12-31 19:23:54 +01:00
Igor Miagkov and Andreas Köpf
ef3a35ff9c
fixes
2022-12-31 10:31:31 +01:00
Igor Miagkov and Andreas Köpf
f126b21bb3
adjust names and types to new naming
2022-12-31 10:31:31 +01:00
Igor Miagkov and Andreas Köpf
8e1d80956a
split message api endpoints
2022-12-31 10:31:31 +01:00