Feat: Render RewriteQuestionForm with shadcn-ui #3221 (#5551)

### What problem does this PR solve?

Feat: Render RewriteQuestionForm with shadcn-ui #3221
### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2025-03-03 17:14:19 +08:00
committed by GitHub
parent b67697b6f2
commit 65d7c19979
3 changed files with 69 additions and 34 deletions

View File

@ -114,8 +114,14 @@ export function useFormConfigMap() {
},
[Operator.RewriteQuestion]: {
component: RewriteQuestionForm,
defaultValues: {},
schema: z.object({}),
defaultValues: {
message_history_window_size: 6,
},
schema: z.object({
llm_id: z.string(),
message_history_window_size: z.number(),
language: z.string(),
}),
},
[Operator.Baidu]: {
component: BaiduForm,