fix(openai): enable image support on OpenAI platform only (fixes #282) (#284)

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
This commit is contained in:
Aaron Pham
2024-08-27 11:35:25 -04:00
committed by GitHub
parent fe6518f6de
commit d7be4a59c2
4 changed files with 43 additions and 28 deletions

View File

@@ -301,11 +301,8 @@ function M.refresh(provider)
---@type AvanteProviderFunctor
local p = M[Config.provider]
if not p.has() then
E.setup({ provider = p, refresh = true })
else
Utils.info("Switch to provider: " .. provider, { once = true, title = "Avante" })
end
E.setup({ provider = p, refresh = true })
Utils.info("Switch to provider: " .. provider, { once = true, title = "Avante" })
end
local default_providers = { "openai", "claude", "azure", "gemini", "copilot" }