chore: remove ollama model source
This commit is contained in:
@@ -284,7 +284,7 @@ const SearchModel: React.FC<SearchInputProps> = (props) => {
|
|||||||
if (!SUPPORTEDSOURCE.includes(modelSource)) {
|
if (!SUPPORTEDSOURCE.includes(modelSource)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
axiosTokenRef.current?.abort?.();
|
axiosTokenRef.current?.abort?.('new request');
|
||||||
axiosTokenRef.current = new AbortController();
|
axiosTokenRef.current = new AbortController();
|
||||||
checkTokenRef.current?.cancel?.();
|
checkTokenRef.current?.cancel?.();
|
||||||
if (timer.current) {
|
if (timer.current) {
|
||||||
@@ -342,7 +342,6 @@ const SearchModel: React.FC<SearchInputProps> = (props) => {
|
|||||||
};
|
};
|
||||||
const handleSearchInputChange = useCallback((e: any) => {
|
const handleSearchInputChange = useCallback((e: any) => {
|
||||||
searchInputRef.current = e.target.value;
|
searchInputRef.current = e.target.value;
|
||||||
console.log('change:', searchInputRef.current);
|
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
const handlerSearchModels = _.debounce(() => handleOnSearchRepo(), 100);
|
const handlerSearchModels = _.debounce(() => handleOnSearchRepo(), 100);
|
||||||
|
|||||||
@@ -145,13 +145,6 @@ export const onLineSourceOptions = [
|
|||||||
value: modelSourceMap.local_path_value,
|
value: modelSourceMap.local_path_value,
|
||||||
key: 'local_path',
|
key: 'local_path',
|
||||||
icon: icons.LocalPath
|
icon: icons.LocalPath
|
||||||
},
|
|
||||||
{
|
|
||||||
label: 'Ollama Library',
|
|
||||||
locale: false,
|
|
||||||
value: modelSourceMap.ollama_library_value,
|
|
||||||
key: 'ollama_library',
|
|
||||||
icon: icons.Ollama
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user