MCPcopy
hub / github.com/Tele-AI/Telechat / update

Method update

models/7B/generation_utils.py:43–45  ·  view source on GitHub ↗
(self, content: str)

Source from the content-addressed store, hash-verified

41 return x
42
43 def update(self, content: str):
44 x = self.input_history.pop()
45 self.append({"role": x["role"], "content": content})
46
47 def __len__(self):
48 return self.input_history.__len__()

Callers 7

processFunction · 0.45
chatMethod · 0.45
_transfer_from_listMethod · 0.45
appendMethod · 0.45
append_leftMethod · 0.45
on_finalized_textMethod · 0.45

Calls 2

appendMethod · 0.95
popMethod · 0.45

Tested by

no test coverage detected