fix: draft model change

This commit is contained in:
jialin
2025-11-07 16:54:33 +08:00
parent 9ffd4def64
commit 9cd508a92a
@@ -67,6 +67,14 @@ const SpeculativeDecode = () => {
} }
}; };
const handleOnDraftBlur = () => {
onValuesChangeDebounced();
};
const handleDraftSelect = (value: string) => {
onValuesChangeDebounced();
};
const builtInBackend = useMemo(() => { const builtInBackend = useMemo(() => {
const currentBackend = backendOptions.find( const currentBackend = backendOptions.find(
(item) => item.value === backend (item) => item.value === backend
@@ -161,6 +169,8 @@ const SpeculativeDecode = () => {
})} })}
options={draftModelList} options={draftModelList}
onSearch={onSearch} onSearch={onSearch}
onBlur={handleOnDraftBlur}
onSelect={handleDraftSelect}
></AutoComlete> ></AutoComlete>
</Form.Item> </Form.Item>
)} )}