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": "团队成员超出上限"
}
},
"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: 可输入节点名或变量名搜索"
}