MCPcopy Create free account
hub / github.com/Tele-AI/Telechat / clear_cache

Method clear_cache

models/12B/generation_utils.py:132–137  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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."""

Callers 1

endMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected