The refreshModels() was initially called in the constructor of OllamaSettingsForm.
Because of this whenever the user opens the settings the GET /api/tags request is triggered to refresh the Ollama models, even if Ollama is not even the currently selected service
The
refreshModels()
was initially called in the constructor ofOllamaSettingsForm
. Because of this whenever the user opens the settings the GET/api/tags
request is triggered to refresh the Ollama models, even if Ollama is not even the currently selected service