From 888a6904d5003b4655ba18f79dfe2b399bcad8c0 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Sun, 31 Mar 2024 23:12:18 -0300 Subject: [PATCH] Update input type options in schemas and graph base classes --- src/backend/base/langflow/api/v1/schemas.py | 2 +- src/backend/base/langflow/graph/graph/base.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/backend/base/langflow/api/v1/schemas.py b/src/backend/base/langflow/api/v1/schemas.py index 3aaa5eded..eb8a4dd8c 100644 --- a/src/backend/base/langflow/api/v1/schemas.py +++ b/src/backend/base/langflow/api/v1/schemas.py @@ -259,7 +259,7 @@ class VerticesBuiltResponse(BaseModel): class InputValueRequest(BaseModel): components: Optional[List[str]] = [] input_value: Optional[str] = None - type: Optional[Literal["chat", "text", "json", "any"]] = Field( + type: Optional[Literal["chat", "text", "any"]] = Field( "any", description="Defines on which components the input value should be applied. 'any' applies to all input components.", ) diff --git a/src/backend/base/langflow/graph/graph/base.py b/src/backend/base/langflow/graph/graph/base.py index 909acfa2e..17bbfdf5e 100644 --- a/src/backend/base/langflow/graph/graph/base.py +++ b/src/backend/base/langflow/graph/graph/base.py @@ -201,7 +201,7 @@ class Graph: self, inputs: Dict[str, str], input_components: list[str], - input_type: Literal["chat", "text", "json", "any"] | None, + input_type: Literal["chat", "text", "any"] | None, outputs: list[str], stream: bool, session_id: str, @@ -271,7 +271,7 @@ class Graph: self, inputs: list[Dict[str, str]], input_components: Optional[list[list[str]]] = None, - types: Optional[list[Literal["chat", "text", "json", "any"] | None]] = None, + types: Optional[list[Literal["chat", "text", "any"] | None]] = None, outputs: Optional[list[str]] = None, session_id: Optional[str] = None, stream: bool = False, @@ -309,7 +309,7 @@ class Graph: self, inputs: list[Dict[str, str]], inputs_components: Optional[list[list[str]]] = None, - types: Optional[list[Literal["chat", "text", "json", "any"] | None]] = None, + types: Optional[list[Literal["chat", "text", "any"] | None]] = None, outputs: Optional[list[str]] = None, session_id: Optional[str] = None, stream: bool = False,