Yannic Kilcher and GitHub
48fc4efa35
Merge pull request #419 from Vechtomov/generate-task-refactoring
...
Simplified random task generation
2023-01-05 22:06:21 +01:00
Daniel Hug and GitHub
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
Vechtomov
df0c48c4fa
clean up
2023-01-05 22:59:12 +03:00
Vechtomov
aafe93ff82
simplified random task generation
2023-01-05 22:50:51 +03:00
Nil Andreu and GitHub
739c073328
Session Close when called HuggingFace Client ( #411 )
...
* [FIX] Session Close
* [NEW] Async Context Managers of Response
* [NEW] Linting
2023-01-05 17:49:39 +01:00
Nil Andreu and GitHub
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
Yannic Kilcher and GitHub
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
croumegous
fc7f8cbc1f
chore: add fastapi response model to every endpoints, add openapi documentation for API response
2023-01-02 22:55:08 +01:00
yeungadrian and GitHub
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 and GitHub
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
4796146aa7
Fix getting api_key using dependencies
2023-01-03 01:17:36 +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
Gareth Davidson
7000e10bc0
apply pre-commit rules
2023-01-02 00:01:45 +00:00
Jack Michaud and Andreas Köpf
ea40a22049
fix: nack and ack should return empty responses
2023-01-01 18:58:01 +01:00
Jack Michaud and Andreas 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
Andreas Köpf
7b29582cbb
add to protocol.Message
2022-12-31 19:23:54 +01:00
Andreas Köpf
f151fa45c8
Merge branch 'main' of https://github.com/AlexanderHOtt/Open-Assistant into AlexanderHOtt-main
2022-12-31 12:54:16 +01:00
Igor Miagkov and Andreas Köpf
ef3a35ff9c
fixes
2022-12-31 10:31:31 +01:00
Igor Miagkov and Andreas Köpf
f126b21bb3
adjust names and types to new naming
2022-12-31 10:31:31 +01:00
Igor Miagkov and Andreas Köpf
475f48b195
stats api method
2022-12-31 10:31:31 +01:00
Igor Miagkov and Andreas Köpf
8e1d80956a
split message api endpoints
2022-12-31 10:31:31 +01:00
Igor Miagkov and Andreas Köpf
13d01b5a2f
management api
2022-12-31 10:31:31 +01:00
Alex Ott
1bdd02c821
fix breaking api changes
2022-12-30 22:52:57 -08:00
Andreas Köpf and Andreas Köpf
42e9a77456
further pre-commit fixes
2022-12-31 00:18:55 +01:00
Andreas Köpf and Andreas Köpf
3fe9c7a026
fix formatting in models/text_labels.py
2022-12-31 00:18:55 +01:00
Andreas Köpf and Andreas Köpf
534c99610b
missing 'user' -> 'prompter' replacement
2022-12-31 00:18:55 +01:00
Andreas Köpf and Andreas Köpf
ee14554e1b
role='user' -> role='prompter'
2022-12-31 00:18:55 +01:00
Andreas Köpf and Andreas Köpf
26ae43e945
additional forgotten renamings
2022-12-31 00:18:55 +01:00
Andreas Köpf and 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 and Andreas Köpf
35e0c32a08
Updating work_package to task
2022-12-31 00:18:55 +01:00
alexandrelefourner and Andreas Köpf
d118f4e332
Renaming thread to message_tree
2022-12-31 00:18:55 +01:00
alexandrelefourner and Andreas Köpf
7743459220
Renaming post to message
2022-12-31 00:18:55 +01:00
alexandrelefourner and Andreas Köpf
9a1a4876f0
Rename of person to user
2022-12-31 00:18:55 +01:00
Alex Ott
b81eeebe9e
switch to using pre-commit
2022-12-30 04:35:45 -08:00
Alex Ott
65c078fb9f
pre-commit changes
2022-12-30 04:12:54 -08:00
Igor Miagkov and Andreas Köpf
7867466700
added trusted api client flag
2022-12-30 00:35:30 +01:00
Yannic Kilcher and GitHub
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
Yannic Kilcher and GitHub
540f2d58c3
Merge pull request #155 from mjagkow/feature-collective-tasks
...
Added support for collective tasks
2022-12-29 21:18:14 +01:00
Igor Miagkov and Andreas Köpf
acfcd7b8d2
Fixed warning: SAWarning: Coercing Subquery object into a select() for use in IN()
2022-12-29 18:59:44 +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
Igor Miagkov and Andreas Köpf
4ead078f89
Added readable exception if no posts were found for task
2022-12-29 17:16:44 +01:00
Andreas Köpf and Andreas Köpf
30db7254c7
rename flag to DEBUG_USE_SEED_DATA default False, update compose config
2022-12-29 15:58:35 +01:00
Andreas Köpf and Andreas Köpf
b66d05bdf2
add missing db arg
2022-12-29 15:58:35 +01:00
Andreas Köpf and Andreas Köpf
c2cb2562d5
add db seed-data check on backend startup
2022-12-29 15:58:35 +01:00
GraemeHarris and GitHub
8046a4a15b
Merge branch 'main' into add-lang-column
2022-12-29 09:52:11 +02: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