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",
|
field_type="str",
|
||||||
show=True,
|
show=True,
|
||||||
advanced=False,
|
advanced=False,
|
||||||
|
input_types=["BaseLoader"],
|
||||||
)
|
)
|
||||||
|
|
||||||
prompt.frontend_node.template[variable] = template_field.to_dict()
|
prompt.frontend_node.template[variable] = template_field.to_dict()
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,7 @@ class TemplateFieldCreator(BaseModel, ABC):
|
||||||
name: str = ""
|
name: str = ""
|
||||||
display_name: Optional[str] = None
|
display_name: Optional[str] = None
|
||||||
advanced: bool = False
|
advanced: bool = False
|
||||||
|
input_types: list[str] = []
|
||||||
|
|
||||||
def to_dict(self):
|
def to_dict(self):
|
||||||
result = self.dict()
|
result = self.dict()
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@ export type TemplateVariableType = {
|
||||||
show: boolean;
|
show: boolean;
|
||||||
multiline?: boolean;
|
multiline?: boolean;
|
||||||
value?: any;
|
value?: any;
|
||||||
|
input_types?: Array<string>;
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
};
|
};
|
||||||
export type sendAllProps = {
|
export type sendAllProps = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue