generate .continue/config.yaml via configuration
This commit is contained in:
parent
2c77cf2ed4
commit
393f468be2
6 changed files with 117 additions and 20 deletions
|
@ -4,24 +4,24 @@
|
|||
enable = lib.mkEnableOption "should we use AI on this machine";
|
||||
models = lib.mkOption {
|
||||
type = lib.types.attrsOf (lib.types.submodule ({name, ...}: {
|
||||
option = {
|
||||
options = {
|
||||
name = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = name;
|
||||
};
|
||||
model = {
|
||||
model = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
};
|
||||
provider = {
|
||||
provider = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "ollama";
|
||||
};
|
||||
apiBase = {
|
||||
type = lib.types.str;
|
||||
default = null;
|
||||
};
|
||||
roles = {
|
||||
type = lib.types.listOf lib.types.enumOf [
|
||||
# apiBase = lib.mkOption {
|
||||
# type = lib.types.nullOr lib.types.str;
|
||||
# default = null;
|
||||
# };
|
||||
roles = lib.mkOption {
|
||||
type = lib.types.listOf (lib.types.enum [
|
||||
"chat"
|
||||
"autocomplete"
|
||||
"embed"
|
||||
|
@ -29,11 +29,13 @@
|
|||
"edit"
|
||||
"apply"
|
||||
"summarize"
|
||||
];
|
||||
]);
|
||||
default = [];
|
||||
};
|
||||
};
|
||||
}));
|
||||
};
|
||||
default = {};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue