MCPcopy Create free account
hub / github.com/Tencent/digitalhuman / update

Method update

SWF/src/base.py:119–122  ·  view source on GitHub ↗
(self, messages, key=None)

Source from the content-addressed store, hash-verified

117 return {"content": content, "usage": usage, "cost": 0}
118
119 def update(self, messages, key=None):
120 if key is None:
121 key = len(self.memory)
122 self.memory[key].extend(messages)
123
124 def append(self, role, content):
125 self.history.append({"role": role, "content": content})

Callers 15

list_modelsMethod · 0.45
worker_api_get_statusMethod · 0.45
trainFunction · 0.45
forwardMethod · 0.45
forwardMethod · 0.45
forwardMethod · 0.45
forwardMethod · 0.45
forwardMethod · 0.45
forwardMethod · 0.45
forwardMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected