feat: Added gemini to aichat
Signed-off-by: uttarayan21 <email@uttarayan.me>
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user