From 602ec355cdd58cc10206b4cacbb5ed0aab9f1250 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20K=C3=B6pf?= Date: Tue, 27 Dec 2022 18:05:02 +0100 Subject: [PATCH] moved workpackage-lookup for text-replies to prompt-repository --- backend/oasst_backend/api/v1/tasks.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/backend/oasst_backend/api/v1/tasks.py b/backend/oasst_backend/api/v1/tasks.py index 7ec5aa96..0778fd4c 100644 --- a/backend/oasst_backend/api/v1/tasks.py +++ b/backend/oasst_backend/api/v1/tasks.py @@ -7,7 +7,6 @@ from fastapi import APIRouter, Depends, HTTPException from fastapi.security.api_key import APIKey from loguru import logger from oasst_backend.api import deps -from oasst_backend.models.db_payload import TaskPayload from oasst_backend.prompt_repository import PromptRepository from oasst_shared.schemas import protocol as protocol_schema from sqlmodel import Session @@ -219,10 +218,6 @@ def post_interaction( f"Frontend reports text reply to {interaction.post_id=} with {interaction.text=} by {interaction.user=}." ) - work_package = pr.fetch_workpackage_by_postid(interaction.post_id) - work_payload: TaskPayload = work_package.payload.payload - logger.info(f"found task work package in db: {work_payload}") - # here we store the text reply in the database # ToDo: role user or agent? pr.store_text_reply(interaction, role="unknown")