Commit Graph

654 Commits

Author SHA1 Message Date
Jack Michaud c2a5e08a32 (WIP) test: add test for handling OasstError 2023-01-02 19:07:01 -05:00
Jack Michaud fe21732f8d feat: handle OasstError in OasstApiClient 2023-01-02 19:06:30 -05:00
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
Yannic Kilcher 329a3bfd7a added schemas for ranking and generation task 2023-01-02 23:45:06 +01:00
Yannic Kilcher 2df4e7a735 Merge pull request #295 from croumegous/fastapi-response-model
chore: add fastapi response model to every endpoints, add openapi documentation for API response
2023-01-02 23:17:48 +01:00
Yannic Kilcher 6b8902e0cf Merge pull request #291 from audreyfeldroy/fix-readme-typos
Fix minor README typos
2023-01-02 23:08:52 +01:00
Yannic Kilcher de67b598c6 Merge pull request #286 from olliestanley/augmentation-typos
Clean up data augmentation doc
2023-01-02 22:56:42 +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
Oliver Stanley 49c8dc7b52 Resolve formatting 2023-01-02 21:53:39 +00:00
yeungadrian 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
onegunsamurai c4df46ee33 Add missing requirement to discord-bot (#292)
Co-authored-by: Vladyslav <v.bukhantsov@dexilon.io>
2023-01-02 22:20:49 +01:00
Yannic Kilcher 60d9d77b91 Merge branch 'main' of github.com:LAION-AI/Open-Chat-GPT 2023-01-02 22:17:33 +01:00
Yannic Kilcher 8847ee94f2 added dockerignore 2023-01-02 22:17:29 +01:00
Jack Michaud ed115ea17c refactor: move OasstApiClient into oasst-shared (#287)
* refactor: move api_client into oasst-shared

* refactor: move contract tests into oasst-shared

* fix: use new OasstApiClient imports in discord bot
2023-01-02 22:13:20 +01:00
Audrey Roy Greenfeld 27ce51c020 Fix minor readme typos 2023-01-02 13:13:10 -08:00
Yannic Kilcher 0a59aeb8b0 added data schemas md (#288) 2023-01-02 22:10:48 +01:00
Jack Michaud 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
Yannic Kilcher 194ee6632a added QA notebook from rallio 2023-01-02 21:51:36 +01:00
Oliver Stanley 8be5d01df7 Correct typos argumentation -> augmentation 2023-01-02 19:33:21 +00:00
Alex Ott e15259b311 Stop users from starting more than one task at a time (#265)
* make sure a user can only do 1 task at a time

* remove todo comment

* move handle_task inside a try/finally block
2023-01-02 19:32:40 +01:00
Yannic Kilcher e692cc0e07 Merge pull request #283 from andrewm4894/add-copilot-to-devcontainer
add copilot to devcontainer
2023-01-02 19:09:41 +01:00
Andrew Maguire db98de0888 prettier fix 2023-01-02 18:08:07 +00:00
Andrew Maguire 170d82099a add copilot to devcontainer 2023-01-02 18:05:15 +00:00
Andrew Maguire 571dcc283b Merge pull request #251 from andrewm4894/add-devcontainer
Add `devcontainer.json` for GitHub/VSCode codespaces
2023-01-02 17:58:45 +00:00
Andrew Maguire 75fc2d0f8f Merge branch 'LAION-AI:main' into add-devcontainer 2023-01-02 17:54:44 +00:00
Yannic Kilcher 68f4976db1 Merge pull request #281 from kiritowu/implement_fastapi_limiter
Implement Backend Fastapi limiter
2023-01-02 18:35:13 +01:00
kiritowu 4796146aa7 Fix getting api_key using dependencies 2023-01-03 01:17:36 +08:00
kiritowu 91f7828395 Merge branch 'implement_fastapi_limiter' of github.com:kiritowu/Open-Assistant into implement_fastapi_limiter 2023-01-03 00:34:41 +08:00
kiritowu 0c1eaeb066 Update docker compose to start redis on backend-dev and update REDIS_HOST in compose environment 2023-01-03 00:28:05 +08:00
kiritowu aa6d5786c6 Add rate limiter for task request 2023-01-03 00:28:05 +08:00
kiritowu bbf385bc07 Add TOO_MANY_REQUEST to OasstErrorCode 2023-01-03 00:28:05 +08:00
kiritowu 2a2968f6d4 Initialise redis connection for Fastapi limiter 2023-01-03 00:28:05 +08:00
kiritowu af0313ad5d Add fastapi-limiter to requirements.txt 2023-01-03 00:28:05 +08:00
kiritowu 4e82991b2d Update docker compose to start redis on backend-dev and update REDIS_HOST in compose environment 2023-01-03 00:22:37 +08:00
kiritowu 95089d1ccf Add rate limiter for task request 2023-01-03 00:19:55 +08:00
Andrew Maguire 7956ed0cbe try precommit 2023-01-02 15:59:41 +00:00
Yannic Kilcher bcc73d6e02 fixed encoding header 2023-01-02 16:52:31 +01:00
Yannic Kilcher 07c62c925b Merge branch 'main' of github.com:LAION-AI/Open-Chat-GPT 2023-01-02 16:38:42 +01:00
Yannic Kilcher 9fd201ded5 added verify-lobby script 2023-01-02 16:38:38 +01:00
Andrew Maguire c5a0df636f Merge remote-tracking branch 'upstream/main' into add-devcontainer 2023-01-02 15:20:24 +00:00
Keith Stevens 40b6aa26b2 Merge pull request #271 from othrayte/cypress-e2e-doc
website: Add some new detail to the docs on e2e testing
2023-01-02 21:04:29 +09:00
Adrian Cowan 447a3bce41 website: Add some new detail to the docs on e2e testing 2023-01-02 22:40:51 +11:00
Yannic Kilcher 86e099ae1a Merge pull request #262 from melvinebenezer/trivial_typo
fix: typo in EssayInstructions.md and EssayRevision.md
2023-01-02 11:55:42 +01:00
Yannic Kilcher c489f3ddc5 Merge pull request #253 from AlexanderHOtt/feat/better-docs
Write better documentation for getting started with discord bot development.
2023-01-02 11:44:55 +01:00
Yannic Kilcher 9ed5fbcf76 Merge pull request #252 from bitplane/remove-utf8-coding
Remove utf8 coding pragma from pre-commit and python files
2023-01-02 11:43:59 +01:00
Keith Stevens ad0c48795c Merge pull request #266 from othrayte/website-e2e-tests
Website e2e tests
2023-01-02 19:43:49 +09:00
Adrian Cowan dc1af6e2d8 website: Add e2e tests of ranking replies and prompts
Like the previous commit, these are intended to function as a minimal smoke test that the API interaction with the backend is functional.
2023-01-02 21:13:10 +11:00
Adrian Cowan 32e212b5a5 website: Add e2e tests of creating an assistant/prompter reply
These are intended to function as a minimal smoke test that the API interaction with the backend is functional.
2023-01-02 21:13:10 +11:00
Adrian Cowan 0df6d7fd31 website: more e2e tests for signin
Fixed issue where existing sign in test fails due to the existence of dev test login.

Added reusable cy.signInWithEmail() to login before testing rest of UI.
2023-01-02 21:13:10 +11:00
Yannic Kilcher a196af7ca8 Merge pull request #249 from bitplane/docker-compose-context
Add context to compose file so it runs in older "docker-compose"
2023-01-02 11:06:02 +01:00