add claude-3.7

This commit is contained in:
2025-02-24 19:00:13 -08:00
parent 283b2540ee
commit 73df9af394
2 changed files with 13 additions and 9 deletions

View File

@@ -11,14 +11,19 @@ return {
return require("codecompanion.adapters").extend("copilot", {
schema = {
name = "copilot",
opts = {
stream = true,
},
model = {
default = "claude-3.5-sonnet",
default = "claude-3.7-sonnet-thought",
-- default = "o3-mini-2025-01-31",
choices = {
["o3-mini-2025-01-31"] = { opts = { can_reason = true } },
["o1-2024-12-17"] = { opts = { can_reason = true } },
["o1-mini-2024-09-12"] = { opts = { can_reason = true } },
"claude-3.5-sonnet",
"claude-3.7-sonnet",
["claude-3.7-sonnet-thought"] = { opts = { can_reason = true } },
"gpt-4o-2024-08-06",
"gemini-2.0-flash-001",
},
@@ -72,7 +77,6 @@ return {
adapter = "copilot",
roles = {
llm = function(adapter)
print(vim.inspect(adapter))
return " Assistant (" .. adapter.formatted_name .. " - " .. adapter.parameters.model .. ")"
end,
user = " User",