feat: model file chunk

This commit is contained in:
jialin
2024-09-06 19:27:59 +08:00
parent 58e9a4c742
commit 7b999e6692
4 changed files with 17 additions and 10 deletions
@@ -62,6 +62,9 @@ const SearchModel: React.FC<SearchInputProps> = (props) => {
const handleOnSearchRepo = useCallback(
async (sortType?: string) => {
if (modelSource === modelSourceMap.ollama_library_value) {
return;
}
axiosTokenRef.current?.abort?.();
axiosTokenRef.current = new AbortController();
if (dataSource.loading) return;