fix: backend selection

This commit is contained in:
jialin
2026-01-30 20:48:55 +08:00
committed by Lawrence Li
parent a2be7f6b36
commit 4000aacb2c
27 changed files with 317 additions and 142 deletions
@@ -21,7 +21,7 @@ const AlgorithmMap = {
const SpeculativeDecode = () => {
const intl = useIntl();
const { source, backendOptions, onValuesChange } = useFormContext();
const { source, flatBackendOptions, onValuesChange } = useFormContext();
const { getRuleMessage } = useAppUtils();
const form = Form.useFormInstance();
const backend = Form.useWatch('backend', form);
@@ -76,7 +76,7 @@ const SpeculativeDecode = () => {
};
const builtInBackend = useMemo(() => {
const currentBackend = backendOptions.find(
const currentBackend = flatBackendOptions.find(
(item) => item.value === backend
);
@@ -86,7 +86,7 @@ const SpeculativeDecode = () => {
backend as string
)
);
}, [backend, backendOptions]);
}, [backend, flatBackendOptions]);
return (
<>