Closed JoseConseco closed 9 months ago
Hi @JoseConseco ,
Thank you for your PR!
This should also work without your change, no?
local opts = vim.tbl_deep_extend('force', {
model = M.model,
command = M.command
}, { model = 'foobar' })
print(opts.model) -- 'foobar'
You are right. We can add prom.model='xxx' indeed overriding M.model field. There is no need for this PR at all! My bad
This way coding prompts could use eg. codellama, grammar, summary - mistral translate - could some other model. Example: