(self)
| 130 | self.clear_cache() |
| 131 | |
| 132 | def clear_cache(self): |
| 133 | self.cache_time = 0 |
| 134 | self.token_until = [] |
| 135 | self.text_until = "" |
| 136 | self.history = None |
| 137 | self.next_tokens_are_prompt = True |
| 138 | |
| 139 | def on_finalized_text(self, text: str, stream_end: bool = False): |
| 140 | """Put the text tuple in the queue.""" |