feat: remember the last selected model (#2518)

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
Co-authored-by: yetone <yetoneful@gmail.com>
This commit is contained in:
NekoNekoNiko120
2025-07-28 13:21:49 +08:00
committed by GitHub
parent 7e50de8904
commit 5e4eb8652b
4 changed files with 72 additions and 8 deletions

View File

@@ -119,6 +119,8 @@ function M.open()
if provider_cfg then provider_cfg.model = choice.model end
Utils.info("Switched to model: " .. choice.name)
-- Persist last used provider and model
Config.save_last_model(choice.model, choice.provider_name)
end
local selector = Selector:new({