You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: surface error for empty STOP model turn in non-streaming mode
An empty model turn (finish_reason=STOP with no content parts) was silently
becoming an empty final response. The non-streaming flow now surfaces it as a
MODEL_RETURNED_NO_CONTENT error event. Detection lives in the flow and only in
non-streaming mode, not in LlmResponse.create, so streaming consumers that
batch parts across chunks (where a terminal finish-only chunk legitimately
follows earlier content) are unaffected.
Close#5631
Co-authored-by: George Weale <gweale@google.com>
PiperOrigin-RevId: 939915020
0 commit comments