mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-30 12:24:28 +02:00
plugins/ollama: use new mkNullOrStr
This commit is contained in:
parent
bd6a6776dd
commit
a1f8b437b3
1 changed files with 2 additions and 2 deletions
|
@ -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).
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue