fix: enable think tool with acp provider (#2810)

This commit is contained in:
yetone
2025-10-31 00:58:46 +08:00
committed by GitHub
parent d45b622193
commit c8bf0205b5

View File

@@ -11,6 +11,8 @@ M.name = "think"
function M.enabled()
local Providers = require("avante.providers")
local Config = require("avante.config")
local acp_provider = Config.acp_providers[Config.provider]
if acp_provider then return true end
local provider = Providers[Config.provider]
local model = provider.model
if model and model:match("gpt%-5") then return false end