MCPcopy
hub / github.com/kaixindelele/ChatPaper / reset

Method reset

HuggingFaceDeploy/Public/optimizeOpenAI.py:188–194  ·  view source on GitHub ↗

Reset the conversation

(self, convo_id: str = "default", system_prompt = None)

Source from the content-addressed store, hash-verified

186 else:
187 return False
188 def reset(self, convo_id: str = "default", system_prompt = None):
189 """
190 Reset the conversation
191 """
192 self.conversation[convo_id] = [
193 {"role": "system", "content": str(system_prompt or self.system_prompt)},
194 ]
195 def conversation_summary(self, convo_id: str = "default"):
196 input = ""
197 role = ""

Callers 7

add_to_conversationMethod · 0.95
ask_streamMethod · 0.95
conversation_summaryMethod · 0.95
fetch_dataFunction · 0.45
chat_conclusionMethod · 0.45
chat_methodMethod · 0.45
chat_summaryMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected