MCPcopy
hub / github.com/lm-sys/FastChat / copy

Method copy

fastchat/conversation.py:371–384  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

369 ]
370
371 def copy(self):
372 return Conversation(
373 name=self.name,
374 system_template=self.system_template,
375 system_message=self.system_message,
376 roles=self.roles,
377 messages=[[x, y] for x, y in self.messages],
378 offset=self.offset,
379 sep_style=self.sep_style,
380 sep=self.sep,
381 sep2=self.sep2,
382 stop_str=self.stop_str,
383 stop_token_ids=self.stop_token_ids,
384 )
385
386 def dict(self):
387 return {

Callers 2

get_conv_templateFunction · 0.80
get_model_listFunction · 0.80

Calls 1

ConversationClass · 0.85

Tested by

no test coverage detected