mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-06 07:14:31 +02:00
plugins/utils: move to by-name
This commit is contained in:
parent
faff32b9f1
commit
52f125679f
195 changed files with 2 additions and 102 deletions
|
@ -1,52 +0,0 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.ollama.enable = true;
|
||||
};
|
||||
|
||||
example = {
|
||||
plugins.ollama = {
|
||||
enable = true;
|
||||
|
||||
model = "mistral";
|
||||
prompts = {
|
||||
# disable prompt
|
||||
Sample_Prompt = false;
|
||||
my-prompt = {
|
||||
prompt = "Hello $input $sel. J'aime le fromage.";
|
||||
inputLabel = "> ";
|
||||
action = {
|
||||
fn = ''
|
||||
function(prompt)
|
||||
return function(body, job)
|
||||
end
|
||||
end
|
||||
'';
|
||||
opts.stream = true;
|
||||
};
|
||||
model = "foo";
|
||||
extract = "```$ftype\n(.-)```";
|
||||
options = {
|
||||
mirostat_eta = 0.1;
|
||||
num_thread = 8;
|
||||
repeat_last_n = -1;
|
||||
stop = "arrêt";
|
||||
};
|
||||
system = "system";
|
||||
format = "json";
|
||||
};
|
||||
};
|
||||
action = "display";
|
||||
url = "http://127.0.0.1:11434";
|
||||
serve = {
|
||||
onStart = false;
|
||||
command = "ollama";
|
||||
args = [ "serve" ];
|
||||
stopCommand = "pkill";
|
||||
stopArgs = [
|
||||
"-SIGTERM"
|
||||
"ollama"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue