From d5059f12d59098f8851e36788b0508a7df0ea8e8 Mon Sep 17 00:00:00 2001 From: jialin Date: Thu, 5 Jun 2025 20:05:43 +0800 Subject: [PATCH] chore: remove ollama model source --- src/pages/llmodels/components/search-model.tsx | 3 +-- src/pages/llmodels/config/button-actions.ts | 7 ------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/pages/llmodels/components/search-model.tsx b/src/pages/llmodels/components/search-model.tsx index 9ea707cc..e2e7e03f 100644 --- a/src/pages/llmodels/components/search-model.tsx +++ b/src/pages/llmodels/components/search-model.tsx @@ -284,7 +284,7 @@ const SearchModel: React.FC = (props) => { if (!SUPPORTEDSOURCE.includes(modelSource)) { return; } - axiosTokenRef.current?.abort?.(); + axiosTokenRef.current?.abort?.('new request'); axiosTokenRef.current = new AbortController(); checkTokenRef.current?.cancel?.(); if (timer.current) { @@ -342,7 +342,6 @@ const SearchModel: React.FC = (props) => { }; const handleSearchInputChange = useCallback((e: any) => { searchInputRef.current = e.target.value; - console.log('change:', searchInputRef.current); }, []); const handlerSearchModels = _.debounce(() => handleOnSearchRepo(), 100); diff --git a/src/pages/llmodels/config/button-actions.ts b/src/pages/llmodels/config/button-actions.ts index 041f6edb..98507c50 100644 --- a/src/pages/llmodels/config/button-actions.ts +++ b/src/pages/llmodels/config/button-actions.ts @@ -145,13 +145,6 @@ export const onLineSourceOptions = [ value: modelSourceMap.local_path_value, key: 'local_path', icon: icons.LocalPath - }, - { - label: 'Ollama Library', - locale: false, - value: modelSourceMap.ollama_library_value, - key: 'ollama_library', - icon: icons.Ollama } ];