(feature)(webapp) modify QL to SQL (#354)

This commit is contained in:
williamhliu
2023-11-10 09:36:50 +08:00
committed by GitHub
parent 63a526709d
commit bf3a111e55
10 changed files with 31 additions and 31 deletions

View File

@@ -216,7 +216,7 @@ const DetailModal: React.FC<Props> = ({ detail, onSubmit, onCancel }) => {
}))}
onChange={(value) => {
setPluginType(value);
if (value === PluginTypeEnum.LLM_S2QL) {
if (value === PluginTypeEnum.LLM_S2SQL) {
form.setFieldsValue({ parseMode: ParseModeEnum.FUNCTION_CALL });
setFunctionParams([
{
@@ -243,7 +243,7 @@ const DetailModal: React.FC<Props> = ({ detail, onSubmit, onCancel }) => {
<FormItem name="pattern" label="函数描述">
<TextArea placeholder="请输入函数描述,多个描述换行分隔" allowClear />
</FormItem>
{/* <FormItem name="params" label="函数参数" hidden={pluginType === PluginTypeEnum.LLM_S2QL}>
{/* <FormItem name="params" label="函数参数" hidden={pluginType === PluginTypeEnum.LLM_S2SQL}>
<div className={styles.paramsSection}>
{functionParams.map((functionParam: FunctionParamFormItemType) => {
const { id, name, type, description } = functionParam;