Merge branch 'form_io' of github.com:logspace-ai/langflow into form_io
This commit is contained in:
commit
0c18aab513
3 changed files with 3 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ export type TemplateVariableType = {
|
|||
show: boolean;
|
||||
multiline?: boolean;
|
||||
value?: any;
|
||||
input_types?: Array<string>;
|
||||
[key: string]: any;
|
||||
};
|
||||
export type sendAllProps = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue