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