| 171 | /** Whether a turn goes into the history of a later request: an answer, not a suggestion, |
| 172 | * the chat's own hint, its reply that a question has no context, or a restated question (H2). */ |
| 173 | export const sentInHistory = (turn: BrowserChatTurn): boolean => turn.status !== 'error' && turn.status !== 'generating' |
| 174 | && turn.answeredFrom !== 'suggestion' && turn.answeredFrom !== 'local' && turn.answeredFrom !== 'hint' && !turn.echo; |
| 175 | |
| 176 | /** Added to a question asked again after the model only restated it: the same request got the same |
| 177 | * echo, the model does not sample (H2). */ |