feat: get node variables in prompt editor (#2087)

* feat: get node variables in prompt editor

* fix

* fix build

* merge

* fix build

* delete default parent

* fix

* fix
This commit is contained in:
heheer
2024-07-23 11:20:23 +08:00
committed by GitHub
parent f24e41f5ec
commit a4787bce5c
23 changed files with 897 additions and 61 deletions

View File

@@ -901,6 +901,7 @@
"overSize": "Team members exceed the limit"
}
},
"invalid_variable": "Invalid variable",
"navbar": {
"Account": "Account",
"Chat": "Chat",
@@ -1146,6 +1147,7 @@
"Quote Content Tip": "You can customize the structure of the quote content to better adapt to different scenarios. You can use some variables for template configuration:\n{{q}} - search content, {{a}} - expected content, {{source}} - source, {{sourceId}} - source file name, {{index}} - the nth quote, they are all optional, here are the default values:\n{{default}}",
"Quote Prompt Tip": "You can use {{quote}} to insert the quote content template, and use {{question}} to insert the question. Here are the default values:\n{{default}}"
},
"unusable_variable": "no usable variable",
"user": {
"Account": "Account",
"Amount of earnings": "Earnings (¥)",
@@ -1232,4 +1234,4 @@
}
}
}
}
}

View File

@@ -1,31 +1,32 @@
{
"add_new_input": "Add input",
"Code": "Code",
"confirm_delete_field_tip": "Confirm to delete the field?",
"custom_input": "Custom input",
"edit_input": "Edit input",
"field_name_already_exists": "Field name already exists",
"field_description": "Field description",
"field_description_placeholder": "Describes the functionality of this input field, which affects the quality of model generation if the parameter is called for a tool",
"field_required": "Required",
"field_used_as_tool_input": "As tool input",
"input_description": "Input descriotion",
"only_the_reference_type_is_supported": "Only the Reference type is supported",
"optional_value_type": "Optional value type",
"optional_value_type_tip": "One or more data types can be specified, and users can only select the configured type when adding fields in winter",
"tool_input": "Tool",
"add_new_input": "Add input",
"code": {
"Reset template": "Reset template",
"Reset template confirm": "Are you sure to restore the code template? All input and output to template values will be reset, please be careful to save the current code."
},
"confirm_delete_field_tip": "Confirm to delete the field?",
"custom_input": "Custom input",
"edit_input": "Edit input",
"field_description": "Field description",
"field_description_placeholder": "Describes the functionality of this input field, which affects the quality of model generation if the parameter is called for a tool",
"field_name_already_exists": "Field name already exists",
"field_required": "Required",
"field_used_as_tool_input": "As tool input",
"ifelse": {
"Input value": "Input",
"Select value": "Select"
},
"input_description": "Input descriotion",
"only_the_reference_type_is_supported": "Only the Reference type is supported",
"optional_value_type": "Optional value type",
"optional_value_type_tip": "One or more data types can be specified, and users can only select the configured type when adding fields in winter",
"response": {
"Code log": "Log",
"Custom inputs": "Custom inputs",
"Custom outputs": "Custom outputs",
"Error": "Error"
}
}
},
"tool_input": "Tool",
"variable_picker_tips": "tips: enter node name or variable name to search"
}

View File

@@ -901,6 +901,7 @@
"overSize": "团队成员超出上限"
}
},
"invalid_variable": "无效变量",
"navbar": {
"Account": "账号",
"Chat": "聊天",
@@ -1146,6 +1147,7 @@
"Quote Content Tip": "可以自定义引用内容的结构,以更好的适配不同场景。可以使用一些变量来进行模板配置:\n{{q}} - 检索内容,{{a}} - 预期内容,{{source}} - 来源,{{sourceId}} - 来源文件名,{{index}} - 第 n 个引用,他们都是可选的,下面是默认值:\n{{default}}",
"Quote Prompt Tip": "可以用 {{quote}} 来插入引用内容模板,使用 {{question}} 来插入问题。下面是默认值:\n{{default}}"
},
"unusable_variable": "无可用变量",
"user": {
"Account": "账号",
"Amount of earnings": "收益(¥)",
@@ -1232,4 +1234,4 @@
}
}
}
}
}

View File

@@ -1,31 +1,32 @@
{
"add_new_input": "新增输入",
"Code": "代码",
"confirm_delete_field_tip": "确认删除该字段?",
"custom_input": "自定义输入",
"edit_input": "编辑输入",
"field_name_already_exists": "字段名已经存在",
"field_description": "字段描述",
"field_description_placeholder": "描述该输入字段的功能,如果为工具调用参数,则该描述会影响模型生成的质量",
"field_required": "必填",
"field_used_as_tool_input": "作为工具调用参数",
"input_description": "字段描述",
"only_the_reference_type_is_supported": "仅支持引用类型",
"optional_value_type": "可选的数据类型",
"optional_value_type_tip": "可以指定 1 个或多个数据类型,用户在冬天添加字段时,仅可选择配置的类型",
"tool_input": "工具参数",
"add_new_input": "新增输入",
"code": {
"Reset template": "还原模板",
"Reset template confirm": "确认还原代码模板?将会重置所有输入和输出至模板值,请注意保存当前代码。"
},
"confirm_delete_field_tip": "确认删除该字段?",
"custom_input": "自定义输入",
"edit_input": "编辑输入",
"field_description": "字段描述",
"field_description_placeholder": "描述该输入字段的功能,如果为工具调用参数,则该描述会影响模型生成的质量",
"field_name_already_exists": "字段名已经存在",
"field_required": "必填",
"field_used_as_tool_input": "作为工具调用参数",
"ifelse": {
"Input value": "输入值",
"Select value": "选择值"
},
"input_description": "字段描述",
"only_the_reference_type_is_supported": "仅支持引用类型",
"optional_value_type": "可选的数据类型",
"optional_value_type_tip": "可以指定 1 个或多个数据类型,用户在冬天添加字段时,仅可选择配置的类型",
"response": {
"Code log": "Log 日志",
"Custom inputs": "自定义输入",
"Custom outputs": "自定义输出",
"Error": "错误信息"
}
}
},
"tool_input": "工具参数",
"variable_picker_tips": "tips: 可输入节点名或变量名搜索"
}