mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
aichat: add agents option
This commit is contained in:
parent
35329d44f3
commit
e3e15e765d
4 changed files with 77 additions and 12 deletions
3
tests/modules/programs/aichat/llama.yaml
Normal file
3
tests/modules/programs/aichat/llama.yaml
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
model: llama3.2:latest
|
||||
temperature: 0.5
|
||||
use_tools: web_search
|
||||
5
tests/modules/programs/aichat/openai.yaml
Normal file
5
tests/modules/programs/aichat/openai.yaml
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
agent_prelude: default
|
||||
model: openai:gpt-4o
|
||||
temperature: 0.5
|
||||
top_p: 0.7
|
||||
use_tools: fs,web_search
|
||||
|
|
@ -1,4 +1,3 @@
|
|||
{ ... }:
|
||||
{
|
||||
programs.aichat = {
|
||||
enable = true;
|
||||
|
|
@ -18,10 +17,34 @@
|
|||
}
|
||||
];
|
||||
};
|
||||
|
||||
agents = {
|
||||
openai = {
|
||||
model = "openai:gpt-4o";
|
||||
temperature = 0.5;
|
||||
top_p = 0.7;
|
||||
use_tools = "fs,web_search";
|
||||
agent_prelude = "default";
|
||||
};
|
||||
|
||||
llama = {
|
||||
model = "llama3.2:latest";
|
||||
temperature = 0.5;
|
||||
use_tools = "web_search";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.config/aichat/config.yaml
|
||||
assertFileContent home-files/.config/aichat/config.yaml \
|
||||
${./settings.yml}
|
||||
|
||||
assertFileExists home-files/.config/aichat/agents/openai/config.yaml
|
||||
assertFileExists home-files/.config/aichat/agents/llama/config.yaml
|
||||
assertFileContent home-files/.config/aichat/agents/openai/config.yaml \
|
||||
${./openai.yaml}
|
||||
assertFileContent home-files/.config/aichat/agents/llama/config.yaml \
|
||||
${./llama.yaml}
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue