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:
@@ -214,7 +214,7 @@ function M:is_disable_stream() return false end
|
||||
|
||||
setmetatable(M, { __index = OpenAI })
|
||||
|
||||
function M:models_list()
|
||||
function M:list_models()
|
||||
if M._model_list_cache then return M._model_list_cache end
|
||||
if not M._is_setup then M.setup() end
|
||||
-- refresh token synchronously, only if it has expired
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user