sg.nvim icon indicating copy to clipboard operation
sg.nvim copied to clipboard

Support Claude 3 (Cody)

Open jmpaz opened this issue 1 year ago • 4 comments

are there plans to support Claude 3 Opus for Cody chat & commands in the near future? just recently subscribed for it / had assumed parity with the recent vscode release.

jmpaz avatar Mar 15 '24 16:03 jmpaz

I think Claude 3 is only available for paying Cody users (Pro & Enterprise)

pkos98 avatar Mar 17 '24 05:03 pkos98

@jmpaz New models support is being added with https://github.com/sourcegraph/sg.nvim/tree/update-cody-agent-03-12 branch. @tjdevries is still working on it but I tested on my machine and it works fine so you can checkout to this branch.

If you are using lazy package manager, then you can switch branch something like this,

{
	"sourcegraph/sg.nvim",
	branch = "update-cody-agent-03-12",
	build = "nvim -l build/init.lua",
....
}

2024-03-22-175738_1790x502_scrot

manish-baghel avatar Mar 22 '24 08:03 manish-baghel

That was already merged and is ready to use, however only for Pro/Enterprise users. https://github.com/sourcegraph/sg.nvim/pull/213

I am curious if Claude 3 is only being used for the Chat or also for the code completion? Because AFAIK there is no completion API available for the Claude 3 models

pkos98 avatar Mar 31 '24 14:03 pkos98

I can confirm that Claude 3 is working for chat. image

cloud303-cholden avatar Apr 08 '24 17:04 cloud303-cholden

The models should all be available now (as of a few days ago) and you can set your default chat model with something like this:

      require("sg").setup {
        accept_tos = true,
        chat = {
          default_model = "opeanai/gpt-4o",
        },
      }

tjdevries avatar May 25 '24 19:05 tjdevries