Commit Graph

46 Commits

Author SHA1 Message Date
jojopirker 9194e15b80 bugfix in alembic downgrade (frontend_type not frontend_id) 2023-01-08 10:59:12 +01:00
jojopirker 5fb0121668 #438 Frontend type (#483)
* add dev setup to readme & alembic description

* frontend_type for api_client

* readme update & missing file

* pre-commit
2023-01-07 21:33:57 +01:00
Oliver Stanley 69bc799cd9 344: Create tasks for text labels (#381)
* Implement label task for initial prompts and replies

* Resolve formatting

* Include missing argument

* Modify text_labels API to match new model, update DB schema accordingly

* Send valid labels as part of label tasks

* Send correctly formatted valid_labels list

* Fix request format

* Fix request details for text-frontend reply label task

* Include message_id in tasks

* Address review comments

* Fix alembic tree
2023-01-06 18:39:04 +01:00
Yannic Kilcher 6c115bced9 reverted merge of 413 2023-01-06 16:12:52 +01:00
Yannic Kilcher f2db4220bb Merge pull request #413 from batuhanerenler/patch-3
Update env.py
2023-01-06 14:59:09 +01:00
shawticus 1309b5b339 lint env 2023-01-05 17:17:59 -08:00
Batuhan Erenler 104aad87d9 Update env.py 2023-01-06 03:19:10 +03:00
Batuhan Erenler c86e486c4d Update env.py 2023-01-06 03:12:55 +03:00
Batuhan Erenler cc82db81f2 Update env.py 2023-01-06 03:02:34 +03:00
Batuhan Erenler 8282015281 Update env.py 2023-01-06 02:22:11 +03:00
Batuhan Erenler 3899249ea8 Update env.py 2023-01-06 02:11:27 +03:00
Batuhan Erenler d405f196fc Update env.py 2023-01-06 02:09:30 +03:00
Batuhan Erenler ce343a5aea Update env.py 2023-01-06 02:06:38 +03:00
Daniel Hug 935e556cf6 Add message tree state model (#414)
* inital commit, created file for MessageTreeState table

* added initial implementation of MessageTreeState SQl model and added it to__init__

* Ran Alembic revision for migration

* reran precommit on

* removed create_data and deleted flag from model

* ran migration revision to remove unwant class variables date_created and deleted

* removed unused imports

* ran pre-commit

* Updated States definiton to be Enums instead fo Constants

* ran pre-commit formatting

* Fixed Enum class

* ran pre-commit
2023-01-05 21:32:47 +01:00
Batuhan Erenler 2c08e46e31 Update env.py
Fixing trim bugs.
2023-01-05 23:05:41 +03:00
Batuhan Erenler 4012f7da05 Update env.py 2023-01-05 22:50:22 +03:00
Batuhan Erenler 6f319651c1 Update env.py
Here are the improvements that I made:

Imported the logging module and used it to set up the loggers, rather than using the deprecated logging.config.fileConfig function.
Renamed the sqlmodel module to models and imported it correctly.
Changed the # noqa: F401 comment to a more appropriate # Ignore unused import comment.
Added type annotations and docstrings to the functions.
Improved the formatting and added some comments to make the code more readable.
Changed the with context.begin_transaction(): block to use the contextlib.suppress context manager to suppress any exceptions that might be raised, so that the script can gracefully exit in case of an error.
2023-01-05 20:17:37 +03:00
Gareth Davidson 7000e10bc0 apply pre-commit rules 2023-01-02 00:01:45 +00:00
Igor Miagkov 6d98ba1f75 fix alembic migration 2022-12-31 10:31:31 +01:00
Igor Miagkov 13d01b5a2f management api 2022-12-31 10:31:31 +01:00
Andreas Köpf 5f16a8f780 make sure alembic migration works in both directions 2022-12-31 00:18:55 +01:00
Andreas Köpf 048802fa1a add alembic migration script 2022-12-31 00:18:55 +01:00
Igor Miagkov 7867466700 added trusted api client flag 2022-12-30 00:35:30 +01:00
Yannic Kilcher 3ab2e01b21 Merge pull request #128 from GraemeHarris/add-lang-column
Added column to post table for lang with US english set to default.
2022-12-29 21:33:41 +01:00
Igor Miagkov efafc0173a added support for collective tasks 2022-12-29 21:32:17 +04:00
Graeme Harris e5c32eda21 Updates from linting 2022-12-29 19:26:30 +02:00
GraemeHarris 8046a4a15b Merge branch 'main' into add-lang-column 2022-12-29 09:52:11 +02:00
Graeme Harris 00ebf90871 Added column to post table for lang with US english set to default. Included alembic migration 2022-12-28 23:25:29 +02:00
Igor Miagkov abf2fcc1c8 Migrations for task sampling 2022-12-28 22:23:16 +01:00
Andreas Köpf f74fe68f87 add journal table and JournalWriter helper class 2022-12-27 22:37:48 +01:00
Yannic Kilcher 78a7747e05 added docstring to migration and renamed file 2022-12-25 18:58:48 +01:00
Yannic Kilcher a37bf6bf41 added text labels to the API 2022-12-25 17:08:57 +01:00
Andreas Köpf 8a48722e72 first api-interaction, fix auth_method unique-index 2022-12-22 18:41:50 +01:00
Yannic Kilcher b34ef75423 started re-working python code 2022-12-19 18:00:09 +01:00
Yannic Kilcher 1acdc66973 moved alembic 2022-12-17 23:40:40 +01:00
Andreas Köpf afb5ec3669 change alembic file_template 2022-12-17 23:31:35 +01:00
Andreas Köpf 2a56438a55 add auth_method column to person table 2022-12-17 23:01:21 +01:00
Yannic Kilcher b45a974287 improved dockerfiles and developer setup 2022-12-17 22:15:01 +01:00
Andreas Köpf 1f31e6a499 add frontend post_id binding and post reply handing 2022-12-16 13:32:06 +01:00
Andreas Köpf b38c14233f add polymorphic JSONB payload support
update nullable fields, new auth check
2022-12-16 02:08:43 +01:00
Andreas Köpf a827b7f19e add sqlmodel classes 2022-12-15 23:51:58 +01:00
Andreas Köpf 7d88ff4a8c use JSONB instead of Text of payload columns 2022-12-15 23:51:58 +01:00
Andreas Köpf e1a7ae42aa add v1 database alembic migration script 2022-12-15 23:51:58 +01:00
Yannic Kilcher 6bc64459f5 local database setup 2022-12-13 16:19:29 +01:00
Yannic Kilcher 8dd9e16c33 Merge branch 'main' of github.com:LAION-AI/Open-Chat-GPT 2022-12-13 12:39:14 +01:00
Yannic Kilcher f407887501 renamed alemic to alembic 2022-12-13 11:57:54 +01:00