Commit Graph
22 Commits
Author SHA1 Message Date
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 MichaudandGitHub 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 MichaudandAndreas Köpf ea40a22049 fix: nack and ack should return empty responses 2023-01-01 18:58:01 +01:00
Jack MichaudandAndreas 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öpfandAndreas Köpf 534c99610b missing 'user' -> 'prompter' replacement 2022-12-31 00:18:55 +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 35e0c32a08 Updating work_package to task 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
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 MiagkovandAndreas 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öpfandAndreas 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