chore: change partial_offload field

This commit is contained in:
jialin
2024-09-10 16:33:39 +08:00
parent 93bda622d5
commit 7ba7f57b05
8 changed files with 12 additions and 13 deletions
@@ -65,6 +65,7 @@ const SearchModel: React.FC<SearchInputProps> = (props) => {
if (modelSource === modelSourceMap.ollama_library_value) {
return;
}
console.log('handleOnSearchRepo', dataSource.loading);
axiosTokenRef.current?.abort?.();
axiosTokenRef.current = new AbortController();
if (dataSource.loading) return;
@@ -120,13 +121,10 @@ const SearchModel: React.FC<SearchInputProps> = (props) => {
[dataSource]
);
const handlerSearchModels = useCallback(
async (e: any) => {
searchInputRef.current = e.target.value;
handleOnSearchRepo();
},
[handleOnSearchRepo]
);
const handlerSearchModels = async (e: any) => {
searchInputRef.current = e.target.value;
handleOnSearchRepo();
};
const handleOnOpen = () => {
if (