Auto select Copilot Response API for GPT-5 Codex models (#2808)

This commit is contained in:
yetone
2025-10-30 22:38:32 +08:00
committed by GitHub
parent 4286ac963a
commit d45b622193
6 changed files with 45 additions and 16 deletions

View File

@@ -2527,8 +2527,10 @@ function Sidebar:get_history_messages_for_api(opts)
end
if not Config.acp_providers[Config.provider] then
local provider = Providers[Config.provider]
local use_response_api = Providers.resolve_use_response_api(provider, nil)
local tool_limit
if Providers[Config.provider].use_ReAct_prompt or Providers[Config.provider].use_response_api then
if provider.use_ReAct_prompt or use_response_api then
tool_limit = nil
else
tool_limit = 25