From 5e0d6215b55159c540f775291f6ec69a63b85432 Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Fri, 7 Feb 2025 15:04:07 +0100 Subject: [PATCH] Ollama: larget context --- modules/hm/vim.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/hm/vim.nix b/modules/hm/vim.nix index fdd3c02..a597d82 100644 --- a/modules/hm/vim.nix +++ b/modules/hm/vim.nix @@ -406,7 +406,11 @@ in local token = readAll("${nixosConfig.age.secrets.ollama.path}") local conf = { -- url = string.format("https://bertof:%s@ollama.ricerca.sesar.di.unimi.it/", token), - model = "codegemma:7b" + model = "codegemma:7b", + options = { + temperature = 0.6, + num_ctx = 8192 + } } local ollama = require("ollama") ollama.setup(conf)