mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-08-11 11:13:12 +08:00
Validate text labels in text frontend (#495)
* Validate text labels in text frontend * Correct task type
This commit is contained in:
@@ -302,7 +302,8 @@ def tasks_interaction(
|
||||
logger.info(
|
||||
f"Frontend reports labels of {interaction.message_id=} with {interaction.labels=} by {interaction.user=}."
|
||||
)
|
||||
# TODO: check if the labels are valid?
|
||||
# Labels are implicitly validated when converting str -> TextLabel
|
||||
# So no need for explicit validation here
|
||||
pr.store_text_labels(interaction)
|
||||
return protocol_schema.TaskDone()
|
||||
case _:
|
||||
|
||||
Reference in New Issue
Block a user