mirror of
https://github.com/docker/docker-agent.git
synced 2026-11-04 18:30:09 +00:00
Chat Completions rejects an explicit reasoning_effort alongside function tools starting at gpt-5.4 (live-verified against api.openai.com); gpt-5.6+ and gpt-6+ reject the combination outright even with the field omitted. When a Responses-capable model is forced onto Chat Completions (an explicit api_type or custom-provider override) with tools in the request, drop the effort field and warn once instead of sending a value guaranteed to 400. Also warn once per client when thinking_budget is configured on a model that does not accept a reasoning-effort parameter at all (previously silent — part of the #4162 symptom set before gpt-6 was even recognised). Live-verify (per review from the architect session) that gpt-5.6 also rejects reasoning.effort 'minimal', confirming openAIDropsMinimalEffort's gpt-5.6+ scope is directly observed rather than inferred from gpt-6 alone. Part of docker/docker-agent#4162.