(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

@@ -113,7 +113,7 @@ const ToolModal: React.FC<Props> = ({ editTool, onSaveTool, onCancel }) => {
<FormItem name="name" label="名称">
<Input placeholder="请输入工具名称" />
</FormItem>
{(toolType === AgentToolTypeEnum.RULE || toolType === AgentToolTypeEnum.LLM_S2QL) && (
{(toolType === AgentToolTypeEnum.RULE || toolType === AgentToolTypeEnum.LLM_S2SQL) && (
<FormItem name="modelIds" label="主题域">
<Select
options={modelList.map((model) => ({ label: model.name, value: model.id }))}
@@ -122,7 +122,7 @@ const ToolModal: React.FC<Props> = ({ editTool, onSaveTool, onCancel }) => {
/>
</FormItem>
)}
{toolType === AgentToolTypeEnum.LLM_S2QL && (
{toolType === AgentToolTypeEnum.LLM_S2SQL && (
<FormItem name="exampleQuestions" label="示例问题">
<div className={styles.paramsSection}>
{examples.map((example) => {