Skip to content

Commit

Permalink
plugins/ollama: use new mkNullOrStr
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage committed Jan 6, 2024
1 parent aac44e7 commit 70eeb42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/utils/ollama.nix
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ in {
Defaults to the value of `plugins.ollama.action`.
'';

model = helpers.mkNullOrOption (with helpers.nixvimTypes; maybeRaw str) ''
model = helpers.mkNullOrStr ''
The model to use for this prompt.
Defaults to the value of `plugins.ollama.model`.
Expand All @@ -125,7 +125,7 @@ in {
Additional model parameters, such as temperature, listed in the documentation for the [Modelfile](https://github.com/jmorganca/ollama/blob/main/docs/modelfile.md#valid-parameters-and-values).
'';

system = helpers.mkNullOrOption (helpers.nixvimTypes.maybeRaw types.str) ''
system = helpers.mkNullOrStr ''
The SYSTEM instruction specifies the system prompt to be used in the Modelfile template,
if applicable.
(overrides what's in the Modelfile).
Expand Down

0 comments on commit 70eeb42

Please sign in to comment.