refactor(core): migrate ai files from claude to ai

This commit is contained in:
Prad Nukala committed 2025-11-18 11:15:23 -05:00
1 parent 49364f362d
commit 4524944dae
11 files changed
+149 -397

No files matched your search

+8 -24
View File
@@ -4,9 +4,8 @@ return {
"yetone/avante.nvim",
-- if you want to build from source then do `make BUILD_FROM_SOURCE=true`
-- ⚠️ must add this setting! ! !
build = vim.fn.has("win32") ~= 0
and "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false"
or "make",
build = vim.fn.has "win32" ~= 0 and "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false"
or "make",
event = "VeryLazy",
version = false, -- Never set this value to "*"! Never!
---@module 'avante'
@@ -16,25 +15,11 @@ return {
-- this file can contain specific instructions for your project
instructions_file = "avante.md",
-- for example
provider = "claude",
providers = {
claude = {
endpoint = "https://api.anthropic.com",
model = "claude-sonnet-4-20250514",
timeout = 30000, -- Timeout in milliseconds
extra_request_body = {
temperature = 0.75,
max_tokens = 20480,
},
},
moonshot = {
endpoint = "https://api.moonshot.ai/v1",
model = "kimi-k2-0711-preview",
timeout = 30000, -- Timeout in milliseconds
extra_request_body = {
temperature = 0.75,
max_tokens = 32768,
},
provider = "opencode",
acp_providers = {
["opencode"] = {
command = "opencode",
args = { "acp" },
},
},
-- Keybindings for navigation within Avante windows
@@ -73,7 +58,7 @@ return {
windows = {
position = "right", -- the position of the sidebar
wrap = true, -- similar to vim.o.wrap
width = 30, -- default % based on available width
width = 26, -- default % based on available width
sidebar_header = {
align = "center", -- left, center, right for title
rounded = true,
@@ -91,7 +76,6 @@ return {
"stevearc/dressing.nvim", -- for input provider dressing
"folke/snacks.nvim", -- for input provider snacks
"nvim-tree/nvim-web-devicons", -- or echasnovski/mini.icons
"zbirenbaum/copilot.lua", -- for providers='copilot'
{
-- support for image pasting
"HakonHarnes/img-clip.nvim",