feat: support string num seletor to single run debug

This commit is contained in:
Joel
2024-03-15 16:37:58 +08:00
parent 7ba1b37a5a
commit 75b332695b
7 changed files with 89 additions and 17 deletions

View File

@ -56,9 +56,9 @@ const useConfig = (id: string, payload: LLMNodeType) => {
})
// context
const handleContextVarChange = useCallback((newVar: ValueSelector) => {
const handleContextVarChange = useCallback((newVar: ValueSelector | string) => {
const newInputs = produce(inputs, (draft) => {
draft.context.variable_selector = newVar
draft.context.variable_selector = newVar as ValueSelector
})
setInputs(newInputs)
}, [inputs, setInputs])