-
Notifications
You must be signed in to change notification settings - Fork 778
Open
Labels
Description
Describe the bug
I have enterprise codex. The codex CLI works as normal. I don't have an openai api key.
I tried to test avante with codex, but the conversation "succeeds", without actually doing anything
To reproduce
Try creating a txt in zen mode via codex.
Expected behavior
No response
Installation method
Use lazy.nvim:
return {
"yetone/avante.nvim",
enabled = true,
-- if you want to build from source then do `make BUILD_FROM_SOURCE=true`
-- ⚠️ must add this setting! ! !
build = function()
-- conditionally use the correct build system for the current OS
if vim.fn.has("win32") == 1 then
return "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false"
else
return "make"
end
end,
event = "VeryLazy",
-- version = false, -- Never set this value to "*"! Never!
-- version = "v0.0.27", -- Never set this value to "*"! Never!
-- mode="legacy",
---@module 'avante'
---@type avante.Config
opts = {
-- add any opts here
behaviour = {
enable_fastapply=false,
enable_cursor_planning_mode=true,
auto_suggestions=false,
auto_approve_tool_permissions=false,
},
cursor_applying_provider = "llamacpp_local_gptoss20b",
provider = "codex",
acp_providers = {
["gemini-cli"] = {
command = "gemini",
args = { "--experimental-acp" },
env = {
NODE_NO_WARNINGS = "1",
GEMINI_API_KEY = os.getenv("GEMINI_API_KEY"),
},
},
["claude-code"] = {
command = "npx",
args = { "@zed-industries/claude-code-acp" },
env = {
NODE_NO_WARNINGS = "1",
ANTHROPIC_API_KEY = os.getenv("ANTHROPIC_API_KEY"),
},
},
["goose"] = {
command = "goose",
args = { "acp" },
},
["codex"] = {
command = "codex-acp",
env = {
NODE_NO_WARNINGS = "1",
-- OPENAI_API_KEY = os.getenv("OPENAI_API_KEY"),
},
},
},
providers = {
-- many, but none is called codex.
},
web_search_engine = {
provider='google',
},
},
dependencies = {
"nvim-lua/plenary.nvim",
"MunifTanjim/nui.nvim",
--- The below dependencies are optional,
"echasnovski/mini.pick", -- for file_selector provider mini.pick
"nvim-telescope/telescope.nvim", -- for file_selector provider telescope
"hrsh7th/nvim-cmp", -- autocompletion for avante commands and mentions
"ibhagwan/fzf-lua", -- for file_selector provider fzf
"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",
event = "VeryLazy",
opts = {
-- recommended settings
default = {
embed_image_as_base64 = false,
prompt_for_file_name = false,
drag_and_drop = {
insert_mode = true,
},
-- required for Windows users
use_absolute_path = true,
},
},
},
{
-- Make sure to set this up properly if you have lazy=true
'MeanderingProgrammer/render-markdown.nvim',
opts = {
file_types = { "markdown", "Avante" },
},
ft = { "markdown", "Avante" },
},
},
}
Environment
NVIM v0.12.0-dev-1675+gc488639757
Build type: RelWithDebInfo
LuaJIT 2.1.1763318511