Yannic Kilcher
ec0f9bb536
Merge pull request #535 from olliestanley/525-refine-hate-speech
...
525: Refine label for hate_speech
2023-01-08 16:04:42 +01:00
Oliver
570d39edec
Refine label for hate_speech
2023-01-08 11:51:32 +00:00
Oliver
78fac2b5f5
Refine label for harmful
2023-01-08 11:44:57 +00:00
Oliver Stanley
710898903d
Initial revision to valid text labels ( #509 )
2023-01-08 10:31:29 +01:00
Andreas Köpf
5e01f421aa
add 'help_text' to valid_lables response
2023-01-07 21:48:11 +01:00
Andreas Köpf
5b2cb5dd29
add api/v1/text_labels/valid_labels backend endpoint ( #498 )
...
Provides the set of valid text_lables with descriptions via a REST endpoint.
2023-01-07 21:28:24 +01:00
Daniel Hug
f75a07301b
Conversation messages refactor add msg ids ( #500 )
...
* update ConversationMessage in protocal.py
* updated ConversationMessage instantiations in tasks.py and util.py to include message_id and frontend_message_id
* changed message_id and frontend_message_id to type UUID
* update ConversationMessage instantiation in main.py to include message_id and frontend_message_id"
* changed frontend_message_id to type str
* ran precomit
2023-01-07 19:16:32 +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
Nil Andreu
ee50b573e1
Detoxify Rest API Client ( #404 )
...
* [NEW] utils: Endpoint Toxic Roberta
* [NEW] Constants API URL
* [NEW] Git ignore venv
* [NEW] Lint
* [NEW] Backend default args
* [NEW] HUGGINGFACE_API_ERROR
* [NEW] Requests package
* [NEW] Get Toxicity Endpoint
* [NEW] Schema: ToxicityClassification
[NEW] Constants module
[FIX] Module
* [FIX] Test Key HF
* [NEW] settings: HUGGING_FACE_API_KEY
* [NEW] Remove requests
* [NEW] HuggingFace client
* [NEW] Cleaning code
2023-01-05 16:18:04 +01:00
Graeme Harris
c2b6cdb12a
Bugfix #173 - Empty task interactions ( #373 )
...
* Added pydantic checks for interaction protocols
* Small updated to BE API README for redis and guide to local scripts
* isort linting
2023-01-05 09:19:57 +01:00
Jack Michaud
c8aba77a48
chore: pin aiohttp version
2023-01-02 21:11:14 -05:00
Jack Michaud
3dcfe7014e
test: add test for unhandled api error
2023-01-02 21:06:00 -05:00
Jack Michaud
f66ad30c53
fix: handle empty 204 response
2023-01-02 21:00:23 -05:00
Jack Michaud
bc796b70ba
test: finish test for handling oasst error
2023-01-02 20:59:59 -05:00
Jack Michaud
fbcb0a09e6
chore: move aiohttp client into oasst-shared
2023-01-02 20:38:10 -05:00
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
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
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
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
Gareth Davidson
7000e10bc0
apply pre-commit rules
2023-01-02 00:01:45 +00:00
Jack Michaud
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 Miagkov
ef3a35ff9c
fixes
2022-12-31 10:31:31 +01:00
Igor Miagkov
475f48b195
stats api method
2022-12-31 10:31:31 +01:00
Igor Miagkov
13d01b5a2f
management api
2022-12-31 10:31:31 +01:00
Andreas Köpf
ee14554e1b
role='user' -> role='prompter'
2022-12-31 00:18:55 +01:00
Andreas 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
alexandrelefourner
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
f74fe68f87
add journal table and JournalWriter helper class
2022-12-27 22:37:48 +01: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
Andreas Köpf
aa26c4ad03
fix bot script post oasst_shared creation
2022-12-20 00:55:39 +01:00
Yannic Kilcher
b34ef75423
started re-working python code
2022-12-19 18:00:09 +01:00