Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What & why
Valid Responses reasoning history may contain id, summary and type without raw content. Requiring content rejected such history with a bad-request error.
Read raw reasoning when present; otherwise retain surrounding history without creating an empty assistant message. Explicit null/malformed content remains an error.
Reference: Official input type marks content optional: https://github.com/openai/openai-python/blob/f348ec87b934c98889102668913e0a3ae7fc303d/src/openai/types/responses/response_reasoning_item_param.py
Area
Engine, CLI or server (
edge0-infer/).How was it tested?
The target and existing request/event fixtures pass. Added cases cover summary-only reasoning before an answer, explicit raw reasoning, no assistant answer and malformed null content. Main rejects the valid summary-only case.
All 14 L0 checks passed in a local integration with the other focused fixes.
git diff --checkpassed.Local C++ environment: Linux x86_64, GCC 14.2, CPU preset. Targeted builds downgrade pre-existing ignored-attributes, dangling-reference, range-loop-construct and misleading-indentation warnings (plus maybe-uninitialized in the existing diagnostics source); these accommodations are not source changes. The all-target build is blocked by existing assets_test.cpp use of std::count_if without . A clean full L0/L1 result, GPU tests and model-asset execution are not claimed.
Checklist
ctest --preset cpu -L "L0|L1"passes locally