Skip to content

Commit a2b869d

Browse files
committed
fix(providers): reload all caches on empty argument
1 parent 6616fca commit a2b869d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/parrot/config.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ local defaults = {
212212
end,
213213
-- PrtReloadCache reloads cached models for all or specific providers
214214
ReloadCache = function(parrot, params)
215-
local provider = params.args -- Optional provider name from command args
215+
local provider = params.args ~= "" and params.args or nil -- Optional provider name from command args
216216
local state = parrot.chat_handler.state
217217
local spinner = parrot.options.enable_spinner and require("parrot.spinner"):new(parrot.options.spinner_type) or nil
218218

0 commit comments

Comments
 (0)