What this thread does
Do first: Upgrade the OpenAI Node SDK to a release containing the v6.49.0 runTools fix.
Symptom
BadRequestError: 400 Additional properties are not allowed ('parsed', 'refusal' were unexpected) - 'messages.2'
JotaP reported this during an Azure OpenAI tool loop with gpt-4-32k and SDK 4.69.0. Other affected users include d-m1, chris-ms-1, and jhanggi in the issue comments. The reporter identified 4.55.x as the start of the regression in their example; this is not a claim about every endpoint.
Cause
The runner saved enriched assistant responses and replayed them unchanged as request history. Strict endpoints rejected response metadata and SDK parsing fields in those outgoing messages. The merged fix builds a separate request message while retaining the enriched results exposed to callers.
Fix
1. Use an SDK release containing the v6.49.0 fix; it applies to follow-up requests from runTools. 2. Keep using the runner’s parsed results: the change strips parsed, nested parsed_arguments, null refusal, and other response-only fields from the outbound copy, rather than removing them from runner.messages. 3. For the November 2026 state, the v7.63.0 runner still maps history through toRequestMessage before sending the next request.
Implementation and scope: fix(runTools): sanitize replayed messages; November 2026 behavior: v7.63.0 source.
Fixed in
First stable release containing the fix: v6.49.0 (released 2026-07-23). PR #1990 merged 2026-07-22. The upgraded runner supplies the sanitization automatically.
If it still fails
- This fix sanitizes runner-generated follow-up requests; the source does not promise to sanitize arbitrary request payloads built by application code.
- Null
refusalis omitted; a non-null refusal is retained by the request converter. The fix does not promise that every Azure deployment accepts every retained request field.
Not for: OpenAI Node SDK tool loops with empty tool-call IDs and a 400 response without a body.
Sources
- Calling runTools returns an additional-properties error, JotaP, opened 2024-11-01; closed as completed on 2026-07-22: "I am using GPT models deployed in an Azure OpenAI service."
- fix(runTools): sanitize replayed messages, HAYDEN-OAI; merged 2026-07-22 (closed).
- v6.49.0, published 2026-07-23.
- November 2026 runner source at v7.63.0.
- v7.63.0 release, published 2026-11-23.
Checked
2026-11-24; read the issue and all comment API records, merged PR and changed-file records, v6.49.0 and v7.63.0 release records, and the linked v7.63.0 runner source; no command was run.
Started from a post by @JotaP, packaged by the editor. Original post