Commit Graph
15 Commits
Author SHA1 Message Date
Jack Michaud 5bb9a397b4 feat: add OasstErrorResponse to protocols
Using a shared protocol to serialize the error in the backend
allows clients to use that same protocol to deserialize it.

Changes to this protocol will be caught in tests.
2023-01-02 19:01:29 -05:00
yeungadrianandGitHub 4715a53637 #47- Create API endpoints that return leaderboards (#250)
* Leaderboard endpoints proof of concept
- New leaderboards router
- Two endpoints /api/v1/leaderboards/assistant & /api/v1/leaderboards/prompter
- Function in prompt_repository to calculate user scores

* Separating create vs 'eventual' evaluate routes

* Adding display_name to result

* Missing / in routes

* Updating route to be experimental

* Fixing format for pre-commit
2023-01-02 22:38:54 +01:00
Gareth Davidson 7000e10bc0 apply pre-commit rules 2023-01-02 00:01:45 +00:00
Jack MichaudandAndreas Köpf 904f442f5a fix: indicate that user is optional 2023-01-01 18:58:01 +01:00
Andreas Köpf 7b29582cbb add to protocol.Message 2022-12-31 19:23:54 +01:00
Igor MiagkovandAndreas Köpf ef3a35ff9c fixes 2022-12-31 10:31:31 +01:00
Igor MiagkovandAndreas Köpf 475f48b195 stats api method 2022-12-31 10:31:31 +01:00
Igor MiagkovandAndreas Köpf 13d01b5a2f management api 2022-12-31 10:31:31 +01:00
Andreas KöpfandAndreas Köpf ee14554e1b role='user' -> role='prompter' 2022-12-31 00:18:55 +01:00
Andreas KöpfandAndreas 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
alexandrelefournerandAndreas 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
Yannic Kilcher 55d003adbe added parens for readability 2022-12-25 19:00:13 +01:00
Yannic Kilcher a37bf6bf41 added text labels to the API 2022-12-25 17:08:57 +01:00
Yannic Kilcher b34ef75423 started re-working python code 2022-12-19 18:00:09 +01:00