feat: Added gemini to aichat

Signed-off-by: uttarayan21 <email@uttarayan.me>
This commit is contained in:
uttarayan21
2025-04-30 23:55:24 +05:30
parent cccb88b09d
commit 19e6cfd6bf
3 changed files with 21 additions and 11 deletions

View File

@@ -9,6 +9,7 @@
secrets."llama/api_key" = {};
secrets."openai/api_key" = {};
secrets."openrouter/api_key" = {};
secrets."gemini/api_key" = {};
};
programs.aichat = {
enable = true;
@@ -40,6 +41,18 @@
}
];
}
{
type = "gemini";
name = "gemini";
api_base = "https://generativelanguage.googleapis.com/v1beta";
api_key_cmd = "cat ${config.sops.secrets."gemini/api_key".path}";
models = [
{
name = "gemini-2.5-flash-preview-04-17";
type = "chat";
}
];
}
{
type = "openai-compatible";
name = "openrouter";