We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94ce86a commit 2dce91aCopy full SHA for 2dce91a
1 file changed
lua/opencode/api.lua
@@ -545,13 +545,7 @@ function M.commands_list()
545
end
546
547
function M.current_model()
548
- 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
+ return core.initialize_current_model()
555
556
557
--- Runs a user-defined command by name.
0 commit comments