Skip to content

Commit 0cb4149

Browse files
committed
fix: truely switch models of openrouter during runtime.
1 parent 3285a77 commit 0cb4149

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

lua/modules/configs/tool/codecompanion.lua

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,16 @@ return function()
4545
end,
4646
user = icons.aichat.Me .. "Me",
4747
},
48+
keymaps = {
49+
submit = {
50+
modes = { n = "<CR>" },
51+
description = "Submit",
52+
callback = function(chat)
53+
chat:apply_model(current_model)
54+
chat:submit()
55+
end,
56+
},
57+
},
4858
},
4959
inline = {
5060
adapter = "openrouter",

0 commit comments

Comments
 (0)