From d183c343a96cb38a7df64ba79cc56123b7502d37 Mon Sep 17 00:00:00 2001 From: kostiak Date: Sun, 8 Jan 2023 00:55:44 +0200 Subject: [PATCH] Temporary fix for #506 to get the frontend working (#508) --- backend/oasst_backend/api/v1/tasks.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/oasst_backend/api/v1/tasks.py b/backend/oasst_backend/api/v1/tasks.py index 0e469602..adfb2907 100644 --- a/backend/oasst_backend/api/v1/tasks.py +++ b/backend/oasst_backend/api/v1/tasks.py @@ -62,7 +62,7 @@ def generate_task( text=msg.text, is_assistant=(msg.role == "assistant"), message_id=msg.id, - front_end_id=msg.front_end_id, + front_end_id=msg.frontend_message_id, ) for msg in messages ] @@ -78,7 +78,7 @@ def generate_task( text=msg.text, is_assistant=(msg.role == "assistant"), message_id=msg.id, - front_end_id=msg.front_end_id, + front_end_id=msg.frontend_message_id, ) for msg in messages ] @@ -100,7 +100,7 @@ def generate_task( text=p.text, is_assistant=(p.role == "assistant"), message_id=p.id, - front_end_id=p.front_end_id, + front_end_id=p.frontend_message_id, ) for p in conversation ] @@ -121,7 +121,7 @@ def generate_task( text=p.text, is_assistant=(p.role == "assistant"), message_id=p.id, - front_end_id=p.front_end_id, + front_end_id=p.frontend_message_id, ) for p in conversation ]