12.nixvim/plugins/by-name/model/default.nix
2026-01-28 23:59:06 +00:00

30 lines
715 B
Nix

{ lib, ... }:
lib.nixvim.plugins.mkNeovimPlugin {
name = "model";
package = "model-nvim";
maintainers = [ lib.maintainers.GaetanLepage ];
settingsExample = {
prompts = {
zephyr = {
provider.__raw = "require('model.providers.llamacpp')";
options.url = "http:localhost:8080";
builder.__raw = ''
function(input, context)
return {
prompt =
'<|system|>'
.. (context.args or 'You are a helpful assistant')
.. '\n</s>\n<|user|>\n'
.. input
.. '</s>\n<|assistant|>',
stop = { '</s>' }
}
end
'';
};
};
};
}