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:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user