You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to add pre instructions for the chat. In that way i can populate the preinstrutions with vital live data such as file structure and important ways to implement code to my project.
Ive tried using this method but it does not seem to be a valid thing. Its suggested by Open AI, and I can not find any documentation on it.
local function load_instructions()
local path = vim.fn.expand("~/.config/nvim/avante_instructions.md")
local file = io.open(path, "r")
if file then
local instructions = file:read("*a")
file:close()
vim.notify("Avante: Successfully loaded instructions from " .. path, vim.log.levels.INFO)
return instructions
else
vim.notify("Avante: Could not load instructions from " .. path .. ". Using default instructions.", vim.log.levels.WARN)
return "Default instructions if file is not found."
end
end
return {
"yetone/avante.nvim",
event = "VeryLazy",
lazy = false,
version = false,
opts = {
anthropic_api_key = vim.fn.getenv("ANTHROPIC_API_KEY"),
-- Load instructions from external file
default_instructions = load_instructions(),
max_tokens = 500,
temperature = 0.3,
},
Motivation
This feature would be a semi solution to code base functionality if the instructions file are populated with live data.
Other
No response
The text was updated successfully, but these errors were encountered:
Feature request
Would it be possible to add pre instructions for the chat. In that way i can populate the preinstrutions with vital live data such as file structure and important ways to implement code to my project.
Ive tried using this method but it does not seem to be a valid thing. Its suggested by Open AI, and I can not find any documentation on it.
Motivation
This feature would be a semi solution to code base functionality if the instructions file are populated with live data.
Other
No response
The text was updated successfully, but these errors were encountered: