feat(provider): support copilot (#381)

* feat(provider): add back support for copilot

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>

* docs: add acknowledgement

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>

---------

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
This commit is contained in:
Aaron Pham
2024-08-29 23:36:39 -04:00
committed by GitHub
parent d82ef342c4
commit 483f71dba4
4 changed files with 175 additions and 7 deletions

View File

@@ -370,12 +370,6 @@ end
---@return AvanteProviderFunctor
M.get_config = function(provider)
provider = provider or Config.provider
if provider == "copilot" then
Utils.error(
"Sorry! We no longer support the copilot provider! Please use other providers!",
{ once = true, title = "Avante" }
)
end
local cur = Config.get_provider(provider)
return type(cur) == "function" and cur() or cur
end