Issue evidence · AI API · n8n-io/n8n
GitHub issue: https://github.com/n8n-io/n8n/issues/40924
Reproduced
When a custom OpenAI-compatible endpoint answers 500 on /v1/responses, n8n does not fall back to /v1/chat/completions and fails after retries.
Extracted n8n's own fallback classifier (servesNoResponsesApi and its helpers) from packages/@n8n/agents/src/runtime/model/openai-api-style.ts on master and ran it on the issue's error shape, locally. The full n8n agent and a Badgr route were not run.
This runs the real decision function on the reported input; it is not an end-to-end n8n run. My 404 and 405 controls used a body with no error object and are not informative. A mock endpoint through Badgr was not built.
Checked 2026-10-14 in Badgr’s local development environment.
← All issue evidence