Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Cannot use o1 from github copilot. #983

Open
nekowasabi opened this issue Dec 21, 2024 · 0 comments
Open

bug: Cannot use o1 from github copilot. #983

nekowasabi opened this issue Dec 21, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@nekowasabi
Copy link

Describe the bug

Cannot use o1 from github copilot.
I ithink that CopilotChat.nvim, which probably uses api.githubcopilot.com, can use o1, and hence, it may also be possible to use it in avante.nvim.
Could you please confirm?

To reproduce

setting

require("avante").setup({
  provider = "copilot",
  copilot = {
    endpoint = "https://api.githubcopilot.com/",
		model = "o1",
		-- claude can use with avante
		-- model = "claude-3.5-sonnet", 
    proxy = nil, -- [protocol://]host[:port] Use this proxy
    allow_insecure = false, -- Allow insecure server connections
    timeout = 30000, -- Timeout in milliseconds
    temperature = 0,
    max_tokens = 8192,
  },
  -- auto_suggestions_provider = "copilot",
  behaviour = {
    auto_suggestions = false, -- Experimental stage
    auto_set_highlight_group = true,
    auto_set_keymaps = false,
    auto_apply_diff_after_generation = false,
    support_paste_from_clipboard = true,
  1. execute AvanteAsk
  2. input text
  3. execute avante

Expected behavior

Working avante with o1 model.

Installation method

Use lazy.nvim:

{
  "yetone/avante.nvim",
  event = "VeryLazy",
  lazy = false,
  version = false, -- set this if you want to always pull the latest change
  opts = {
    -- add any opts here
  },
  -- if you want to build from source then do `make BUILD_FROM_SOURCE=true`
  build = "make",
  -- build = "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false" -- for windows
  dependencies = {
    "nvim-treesitter/nvim-treesitter",
    "stevearc/dressing.nvim",
    "nvim-lua/plenary.nvim",
    "MunifTanjim/nui.nvim",
  },
}

Environment

nvim: 0.10.2
OS: macOS
avante: latest
make: executed

Repro

vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

require("lazy.minit").repro({
  spec = {
    -- add any other plugins here
  },
})

require("avante").setup({
  provider = "copilot",
  copilot = {
    endpoint = "https://api.githubcopilot.com",
		model = "o1",
		-- claude can use with avante
		-- model = "claude-3.5-sonnet", 
    proxy = nil, -- [protocol://]host[:port] Use this proxy
    allow_insecure = false, -- Allow insecure server connections
    timeout = 30000, -- Timeout in milliseconds
    temperature = 0,
    max_tokens = 8192,
  },
  -- auto_suggestions_provider = "copilot",
  behaviour = {
    auto_suggestions = false, -- Experimental stage
    auto_set_highlight_group = true,
    auto_set_keymaps = false,
    auto_apply_diff_after_generation = false,
    support_paste_from_clipboard = true,
  },
@nekowasabi nekowasabi added the bug Something isn't working label Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant