Repository navigation
server: Responses accepts OpenAI's include values and ignores them - #759
Conversation
/v1/responses refused any include, and some clients send it by habit (reasoning.encrypted_content on reasoning models), so they failed here. Each of OpenAI's include values asks for output this server has nothing to add: reasoning comes as text, nothing is encrypted, no tool runs here, logprobs are empty. include() accepts a list of them and changes nothing in the request; a value OpenAI does not define, or an include that is not a list of strings, is refused by name, as MiaAI-Lab's patch for the Python engine refuses it (Apache-2.0). The frozen corpus case now sends an unknown value, and its golden reply is that refusal (json.dumps as freeze_golden.py writes it); test-golden runs on Macs only and was not run here. responses_include_test.zig covers the values.
0a658c9 to
e4f07ed
Compare
…e repaired before they parse docs/api.md still said include is refused and that a partial value stays content; ashhart#759 and ashhart#761 changed both.
…al by name, as ashhart#759's and ashhart#761's heads now say Comment and test-name wording only, from the PRs' current heads. Co-authored-by: Bizuayeu <[email protected]>
|
Thank you, @Bizuayeu. Clients that send One fix of ours went in beside it ( Your head moved after we landed it: its comments now say an unknown value is refused by name, where they compared it with the 2.x line. We took that wording as |
…ers refused by name Every include was refused, so a client that always sends one (reasoning.encrypted_content, by habit) could not call /v1/responses. Its eight values ask for output this server has none of: reasoning comes as text and nothing is encrypted. An unknown value, or an include that is not a list of strings, stays a 400 that names it. Upstream TensorFold 1.0.9 (ashhart#759) does the same. Tests: tests/test_responses_api.py, 40 passed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e repaired before they parse docs/api.md still said include is refused and that a partial value stays content; ashhart#759 and ashhart#761 changed both.
…al by name, as ashhart#759's and ashhart#761's heads now say Comment and test-name wording only, from the PRs' current heads. Co-authored-by: Bizuayeu <[email protected]>
What this changes
/v1/responsesrefused anyinclude, and some clients send it by habit (reasoning.encrypted_contentonreasoning models), so they failed here. Each of OpenAI's
includevalues asks for output this server has nothingto add: reasoning comes as text, nothing is encrypted, no tool runs here, logprobs are empty.
include()accepts alist of them and changes nothing in the request; a value OpenAI does not define, or an
includethat is not a listof strings, is refused by name. The frozen corpus case now sends an unknown value, and its golden reply is that
refusal. The values and the refusal follow @MiaAI-Lab's patch for the Python engine (Apache-2.0).
Receipt
0efbd447plus this change; one GB10 (DGX Spark, sm_121, CUDA 13.3).zig build test: 438 passed, 5 skipped, 0 failed; the new "OpenAI's include values are accepted, others refusedby name" needs this change.
zig build test-cuda-host: 360 passed, 0 failed.zig fmt --check: clean.lean_check: 539, as main.test-golden(Macs only), so the corpus case's new golden reply was written by hand to therefusal's text and not replayed here.
Checklist
"draft": false, a resumed prompt equals a fresh one, and concurrent equals solo.