MCPcopy
hub / github.com/zai-org/ChatGLM3 / show

Method show

composite_demo/conversation.py:81–90  ·  view source on GitHub ↗
(self, placeholder: DeltaGenerator | None=None)

Source from the content-addressed store, hash-verified

79
80 # Display as a markdown block
81 def show(self, placeholder: DeltaGenerator | None=None) -> str:
82 if placeholder:
83 message = placeholder
84 else:
85 message = self.role.get_message()
86 if self.image:
87 message.image(self.image)
88 else:
89 text = self.get_text()
90 message.markdown(text)
91
92def preprocess_text(
93 system: str | None,

Callers 6

append_conversationFunction · 0.80
mainFunction · 0.80
append_conversationFunction · 0.80
mainFunction · 0.80
append_conversationFunction · 0.80
mainFunction · 0.80

Calls 2

get_textMethod · 0.95
get_messageMethod · 0.80

Tested by

no test coverage detected