We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8095050 commit 9626f89Copy full SHA for 9626f89
lua/opencode/api.lua
@@ -545,7 +545,13 @@ function M.commands_list()
545
end
546
547
function M.current_model()
548
- return state.current_model or ''
+ if state.current_model and state.current_model ~= "" then
549
+ return state.current_model
550
+ else
551
+ local conf = require('opencode.config_file').get_opencode_config()
552
+ local model = conf and conf.model
553
+ return model or ''
554
+ end
555
556
557
--- Runs a user-defined command by name.
0 commit comments