Commit Graph

1444 Commits

Author SHA1 Message Date
Yannic Kilcher f497bf11d0 Merge branch 'main' of github.com:LAION-AI/Open-Chat-GPT 2023-01-16 00:24:03 +01:00
Yannic Kilcher 51409281e2 added production workflow 2023-01-16 00:23:59 +01:00
Yannic Kilcher 0efade980d fixed staging deployment 2023-01-16 00:22:59 +01:00
Andreas Köpf de28d67031 infer role from task in store_text_reply() 2023-01-16 00:19:30 +01:00
Yannic Kilcher c0cb15bbb0 fixing text frontend and startup creation 2023-01-16 00:11:20 +01:00
Yannic Kilcher dbdb3a0823 fixed workflow 2023-01-15 23:48:54 +01:00
Yannic Kilcher fb1ff33057 fixed workflow 2023-01-15 23:44:46 +01:00
Yannic Kilcher 5d441b1570 prepared playbook for prod 2023-01-15 23:30:16 +01:00
Yannic Kilcher cc03376d86 added root tokens and endpoint for adding api keys (#742)
* added root tokens and endpoint for adding api keys

* Change down revision to current alembic head

* removed added_by_root_token

* refactored description

* fixed jinja errors

Co-authored-by: Andreas Köpf <andreas.koepf@provisio.com>
2023-01-15 21:24:25 +00:00
Andreas Köpf e58ffd64fa add /api/v1/users/{user_id}/stats endpoint (#744)
* add /api/v1/users/{user_id}/stats endpoint

* return 0 stats and add /api/v1/users/{user_id}/stats/{time_frame}

* use utcnow() as modified date for 0 stats
2023-01-15 20:24:15 +00:00
Yannic Kilcher ed80762182 Merge branch 'main' of github.com:LAION-AI/Open-Chat-GPT 2023-01-15 18:55:55 +01:00
Yannic Kilcher 8ece9363c9 added deployment files 2023-01-15 18:55:49 +01:00
Andreas Köpf cd49080c63 add response_model param to leaderboards endpoint 2023-01-15 16:28:46 +01:00
Yannic Kilcher 96307ed4c1 adding modes to ansible 2023-01-15 15:25:21 +01:00
Andreas Köpf b5bb5bb7c0 Add leaderboard stats, periodic updates via fastapi-utils (#724)
* add leaderboard stats, periodic update via fastapi-utils

* count label tasks for assistant and prompter replies

* Daily stats update every 15 mins, simplify leaderboard endpoint

* add indices for some created_date columns

* make user stats update intervals configurable

* make sure intervals are positive
2023-01-15 12:04:19 +01:00
Keith Stevens e01f2eb4ab Merge pull request #737 from notmd/user_menu_fix
use `NextLink` for `UserMenu` option and cleanup
2023-01-15 20:02:55 +09:00
Tom Zehle 30d7a3d0f5 Added Codeinstructor, fixed file-reading issue, and allowing for csv files in data_augment.py (#679) 2023-01-15 11:55:40 +01:00
notmd 042c151e77 hide user score for now 2023-01-15 17:35:30 +07:00
notmd 8731ded1e0 Merge remote-tracking branch 'origin/main' into user_menu_fix 2023-01-15 17:34:14 +07:00
notmd c01a4fa345 use NextLink for UserMenu option and cleanup 2023-01-15 17:23:46 +07:00
Keith Stevens 112ad5cd44 Merge pull request #730 from LAION-AI/394-show-privacy-links
Ensuring the user can find the privacy and terms of service
2023-01-15 19:13:13 +09:00
Keith Stevens 864c1a6cac Revert "update docs/docs/api/openapi.json by run 3921890755"
This reverts commit 7bfac03995.
2023-01-15 19:07:33 +09:00
Keith Stevens e5219bd5f7 Merge branch 'main' into 394-show-privacy-links 2023-01-15 19:06:57 +09:00
Keith Stevens ceefe4d568 Merge pull request #736 from LAION-AI/email
Use email input type for sign up form
2023-01-15 19:03:06 +09:00
Keith Stevens 35a37df526 Merge pull request #735 from LAION-AI/debug-user
Fix missing `name` for debug users
2023-01-15 19:02:43 +09:00
Andrew Maguire f45de9adbc Nicer docusaurus openapi docs (#722)
- uses this plugin (https://github.com/cloud-annotations/docusaurus-openapi) to make a nice static site docusaurus based api section of docs site.
- adds some nicer postman code snippets etc too as part of api docs.
- makes api docs more "self hosted" as opposed to the dynamic swagger url approach.
2023-01-15 10:38:08 +01:00
Andrew Maguire 124994a04e turn off auto-commit as clashing with branch protection (#723)
disable openapi docs auto-commit while we resolve issue of clashing with branch protection
2023-01-15 10:34:04 +01:00
AbdBarho 9e453902bd Use email input type for sign up form 2023-01-15 10:11:20 +01:00
AbdBarho 7fabe39174 Fix missing display_name for debug users 2023-01-15 10:07:02 +01:00
AbdBarho acc629e73c Merge pull request #706 from LAION-AI/670-store-isNew-in-webdb
Tag in the user table when they are new and include it in use session
2023-01-15 09:40:12 +01:00
fozziethebeat 7bfac03995 update docs/docs/api/openapi.json by run 3921890755 2023-01-15 05:04:34 +00:00
Keith Stevens d3eca126fd Ensuring the user can find the privacy and terms of service links when logged in 2023-01-15 14:01:33 +09:00
Yannic Kilcher 69952dbf80 Merge pull request #678 from LAION-AI/install-sharp-for-prod
installed sharp for next standalone deployment
2023-01-15 05:50:48 +01:00
Keith Stevens 5e0fd4d5b1 Merge pull request #729 from rsandb/Fix-FlaggableElement-for-desktop
Fix FlaggableElement grouping issue for desktop
2023-01-15 13:38:27 +09:00
rsandb 9423f0c973 Fix width issue for messages on desktop
Also replaced grid with box because it wasn't using any grid props and was just calling an extra element
2023-01-14 21:36:35 -06:00
Keith Stevens d68a4d1d8d Merge pull request #711 from notmd/flaggable_element_mobile_fix
fix: improve `FlaggableElement` UI on mobile
2023-01-15 08:35:56 +09:00
Keith Stevens 9e7609008f Merge pull request #709 from Klotske/fix-usermenu-link
Fix NextLink prop missing
2023-01-15 08:34:55 +09:00
Keith Stevens 69be679fe1 Merge pull request #701 from LAION-AI/673-enhanced-admin-routing
673 enhanced admin management
2023-01-15 08:34:09 +09:00
Andrew Maguire 86cadc6e9f Cleanup notebooks folder (#716)
- standardize file naming to be a little more pythonic.
- one folder per notebook plus a README for easy GH viewing.
- adjust colab badges for new structure.
2023-01-14 22:51:09 +00:00
Andrew Maguire 0f607c7a28 export and auto-commit docs/docs/api/openapi.json as part of test-api-contract workflow (#719)
- copies that openapi.json file to docs/docs/api/openapi.json as part of start-mock-server.sh.
- adds a step to the end of the test-api-contract workflow that just auto-commits changes to the docs/docs/api/openapi.json file.
- excludes docs/docs/api/openapi.json from pre-commit since its already been formatted by jq.
2023-01-14 22:40:33 +00:00
Yannic Kilcher 885065adec added an init to datasets templates 2023-01-14 23:20:25 +01:00
rallio a203900070 A notebook for question and answer generation using one of the most powerful opensource NLU models, FLAN-T5-11B. (#215)
* Create T5_closed_book_QA_generators.py

This is code that can be run in a notebook or by itself to generate a dictionary for use in creating synthetic dialogue that can be verified for factual accuracy. To use this notebook your need your trusted source material to be in the format of a list of strings (they will be truncated to under 1100 characters). Requires transformers and accelerate. Make sure to use T5 with bfloat16 or full precision.

* Create T5_closed_book_QA_generators.py

* Create T5_closed_book_QA_generators.md

* Delete T5_closed_book_QA_generators.py

Moved to proper folder structure

* fixed pre-commit issues

Co-authored-by: Yannic Kilcher <yk@users.noreply.github.com>
2023-01-14 22:16:54 +00:00
Hyper 3f5ba8940e Pin python package versions (#606)
* Pin python package versions

* Fix CI
2023-01-14 22:41:46 +01:00
Andrew Maguire a9578e5404 create "Tasks" section on docs site (#715)
create tasks section in docs site
2023-01-14 22:39:38 +01:00
Andrew Maguire b44305dfbd CONTRIBUTING.md - add some notes about feature branches (#659)
- try nudge people towards using a feature branch in their fork instead of their main.
- add note about squash and merge,
- link to an example PR as a sort of reference.
- add a "Tips" section with some tips.
2023-01-14 22:36:53 +01:00
Yannic Kilcher bf66b2a890 fixed workflow 2023-01-14 22:10:39 +01:00
Yannic Kilcher f20594f52f fixed workflow 2023-01-14 22:02:13 +01:00
Yannic Kilcher 6430112dfc fixed workflow 2023-01-14 21:47:35 +01:00
Yannic Kilcher 17920e4e66 fixed workflow 2023-01-14 21:39:10 +01:00
Yannic Kilcher 105ff87aed inheriting secrets to deploy 2023-01-14 20:45:43 +01:00