generate .continue/config.yaml via configuration

This commit is contained in:
Leyla Becker 2025-05-25 13:07:32 -05:00
parent 2c77cf2ed4
commit 393f468be2
6 changed files with 117 additions and 20 deletions

View file

@ -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 = {};
};
};