chore(provider): use latest cohere models (#400)

Update prompts to correct grammar
concat with table.concat to avoid overhead

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
This commit is contained in:
Aaron Pham
2024-08-30 13:39:36 -04:00
committed by GitHub
parent 61acd714ba
commit b196627e86
4 changed files with 9 additions and 15 deletions

View File

@@ -62,10 +62,10 @@ M.defaults = {
---@type AvanteSupportedProvider
cohere = {
endpoint = "https://api.cohere.com/v1",
model = "command-r-plus",
model = "command-r-plus-08-2024",
timeout = 30000, -- Timeout in milliseconds
temperature = 0,
max_tokens = 3072,
max_tokens = 4096,
["local"] = false,
},
---To add support for custom provider, follow the format below
@@ -233,7 +233,7 @@ M = setmetatable(M, {
M.support_paste_image = function()
local supported = Utils.has("img-clip.nvim") or Utils.has("img-clip")
if not supported and not M.options.silent_warning then
if not supported then
Utils.warn("img-clip.nvim is not installed. Pasting image will be disabled.", { once = true })
end
return supported