Changed Model of Avante

This commit is contained in:
2026-04-08 20:35:06 +02:00
parent 659b0ad0b9
commit 96649eb6da
3 changed files with 9 additions and 16 deletions

6
flake.lock generated
View File

@@ -656,11 +656,11 @@
"nixpkgs-nixcord": "nixpkgs-nixcord" "nixpkgs-nixcord": "nixpkgs-nixcord"
}, },
"locked": { "locked": {
"lastModified": 1775609538, "lastModified": 1775668757,
"narHash": "sha256-wuEAtQEyYLSTljliQJfCktlaougrr2x72AL3elomMe8=", "narHash": "sha256-IYgdtendCXbY0wbORVoD0pvxliF7TRaAPHUKQb7Hi9c=",
"owner": "kaylorben", "owner": "kaylorben",
"repo": "nixcord", "repo": "nixcord",
"rev": "62128fa01d11c887437114248536438fd3add38d", "rev": "b3816569255c0dbf3026e6ee95e42d16edcca6e1",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -2,16 +2,6 @@
{ {
# Avante: AI-powered coding assistant (Cursor-like experience in Neovim) # Avante: AI-powered coding assistant (Cursor-like experience in Neovim)
programs.nixvim = { programs.nixvim = {
extraConfigLuaPre = ''
local groq_key_file = "/home/phil/.config/sops-nix/secrets/GROQ_API_KEY"
local f = io.open(groq_key_file, "r")
if f then
local key = f:read("*all"):gsub("%s+", "") -- read and trim whitespace
vim.env.GROQ_API_KEY = key
f:close()
end
'';
plugins = { plugins = {
markdown-preview.enable = true; markdown-preview.enable = true;
render-markdown.enable = true; render-markdown.enable = true;
@@ -29,7 +19,7 @@
__inherited_from = "openai"; __inherited_from = "openai";
api_key_name = "GROQ_API_KEY"; api_key_name = "GROQ_API_KEY";
endpoint = "https://api.groq.com/openai/v1/"; endpoint = "https://api.groq.com/openai/v1/";
model = "groq/compound-mini"; model = "llama-3.3-70b-versatile";
disable_tools = true; disable_tools = true;
extra_request_body = { extra_request_body = {
temperature = 1; temperature = 1;

View File

@@ -1,4 +1,4 @@
{ pkgs, ... }: { _: {
# Which-key: Display available keybindings in popup # Which-key: Display available keybindings in popup
# Shows all possible key combinations after pressing leader or other prefix keys # Shows all possible key combinations after pressing leader or other prefix keys
programs.nixvim.plugins.which-key = { programs.nixvim.plugins.which-key = {
@@ -85,7 +85,10 @@
disable = { disable = {
builtin_keys = { builtin_keys = {
# Hide these default vim keys from which-key # Hide these default vim keys from which-key
i = [ "<C-R>" "<C-W>" ]; i = [
"<C-R>"
"<C-W>"
];
n = [ "<C-W>" ]; n = [ "<C-W>" ];
}; };
}; };