mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-20 06:34:55 +00:00
(feature)(webapp) add show case and support multiple selection and deletion of filter conditions (#251)
This commit is contained in:
@@ -216,7 +216,7 @@ const DetailModal: React.FC<Props> = ({ detail, onSubmit, onCancel }) => {
|
||||
}))}
|
||||
onChange={(value) => {
|
||||
setPluginType(value);
|
||||
if (value === PluginTypeEnum.DSL) {
|
||||
if (value === PluginTypeEnum.LLM_S2QL) {
|
||||
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.DSL}>
|
||||
{/* <FormItem name="params" label="函数参数" hidden={pluginType === PluginTypeEnum.LLM_S2QL}>
|
||||
<div className={styles.paramsSection}>
|
||||
{functionParams.map((functionParam: FunctionParamFormItemType) => {
|
||||
const { id, name, type, description } = functionParam;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
export const PLUGIN_TYPE_MAP = {
|
||||
WEB_PAGE: 'Web页面',
|
||||
WEB_SERVICE: 'Web服务',
|
||||
// DSL: 'LLM语义解析',
|
||||
// LLM_S2QL: 'LLM语义解析',
|
||||
// CONTENT_INTERPRET: '内容解读',
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ export type PluginConfigType = {
|
||||
export enum PluginTypeEnum {
|
||||
WEB_PAGE = 'WEB_PAGE',
|
||||
WEB_SERVICE = 'WEB_SERVICE',
|
||||
DSL = 'DSL'
|
||||
LLM_S2QL = 'LLM_S2QL'
|
||||
}
|
||||
|
||||
export enum ParseModeEnum {
|
||||
|
||||
Reference in New Issue
Block a user