fix: draft model change
This commit is contained in:
@@ -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>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user