fix: the last used model caused the loss of the model configured in the profile in the model selector (#2600)

This commit is contained in:
yetone
2025-08-12 15:33:31 +08:00
committed by GitHub
parent 638d237b75
commit 1e0c8520bc
5 changed files with 68 additions and 45 deletions

View File

@@ -233,7 +233,7 @@ M.on_error = function(result)
end
-- List available models using Ollama's tags API
function M:models_list()
function M:list_models()
-- Return cached models if available
if self._model_list_cache then return self._model_list_cache end