MCPcopy
hub / github.com/InternLM/lmdeploy / update

Method update

lmdeploy/serve/managers/session_manager.py:37–41  ·  view source on GitHub ↗

Update the session.

(self, **kwargs)

Source from the content-addressed store, hash-verified

35 self.update(**kwargs)
36
37 def update(self, **kwargs):
38 """Update the session."""
39 self.prompt = kwargs.get('prompt', self.prompt)
40 self.gen_config = kwargs.get('gen_config', self.gen_config)
41 self.step = kwargs.get('step', self.step)
42
43 def __repr__(self) -> str:
44 """Return a string representation of the Session object."""

Callers 15

__init__Method · 0.95
getMethod · 0.95
chatMethod · 0.45
_sync_respMethod · 0.45
_get_long_text_pplMethod · 0.45
preprocessMethod · 0.45
to_turbomindMethod · 0.45
preprocessMethod · 0.45
to_pytorch_auxMethod · 0.45
preprocessMethod · 0.45

Calls 1

getMethod · 0.45

Tested by 2

_messages_payloadFunction · 0.36