Repository navigation
Commit 71065cf
committed
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#30511 parent 3ef737e commit 71065cf
0 file changed
0 commit comments