mirror of
https://github.com/macocianradu/setup.git
synced 2026-03-19 05:10:03 +00:00
Changed gpt for claude
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
require('codecompanion').setup({
|
||||
extensions = {
|
||||
history = {
|
||||
enabled= true,
|
||||
},
|
||||
},
|
||||
adapters = {
|
||||
http = {
|
||||
webui = function()
|
||||
@@ -17,43 +22,15 @@ require('codecompanion').setup({
|
||||
end,
|
||||
},
|
||||
acp = {
|
||||
codex = function()
|
||||
return require("codecompanion.adapters").extend("codex", {
|
||||
defaults = {
|
||||
auth_method = "chatgpt"
|
||||
},
|
||||
})
|
||||
claude_code = function()
|
||||
return require("codecompanion.adapters").extend("claude_code", { })
|
||||
end
|
||||
}
|
||||
},
|
||||
strategies = {
|
||||
chat = {
|
||||
adapter = "webui",
|
||||
tools = {
|
||||
["cmd_runner"] = { auto_submit_errors = true },
|
||||
["editor"] = { auto_submit_success = false },
|
||||
["files"] = { auto_submit_success = true }
|
||||
}
|
||||
},
|
||||
agent = {
|
||||
adapter = "webui",
|
||||
},
|
||||
opts = {
|
||||
system_prompt = [[
|
||||
You are an expert coding assistant operating in agent mode.
|
||||
When asked about files or code, ALWAYS use the available tools to:
|
||||
- Read files with the `files` tool before answering questions about them
|
||||
- Use the `editor` tool to read the current buffer
|
||||
- Use `cmd_runner` to run tests or shell commands when relevant
|
||||
Never ask the user to paste file contents — fetch them yourself using tools.
|
||||
]],
|
||||
}
|
||||
},
|
||||
interactions = {
|
||||
chat = {
|
||||
adapter = "webui",
|
||||
model = "qwen3.5:9b",
|
||||
},
|
||||
adapter = "claude_code",
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
require("nvim_http").setup()
|
||||
Reference in New Issue
Block a user