fix(channel): preserve trailing user turn in normalization
This commit is contained in:
parent
c5834b1077
commit
f2ffd653de
1 changed files with 0 additions and 4 deletions
|
|
@ -230,10 +230,6 @@ fn normalize_cached_channel_turns(turns: Vec<ChatMessage>) -> Vec<ChatMessage> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if normalized.last().map_or(false, |msg| msg.role == "user") {
|
|
||||||
normalized.pop();
|
|
||||||
}
|
|
||||||
|
|
||||||
normalized
|
normalized
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue