fix: reload ollama models list after model deletion (#19912)
Co-authored-by: Zyfax <kemon@hey.com>
This commit is contained in:
@@ -453,6 +453,11 @@
|
|||||||
$config?.features?.enable_direct_connections && ($settings?.directConnections ?? null)
|
$config?.features?.enable_direct_connections && ($settings?.directConnections ?? null)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
ollamaModels = await getOllamaModels(localStorage.token, urlIdx).catch((error) => {
|
||||||
|
toast.error(`${error}`);
|
||||||
|
return null;
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
const cancelUpdateModelHandler = async (model: string) => {
|
const cancelUpdateModelHandler = async (model: string) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user