plugins/ollama: use new mkNullOrStr

This commit is contained in:
Gaetan Lepage 2024-01-06 18:34:50 +01:00 committed by Gaétan Lepage
parent bd6a6776dd
commit a1f8b437b3

View file

@ -98,7 +98,7 @@ in {
Defaults to the value of `plugins.ollama.action`. 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. The model to use for this prompt.
Defaults to the value of `plugins.ollama.model`. Defaults to the value of `plugins.ollama.model`.
@ -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). 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, The SYSTEM instruction specifies the system prompt to be used in the Modelfile template,
if applicable. if applicable.
(overrides what's in the Modelfile). (overrides what's in the Modelfile).