From b548a642ff27e4305b7beb16a880b69967d2dea2 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Thu, 22 Jun 2023 19:04:48 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20refactor(schemas.py):=20remove?= =?UTF-8?q?=20commented=20out=20code=20for=20PredictRequest=20schema=20The?= =?UTF-8?q?=20commented=20out=20code=20for=20the=20PredictRequest=20schema?= =?UTF-8?q?=20has=20been=20removed=20as=20it=20is=20no=20longer=20needed?= =?UTF-8?q?=20and=20only=20adds=20clutter=20to=20the=20file.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/langflow/api/v1/schemas.py | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/src/backend/langflow/api/v1/schemas.py b/src/backend/langflow/api/v1/schemas.py index 8e817204e..45d42a23d 100644 --- a/src/backend/langflow/api/v1/schemas.py +++ b/src/backend/langflow/api/v1/schemas.py @@ -28,32 +28,6 @@ class TweaksRequest(BaseModel): tweaks: Optional[Dict[str, Dict[str, str]]] = Field(default_factory=dict) -# class PredictRequest(BaseModel): -# """Predict request schema.""" - -# input: dict -# tweaks: Optional[Dict[str, Dict[str, str]]] = Field(default_factory=dict) - -# class Config: -# schema_extra = { -# "example": { -# "input": { -# "question": "A question to process", -# "chat_history": ["A chat history", "Another chat history"], -# }, -# "tweaks": { -# "Tool-Aclk2": { -# "name": "A tool name", -# "description": "A tool description", -# }, -# "NodeName-2kclS": { -# "template": "A {template}", -# }, -# }, -# } -# } - - class UpdateTemplateRequest(BaseModel): template: dict