Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 6 additions & 11 deletions lua/codecompanion/adapters/http/openai_responses.lua
Original file line number Diff line number Diff line change
Expand Up @@ -616,17 +616,12 @@ return {
optional = true,
---@type fun(self: CodeCompanion.HTTPAdapter): boolean
enabled = function(self)
local model = self.schema.model.default
if type(model) == "function" then
model = model()
end
local choices = self.schema.model.choices
if type(choices) == "function" then
choices = choices(self)
end
if choices and choices[model] and choices[model].opts and choices[model].opts.can_reason then
return true
end
-- Reasoning summary requires a verified organization, something not
-- needed for API usage otherwise, and something many individual users
-- do not have done.
-- And since reasoning is only meant for debugging, we should not enable
-- it by default; users should enable it themselves in their config if
-- they want.
return false
end,
default = "auto",
Expand Down