feat: Add SwitchForm #1739 (#1994)

### What problem does this PR solve?

feat: Add SwitchForm #1739

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-08-19 12:00:55 +08:00
committed by GitHub
parent 79426fc41f
commit 99b634c68d
8 changed files with 30 additions and 0 deletions

View File

@ -50,6 +50,7 @@ import {
initialRelevantValues,
initialRetrievalValues,
initialRewriteQuestionValues,
initialSwitchValues,
initialWikipediaValues,
} from './constant';
import { ICategorizeForm, IRelevantForm } from './interface';
@ -109,6 +110,7 @@ export const useInitializeOperatorParams = () => {
[Operator.BaiduFanyi]: initialBaiduFanyiValues,
[Operator.QWeather]: initialQWeatherValues,
[Operator.ExeSQL]: initialExeSqlValues,
[Operator.Switch]: initialSwitchValues,
};
}, [llmId]);