helix: add aichat

This commit is contained in:
Giulio De Pasquale 2024-04-11 12:55:08 +01:00
parent fe22704b14
commit 8eafc911fe

View File

@ -25,7 +25,9 @@ let
api_base: https://ollama.giugl.io
api_key: null
models:
- name: pino-fast
- name: pino-coder-fast
max_input_tokens: null
- name: pino-coder
max_input_tokens: null
'';
aichatRoles = ''
@ -85,11 +87,12 @@ in
center = ["file-name"]
[keys.select.l]
c = ":pipe ${pkgs.unstablePkgs.aichat}/bin/aichat -c -r comment"
c = ":pipe ${pkgs.unstablePkgs.aichat}/bin/aichat -m pino-coder-fast -c -r comment"
C = ":pipe ${pkgs.unstablePkgs.aichat}/bin/aichat -m pino-coder -c -r comment"
'';
"${aichatConfigDir}/roles.yaml".text = aichatRoles;
"${aichatConfigDir}/config.yaml".text = aichatConfig;
".config/aichat/roles.yaml".text = aichatRoles;
".config/aichat/config.yaml".text = aichatConfig;
};
};
}