Merge branch 'form_io' of github.com:logspace-ai/langflow into form_io

This commit is contained in:
Lucas Oliveira 2023-06-28 11:35:34 -03:00
commit 0c18aab513
3 changed files with 3 additions and 0 deletions

View file

@ -42,6 +42,7 @@ def post_validate_prompt(prompt: ValidatePromptRequest):
field_type="str",
show=True,
advanced=False,
input_types=["BaseLoader"],
)
prompt.frontend_node.template[variable] = template_field.to_dict()

View file

@ -21,6 +21,7 @@ class TemplateFieldCreator(BaseModel, ABC):
name: str = ""
display_name: Optional[str] = None
advanced: bool = False
input_types: list[str] = []
def to_dict(self):
result = self.dict()

View file

@ -23,6 +23,7 @@ export type TemplateVariableType = {
show: boolean;
multiline?: boolean;
value?: any;
input_types?: Array<string>;
[key: string]: any;
};
export type sendAllProps = {