Fixed bug of model duplication when switching instances
This commit is contained in:
parent
9bec816965
commit
19523ba37a
@ -507,6 +507,7 @@ class model_manager_container(Gtk.Box):
|
||||
try:
|
||||
response = window.ollama_instance.request("GET", "api/tags")
|
||||
if response.status_code == 200:
|
||||
self.model_selector.popover.model_list_box.remove_all()
|
||||
self.local_list.remove_all()
|
||||
data = json.loads(response.text)
|
||||
if len(data['models']) == 0:
|
||||
|
Loading…
x
Reference in New Issue
Block a user