feat: supports OpenAI Response API and copilot's gpt-5-codex model (#2802)
* fix: upgrade vscode version * feat: support openai response api * refactor: refine todos tools * fix: trim suffix empty lines
This commit is contained in:
@@ -8,6 +8,15 @@ local M = setmetatable({}, Base)
|
||||
|
||||
M.name = "think"
|
||||
|
||||
function M.enabled()
|
||||
local Providers = require("avante.providers")
|
||||
local Config = require("avante.config")
|
||||
local provider = Providers[Config.provider]
|
||||
local model = provider.model
|
||||
if model and model:match("gpt%-5") then return false end
|
||||
return true
|
||||
end
|
||||
|
||||
M.description =
|
||||
[[Use the tool to think about something. It will not obtain new information or make any changes to the repository, but just log the thought. Use it when complex reasoning or brainstorming is needed. For example, if you explore the repo and discover the source of a bug, call this tool to brainstorm several unique ways of fixing the bug, and assess which change(s) are likely to be simplest and most effective. Alternatively, if you receive some test results, call this tool to brainstorm ways to fix the failing tests.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user