Skip to content

Commit 71065cf

Browse files
Drop all trailing user turns when a model turn is invalid in _extract_curated_history
Previously only a single user Content was popped after an invalid model turn, leaving orphaned user messages in the curated history when several user turns preceded it. Now all consecutive trailing user-role contents are removed. Fixes googleapis#3051
1 parent 3ef737e commit 71065cf

0 file changed

File tree

    0 commit comments

    Comments
     (0)