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

@@ -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