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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user